Tutorial Em4 Modbus RS485 Master Millenium Evo Slave en
Tutorial Em4 Modbus RS485 Master Millenium Evo Slave en
WITH
MILLENIUM EVO SLAVE
TUTORIAL
12/04/2018
SUMMARY
• Introduction
• Hardware and software required
• Connecting hardware for use
• Configuring Modbus communication for em4 master and Millenium Evo slave
• Data exchange between em4 and Millenium Evo
– em4 function blocks
Writing words to Millenium Evo with MWOUT
Reading words from Millenium Evo with MWIN
Writing bits to Millenium Evo with MBOUT
Reading bits from Millenium Evo with MBIN
– Millenium Evo function blocks
Millenium Evo XWIN
Millenium Evo XWOUT
Millenium Evo XBIN
Millenium Evo XBOUT
• Example programs
and
USB Programming
Interface
88 980 110
Communication cable
between em4 and
Modbus RS485-P Modbus RS485 Millenium Evo needs to be
Interface Interface assembled by user
• Connection between em4 master interface and the slave, Millenium Evo, is done using a modbus
2 wire system:
• Cable wirings between the em4 interface 88980122 and the Millenium Evo interface 88980123
(one slave).
Attention:
Concerning connection to GND
and grounded equipment please
refer to the installation sheet
enclosed with the Modbus RS485
Interface
+
24VDC
-
OFF
+ + + +
Disconnect the power whenever inserting or extracting the em4 Modbus RS485 interface or communication cable!
6) Click on OK
6) Click on OK
Crouzet Tutorial em4 master Millenium Evo slave April 2018 20
DATA EXCHANGE BETWEEN em4
AND MILLENIUM EVO
USING WORDS
• To write and read bits when not using XBIN / XBOUT Blocks it is necessary to use words and
binary/decimal or decimal/binary converters in the em4 program.
• Program samples for an em4 master and a Millenium Evo slave to exchange words and bits.
• Two programs for em4 master depending on the RS485 interface used on Millenium Evo.
• Attached programs:
– em4_master_Millenium EVO Slave 88980123_example_program.pm4 for em4
– Millenium EVO Slave_em4_master 88980122_example_program.MEVO for Millenium Evo
www.crouzet.com