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:
GX Works2 is the programming and configuration software for FX, L, and Q Series controllers. Following the goal of maximum efficiency, GX Works2 & GX Works3 conform to IEC61131-3 standards, allowing developers to mix and match between five different programming languages and save parts of projects in libraries for use within future applications.
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 ?
(It doesn't matter in which coding language or just a protocol manual)
HrqlsHrqls
2 Answers
See if this manual doesn't help you, http://www.automationsystemsandcontrols.net.au/PDF%27s%20Mitsubishi/Manuals/FPLC/FX%20SERIES%20USER%27S%20MANUAL%20-%20Data%20Communication%20Edition.pdf. A list of manuals is also available at http://www.automationsystemsandcontrols.net.au/Technical%20Mitsubishi.html.
jacjac
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.
HrqlsHrqls
Not the answer you're looking for? Browse other questions tagged c#vb6serial-portplc or ask your own question.Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |