Stride Field I/O
1
SIO-MB04DAS User Guide, 1st Edition
GENERAL DESCRIPTION
Modbus data is mapped in tables and assigned an address. Data can be of two types:
• REGISTER, 2 bytes (word of 16 bits) that can be associated to an analog input or output, a variable, a setpoint, etc.
• COIL, 1 bit that can be associated to a digital input or output, or to a logic state.
A register could contain the image (mirror) of a group of coils; for example, the system flags of the device could be read or written
as individual bits addressing the coil related to each or can be read or written as a word addressing the register. Modbus registers and
coils are divided into the following groups of addresses:
• 0xxxx and 1xxxx = Coils (bit)
• 3xxxx and 4xxxx = Registers (word)
When reading functions are performed, use the tables indicated below to address the registers. These registers may be addressed by a
Modbus TCP/IP server or by the integrated web server.
COIL ADDRESSES
Coil (Hex) Coil (Dec)
Description
Access
0x00A1
00161
Watchdog Enable
R/W
0x00A2
00162
Watchdog Event
R/W
0x00A3
00163
Power Up Event
R/W
REGISTER ADDRESSES
Register
Description
Access
40002
Firmware [0]
RO
40003
Firmware [1]
RO
40004
-Reserved-
RO
40005
-Reserved-
RO
40007
Node ID
R/W
40011
System Flags
R/W
40013
Watchdog timer
R/W
40031
Output Type, Channel 0 (Outputs 1-0)
R/W
40032
Output Type, Channel 1 (Outputs 3-2)
R/W
40041
Analog Output (0)
R/W
40042
Analog Output (1)
R/W
40043
Analog Output (2)
R/W
40044
Analog Output (3)
R/W
40049
Power Up (0)
R/W
40050
Power Up (1)
R/W
40051
Power Up (2)
R/W
40052
Power Up (3)
R/W
40057
Safe (0)
R/W
40058
Safe (1)
R/W
40059
Safe (2)
R/W
40060
Safe (3)
R/W
SUPPORTED MODBUS FUNCTION CODES
Function
Description
01
Read Coil Status (0xxxx)
02
Read Inputs Status (1xxxx)
03
Read Holding Registers (4xxxx)
04
Read Inputs Registers (3xxxx)
05
Force Single Coil
06
Preset Single Register
15 (0x0F)
Force Multiple Coils
16 (0x10)
Preset Multiple Registers
NOTES:
• Registers and coils marked as RO in the column ‘Access’ are Read Only registers.
• Registers and coils marked as R/W in the column ‘Access’ are Read and Write registers.
• The group of 0xxxx addresses mirrors the group of 1xxxx addresses; the group of 3xxxx addresses mirrors the 4xxxx addresses.
Therefore the first register could be addressed either as 30002 (with function 04) or 40002 ( with function 03).
• A maximum of
128
coils can be read through Modbus function codes 01 and 02 (see “Supported modbus functions codes”).
• A maximum of
64
registers can be read through Modbus function codes 03 and 04 (see “Supported modbus functions codes”).
• A maximum of
64
registers can be written by Modbus function code 16 (see “Supported modbus functions codes”).
• A maximum of
64
coils can be written by Modbus function code 15 (see “Supported modbus functions codes”).