Sep 02 2009
Modbus TCP Protocol between VersaMax40 and Ifix 5.0
I would like share with you how to perform the modbus TCP/IP communication between Micro PLC VersaMax and HMI Ifix 5.0 from GE Fanuc Automation. VersaMax are nano or micro PLC from GE Fanuc Automation. There are several type of VersaMax :
- VersaMax Nano 10 (6 in/4 out built-in discrete I/O)
- VersaMax Micro 14 (8 in/6 out built-in discrete I/O)
- VersaMax Micro 23 (13 in/10 out built-in discrete I/O and 2 in/1 out built-in analog I/O)
- VersaMax Micro 28 (16 in/12 out built-in discrete I/O)
- VersaMax Micro 20 (12 in/8 out built-in discrete I/O)
- VersaMax Micro 40 (24 in/16 out built-in discrete I/O)
- VersaMax Micro 64 (40 in/24 out built-in discrete I/O)
Based on the right picture, only VersaMax Micro that compatible with I/O expansion units. Up to 4 I/O expansion units or 176 I/O points could connected to VersaMax Micro with series connector cable. Almost all type expansion units could embedded to VersaMax Micro. These are several capabilities on VersaMax Nano and Micro that make them very suitable for small base applications :
- Up to 9K words of memory
- 1.0 μsec. per boolean operation execution
- Floating-point math
- Real-time clock
- PID close loop cotrol
- Motion capability
- High-speed counters
- Subroutines
- Add on module communication, like modbus RTU, TCP
These are materials breakdown on my own experience projects using VersaMax :
- VersaMax Micro 40 I/O
- Analog Expansion 6 I/O – UEX626
- Communication module from RS-232 to TCP/IP – IC200UEM001
- Baterai backup memory to ensure real time clock function
- Cross ethernet cable (RJ45 to RJ45) and Serial RS-232 Cable (RJ-45 to DB9)
- Ifix 5.0 SCADA software
- PumpKIN Utility software
- Ifix 5.0 Modbus driver software
- Proficy Machine Edition software
First step is how to connecting the VersaMax 40 to Proficy Machine Edition. You need to make or buy serial RS-232 cable with interface port RJ45 to DB9. If you plan make by yourself please following these addressing pin number for port RJ45 and DB9 or Manual of VersaMax Micro 40 (GFK 1645E). Then turn on VersaMax 40 and click online mode on Proficy Machine Edition to perform the PLC programming and online monitoring.
Second step is configure communication module IC200UEM001 so could used for modbus interface protocol. As default IC200UEM001 have configured for TCP/IP protocol, so you could communicate VersaMax 40 to Proficy Machine Edition or HMI via cross ethernet cable directly. To configure IC200UEM001 as modbus interface protocol, you have to replace GEF_SRTP_V1.0.rom firmware with Modbus_TCP Server_v1.0.rom firmware. You could using PumpKIN Utility to do that.
The detail explanation about using PumpKIN Utility could be found in Manual IC200UEM001 (GFK2436B). Until this step you have succesful configure VersaMax 40 to support modbus TCP/IP protocol communication. The important thing that you haveto know is the VersaMax modbus register mapping. Bellow is the modbus register mapping :
- %R00001 = 400001 (unsign integer)
- %R00002 = 400002 (unsign integer)
- etc
Input Bool Data
- %I00001 = 100001
- %I00002 = 100002
- etc
Output Bool Data
- %Q00001 = 000001
- %Q00002 = 000002
- etc
Third step is install Ifix 5.0 SCADA and MBE I/O Server into your PC or laptop. MBE I/O Server is Modbus driver for Ifix 5.0. Ifix 5.0 using this driver to communicate to other hardware or system by using an open modbus protocol. Please following these step :
Click Ifix 5.0 shortcut
- Click SCU (System Configuration Utility)
- Click Configure
- Enable SCADA support
- Find I/O Driver Name : MBE Modbus Ethernet and choice it by click Add
- Click Configure the I/O Driver
- Click Connect to MBE I/O driver
- Please save your SCU configuration
- After you could connect MBE I/O driver please add and enable new ethernet port channel
- Add and enable a new device for IP static configuration, maximum block modbus register, relay timeout, addressing mode and bit mode swapping register.
- Add a new block modbus register for integer/float (400001 ~ …), input (100001 ~ …), output (000001 ~ …). I suggest you to spit that 3 modbus register for easy configuration and checking. Please download these example MBE Configuration.
- Please save your MBE configuration
Start Ifix 5.0 then go to Application -> Database Manager. On this database manager all of tagname/variable that used for HMI Ifix 5.0 saved here. After all tagname/variable have define well on here, you have ready to perform graphical and visual basic programming HMI Ifix 5.0. I hope this short sharing knowledge/experience could help you to using Ifix 5.0 and Modbus configuration of VersaMax 40. If you have any idea or need more explanation please contact me as soon as possible. I would like help.
No responses yet
Print This Post
Related Posts