In this new test we will use an Arduino Mega 2560 board and a Panasonic FPX PLC, in this case we will configure the PLC as a Modbus RTU master and the Arduino as a Modbus RTU slave via RS232. We will use as a base previous examples of both platforms.
Since arduino handles TTL voltages 0 -5v we have manufactured a MAX232 TTL to RS232 converter, quick view of MAX232 DIY board, We have taken 5v to power the MAX232, although we recommend using an external 5v source and unify ground.
More info and downloads
Blog Español: http://es.trialcommand.com
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Components and Materials Required for Testing
Step 3: Arduino Mega 2560 Slave Modbus RTU & PLC Panasonic Master (RS232)
Arduino Mega 2560 Slave Modbus RTU & PLC Panasonic Master (RS232)
- Although for some this test is similar to previous tests, visual and functionally does not vary, but internally the library and / or the configuration as master or slave are different would be denoted by revolving the Master and Slave Modbus libraries for Arduino.
- The board of Arduino controls without any inconvenience the PLC, you only have to consider communication parameters, speeds physical connections, wiring, etc.
- Easily this application, in this case a PLC in more practical cases data solutions or control with meters, counters and PID controllers.
- We recommend not to use speeds higher than 9600, if it works at 115200 but we want to guarantee security in the transmission given the Arduino and max232.