warns

For cLAN V2 or higher

cLAN Modbus Slaves (Modbus Serial and Modbus TCP)

The cLAN has two Modbus slaves that can be used to read the value of the device's channels. One slave can be configured in one serial port (Modbus RTU or Modbus ASCII). The other one in it's Etherner port (Modbus TCP)

Serial Modbus slave configuration

To use the serial port Modbus slave configure one serial port in "Modbus Slave" mode

slave

Then, go to the “Modbus” tab and select “Modbus Slave”

slave

Here you can configure the following paramaters

slave

Serial mode

It refers to the Modbus protocol to be used, being RTU or ASCII.

Slave ID

The cLAN will answer when it receives a Modbus query to this Modbus slave ID

Exceptions

If enabled the cLAN will answer with an exception to a query sent with an invalid command, address range or value.

32 bits mode

AN an P channels are mapped in 32 bit registers. Here you can configure if the most significant word is mapped in the first or the second register

Ethernet Modbus (Modbus TCP) slave configuration

The Modbus TCP is always enabled. The cLAN will answer the Modbus TCP queries on port 502. It can support up to four simultaneous connections.

Go to the “Modbus” tab and select “Modbus Slave”

slave

Here you can configure the following paramaters:

Slave ID

The cLAN will answer when it receives a Modbus query to this Modbus slave ID

Exceptions

If enabled the cLAN will answer with an exception to a query sent with an invalid command, address range or value.

32 bits mode

Pulse channels are mapped in 32 bit registers. Here you can configure if the most significant word is mapped in the first or the second register

Channels mapping

This is how cLAN channels are mapped

Start Address

End Address

cLAN Channel

Format

10001

10100

I1 a I100

Bit

00001

00100

O1 a O100

Bit

40001

40200

AN1 a AN100
32 Bits integer
40201
40400
PI1 a PI100
32 Bits integer

Example. On a cLAN-3524-XF or MQ with the default configuration, the physical I/Os are mapped like this

Start Address

End Address

cLAN Channel

10001

10016

I1 a I16

00001

00008

O1 a O8

40001

40016

AN1 a AN8
40201
40216
PI1 a PI8

2020-10-05