
Non Procedural Communication and RS2 Instruction
I am trying to communicate with a "Compass Module" which basically works on an RS-232 protocol. I am using an RS232-Rs485 bidirectional converter and connecting the PLC with RS-485 built in terminal.
Regarding the functionality of converter, I have verified it through Docklight by sending querry command to the compass from RS-232 end and receiving on RS-485 to USB adapter connected with my PC on COM port.
Now It seems like a very simple thing but its not that simple or it looks complex to me.
I have been trying multiple ladder logic codes with RS2 instruction but I am unable to get or receive data.
I have previously worked with MODBUS RTU protocol and controlled 2x wind sensors using ADPRW function and it worked great. This compass module has its own custom protocol and 9600 Baud Rate with 8N1 setting. I am sharing the screenshot of the code I am running.