Does anyone know the communication protocol for communication with the RS232 port of a Mitsubishi FX3G PLC?
I searched the site of Mitsubishi and Googled, but couldn’t find the syntax of the commands to send to obtain the data of specific registers in the PLC.
I found the following parts of the command though:
- BR = bit read
- BW = bit write
- WR = word read
- WW = word write
I could not find though wether i should use a straight cable, or a crossed cable, and not even at which baudrate i should communicate (or other settings like data bits, stop bits, and parity)
Does anyone have any experience with RS232 communication with a FX3G PLC ?
- what is the baudrate (and other communication settings) ?
- how is the header of the command built up ?
- how is the command itself built up ?
- how is the checksum calculated ?
(It doesn’t matter in which coding language or just a protocol manual)
I found the required documentation here
The default communication settings are a baudrate of 9600, even parity, 7 data bits, 1 stop bit, and no checksum
I changed this to a baudrate of 19200, none parity, 8 data bits, 1 stop bit, and checksum turned on :
A small VB6 project :
Be careful not to send the commands too fast. Once per plc cycle (100 ms in my case) seems to be the limit.
This code is in VB6, but the same could be applied in C# or any other languages.
If you want me to make an example in C#, please contact me.