Hi Experts,
Currently i am working for receive data from PLC through RS485(here i have used Microcontroller like Arduino), here i have used Modscan 32 and modscan64 software(traffic data) for find a correct request data for my microcontroller then i have a below doubt
1. i have worked with RS485 to collect data from flow meters and RS485 enable sensors, usually that is need 8 byte request for send the data that is still now working fine but now i have checked the PLC data through modscan32 and 64 software's those are send 9 bytes data for receive the data, i dont know how to send the request data from microcontroller,
2. i have attached modscan software traffic data and previously i used format (which is i send from the microcontroller for receive the data from RS485 enabled meter or sensors ) for your reference, kindly check and help me to solve this problem,
file name
8byte req- i have send 8byte request from MC and receive data from RS485 enabled devices(meter&sensors)
char request[] = {0x01, 0x03, 0x30, 0x04, 0x00, 0x04, 0x0A, 0xC8};// i have used this line for send the request from my microcontroller
9byte req 32 and 64 is MODSCAN software traffic data
so i changed my controller request like
char request[] = {0x01, 0x03, 0x10, 0x82, 0x00, 0x10, 0x5A, 0x13,0x10};
i can't get any data from PLC kindly help to find my mistakes
regards
kannannatesh
Currently i am working for receive data from PLC through RS485(here i have used Microcontroller like Arduino), here i have used Modscan 32 and modscan64 software(traffic data) for find a correct request data for my microcontroller then i have a below doubt
1. i have worked with RS485 to collect data from flow meters and RS485 enable sensors, usually that is need 8 byte request for send the data that is still now working fine but now i have checked the PLC data through modscan32 and 64 software's those are send 9 bytes data for receive the data, i dont know how to send the request data from microcontroller,
2. i have attached modscan software traffic data and previously i used format (which is i send from the microcontroller for receive the data from RS485 enabled meter or sensors ) for your reference, kindly check and help me to solve this problem,
file name
8byte req- i have send 8byte request from MC and receive data from RS485 enabled devices(meter&sensors)
char request[] = {0x01, 0x03, 0x30, 0x04, 0x00, 0x04, 0x0A, 0xC8};// i have used this line for send the request from my microcontroller
9byte req 32 and 64 is MODSCAN software traffic data
so i changed my controller request like
char request[] = {0x01, 0x03, 0x10, 0x82, 0x00, 0x10, 0x5A, 0x13,0x10};
i can't get any data from PLC kindly help to find my mistakes
regards
kannannatesh
Attachments
-
296.3 KB Views: 17
-
645.4 KB Views: 15
-
1.5 MB Views: 14