Technical FAQs

Ask a Question

Setting up IO Scanning from a PLC (master) to a Magelis HMI (slave)?

Goals and Symptoms

Setting up a Magelis HMI as a TCP/IP slave
IO Scanning from a PLC as a TCP/IP master
Vijeo Designer v4.5 or higher

Causes and Fixes

Note: This can only be done with Vijeo Designer v4.5 or higher

In order to IO Scan a Magelis HMI from a PLC you will first need to configure a Modbus TCP/IP Slave driver in the Magelis.

To do this first in Vijeo Designer right click on IO Manager and chose "New Driver".

In the Diver Window chose Schneider Electric Industries SAS as the Manufacturer, Modbus Slave as the Driver, and Modbus Slave TCP/IP as the Equipment.
Then press OK

Next double click on the Driver (ModbusSlave01) to open the Driver Configuration.
Configure the driver according to your application needs (the default settings are shown).

Next double click on the Equipment (ModbusSlaveTCPIP01) to open the Equipment Configuration.
Configure the Equipment according to your application needs.
Note: For this example a Unity Premium PLC will be the master. So IEC61131 Syntax and 0-based Addressing Mode need to be chosen.

Under the Variable Tab of the VD project create Variables as needed, link them to the ModbusSlaveTCPIP01 Scan Group, and set the address.
Note: This address will be the address the PLC will be IO Scanning to.

Once the Variables have been created you can link them to displays, graphs, etc...
Then download the application to the HMI.

Next open your PLC program and create the variable (addresses) you want to IO Scan to the HMI

Next enable IO Scanning and open your table. Configure it according to your application
Note: In this example only 5 registers are being written from the PLC to the HMI (%MW0 in the PLC to %MW0 in the HMI)

Finally download the program to the PLC and run the PLC.

Was this helpful?
What can we do to improve the information ?