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.

 

 

Serial

UID: 15

 

 

 

 

 

perle

 

 

 

 

 

 

a

IOLAN

PC running

Modbus Serial

 

Application

 

Power

I/O Digital

Output

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 on page 283 and connect to the IOLAN over the network.

Network

PC running a

Modbus Serial

Application

UID: 15

perle

IOLAN

Power

I/O Digital

Output

277

Page 277
Image 277
Perle Systems 5500161-40 manual Modbus Slave, UDP Unicast Example, Modbus Serial Application Connected to the Serial Port