Perle Systems TS2 Switch User Manual


 
165
I/O Modbus Slave
UDP Unicast Example
For an example of the I/O UDP unicast, see the sample program, ioudpbcast.c, found on your CD-
ROM.
I/O Modbus Slave
If you have a Modbus serial or TCP application, it can access I/O connected to the IOLAN when the
I/O Global Modbus Slave is enabled. You must supply a unique UID for the IOLAN, as it will act as
a Modbus Slave.
There are three ways your Modbus Application can connect to the IOLAN to access I/O.
Modbus Serial Application Connected to the Serial Port
Your Modbus serial application can be connected right to the IOLAN serial port to access I/O.
IOLAN
Serial
PC running a
Modbus Serial
Application
UID: 15
I/O Digital
Output
Power
perle
Modbus Serial Application Connected to the Network
If you want to access the I/O from a LAN connection, you can install TruePort on the PC running the
Modbus serial application as described in
TruePort I/O and connect to the IOLAN over the network.
Network
IOLAN
perle
PC running a
Modbus Serial
Application
UID: 15
I/O Digital
Output
Power