Hi I am using small Maple PLC for my project. We need to communicate to a sensor which provides RS232. When I send "Command" to the sensor from my PC using the RealTerm software, I receive a return data from the sensor. For example, if I send 0X02 0X00 0X09 0X00 0XB0 0X01 0X00 0XCA 0X86 then sensor replies 02 00 13 00 B0 00 01 04 20 01 50 3E 90 11 E2 7E 02 53 4F when sensor is triggered.
Now I try to send this command from PLC, I am struggling with few things below.
In the tag settings....
1. TxData: Should I send 02 00 09 00 B0 01 00 CA 86 in string format?
2. TxData length: Including space it is 26 bytes?
In the network settings-Transmit
1. Starting address (TxData) number of bytes, is it 26 byte?
2. Rules for transmission, do I need a signature? Any start or end of frame? Currently I don't use STX, just use ETX (no of byte:1, ETX frame: D)
3. I did not click "Checksum Method"
In the network settings-Receive
1. Rules for start of frame, I use "as soon as Byte received"
2. End of frame ETX (no of byte:1, ETX frame : D )
In the network general settings
Response timeout 999
Byte format: Low Byte - High Byte
Can anybody tell what is correct and what is not?
Now I try to send this command from PLC, I am struggling with few things below.
In the tag settings....
1. TxData: Should I send 02 00 09 00 B0 01 00 CA 86 in string format?
2. TxData length: Including space it is 26 bytes?
In the network settings-Transmit
1. Starting address (TxData) number of bytes, is it 26 byte?
2. Rules for transmission, do I need a signature? Any start or end of frame? Currently I don't use STX, just use ETX (no of byte:1, ETX frame: D)
3. I did not click "Checksum Method"
In the network settings-Receive
1. Rules for start of frame, I use "as soon as Byte received"
2. End of frame ETX (no of byte:1, ETX frame : D )
In the network general settings
Response timeout 999
Byte format: Low Byte - High Byte
Can anybody tell what is correct and what is not?