Device |
Bit Address |
Word Address |
32 bits |
Notes |
|---|---|---|---|---|
Coil |
000001 - 065536 |
000001 - 065521 |
or
|
|
Discrete Input |
100001 - 165536 |
100001 - 165521 |
||
Input Register |
----- |
300001 - 365536 |
||
Holding Register |
400001,00 - 465536,15 |
400001 - 465536 |
|
*1You can set the data storing order in 32-bit data word units and 64-bit data double-word units in the Device Setting dialog box.
*2Write disable
Below is the list of Supported Function Code.
Function Code (Hex) |
Description |
|---|---|
FC01 (0x01) |
Reads the ON/OFF status of coils (0X references) in the slave. |
FC02 (0x02) |
Reads the ON/OFF status of discrete inputs (1X references) in the slave. |
FC03 (0x03) |
Reads the binary content of holding registers (4X references) in the slave. |
FC04 (0x04) |
Reads the binary content of input registers (3X references) in the slave. |
FC05 (0x05) |
Forces a single coil (0X references) to either ON or OFF |
FC06 (0x06) |
Presets a value into a single holding register (4X references). |
FC15 (0x0F) |
Forces each coil (0X references) in a sequence of coils to either ON or OFF. |
FC16 (0x10) |
Presets values into a sequence of holding registers (4X references). |
The following table gives the equivalences between the Modbus syntax and the IEC61131 syntax.
Device |
Modbus address syntax
|
IEC61131syntax |
||||||
|---|---|---|---|---|---|---|---|---|
Format |
0-based |
1-based |
||||||
Format |
Range |
First |
Range |
First |
Range |
First element |
||
Coil |
000001+i |
i=0 to 65535 |
000001 |
%Mi |
i=0 to 65535 |
%M0 |
i=1 to 65536 |
%M1 |
Discrete Input |
100001+i |
i=0 to 65535 |
100001 |
- |
- |
- |
- |
- |
Input register |
300001+i |
i=0 to 65535 |
300001 |
- |
- |
- |
- |
- |
Input register |
300001+i,j |
i=0 to 65535 j=0 to15 |
300001,00 |
- |
- |
- |
- |
- |
Holding register |
400001+i |
i=0 to 65535 |
400001 |
%MWi |
i=0 to 65535 |
%MW0 |
i=1 to 65536 |
%MW1 |
Holding register |
400001+i,j |
i=0 to 65535 j=0 to15 |
400001,00 |
%MWi:Xj |
i=0 to 65535 j=0 to 15 |
%MW0:X0 |
i=1 to 65535 j=0 to15 |
%MW1:X0 |
Address mapping in BLUE is as follows. %MD and %MF use two sequential words form the specified address. The %KW, %KD, and %KF are mapped similarly.
