The IO scanner makes it possible to periodically read or write to/from remote inputs/ouputs on the Ethernet network, without requiring any specific programming.
This service comprises the following essential elements:
-
a read field containing all the values of the remote inputs,
-
a write field containing all the values of the remote outputs,
-
scanning periods independent of the PLC cycle and dedicated to checking each remote device.
The scan will only be performed if the PLC is in Run mode.
This service works with all devices supporting Modbus communication on the TCP/IP profile in server mode.
The exchange mechanism, which is transparent for users, involves:
-
read requests,
-
write requests,
-
read and write requests.
The following diagram shows how scanning of remote inputs/outputs works.
-
As soon as the PLC goes into Run mode, the module opens one connection per scanned device.
-
The module then periodically reads the input words and periodically writes the output words of each device.
-
If the PLC goes into Stop mode, the connections with each device are closed.
The functions of the IO scanning service are to:
-
manage the connection with each remote device (one connection per scanned device),
-
scan the inputs/outputs of the device by using the Modbus read/write requests on the TCP/IP profile,
-
update the read/write fields in the application memory,
-
refresh the status bits of each remote device.
NOTE: The status bits indicate whether the input/output words of the module have been refreshed.