
EDAM-4200 Series User’s manual Version 1.03
9.3
All Digital Input/Output Modules
All EDAM-4200 DIO modules use the same MODBUS address mapping
9.4
MODBUS/TCP address Mapping & Function Number
0xxxx - Coils access, (For 1, 5, 15 function code)
1xxxx - Read discrete inputs, (For 2 function code)
3xxxx - Read input register, (For 4 function code)
4xxxx - Holding register access,
(For 3, 6, 16 function code)
xxxx - Element address of a data block, In the MODBUS data model each element within a data
block is numbered from 1 to n.
Example:
00005 - Means Coils access and Starting address = 0004 (0005-1)
10002 - Means Discrete inputs and Starting address = 0001 (0002-1)
30257 - Means Input register and Starting address = 0256 (0257-1)
40001 - Means Access holding register and Starting address = 0000 (0001-1)
MODBUS function code definition:
Function Code
Description
01 (0x01)
Read coils
02 (0x02)
Read Discrete Inputs
03 (0x03)
Read multiple Holding registers
04 (0x04)
Read multiple input registers
05 (0x05)
Write single coil
06 (0x06)
Write single register
15 (0x0F)
write Multiple coils
16 (0x10)
Write Multiple register
70 (0x46)
Read / write module settings
Error Response:
If the function specified in the message is not supported, then the module Response as follows:
Offset
Function
Length
Description
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
Function code | 0x80
02
Exception code
1 Byte
= 0x01 - invalid function code.
= 0x02 - invalid data address.
= 0x03 - invalid data value.
= 0x04 - host WDT timeout
= 0x05 – The Emergency input channel was
activated.
Printed Date: 27 February 2018
147