AutomationDirect SIO-MB04ADS User Manual

®
Field I/O
SIO-MB04ADS
USER GUIDE
Analog Input Module: 8-input, current/voltage
Manual Number: SIO-MB04ADS-UG
Stride Field I/O
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.
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 Input Type, Channel 0 (Inputs 1-0) R/W 40032 Input Type, Channel 1 (Inputs 3-2) R/W 40033 Input Type, Channel 2 (Inputs 5-4) R/W 40034 Input Type, Channel 3 (Inputs 7-6) R/W 40041 Analog Input (0) - mA RO 40042 Analog Input (1) - V RO 40043 Analog Input (2) - mA RO 40044 Analog Input (3) - V RO 40045 Analog Input (4) - mA RO 40046 Analog Input (5) - V RO 40047 Analog Input (6) - mA RO 40048 Analog Input (7) - V RO
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
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
CH0
CH1
CH2
CH3
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
• A maximum of 64 registers can be read through Modbus function codes 03 and 04 (see “Supported modbus functions codes”).
• A maximum of
• A maximum of
SIO-MB04ADS User Guide, 1st Edition
128 coils can be read through Modbus function codes 01 and 02 (see “Supported modbus functions codes”).
64 registers can be written by Modbus function code 16 (see “Supported modbus functions codes”).
64 coils can be written by Modbus function code 15 (see “Supported modbus functions codes”).
PRODUCT LABEL AND WIRING DIAGRAM
Terminal block pinouts and wiring diagrams are printed on the side of the module, as shown below.
Stride Field I/O
SIO-MB04ADS User Guide, 1st Edition
Stride Field I/O
DESCRIPTION OF MODBUS REGISTERS
40002 / 40003: FIRMWARE
Two read-only registers, containing the firmware version.
40007: NODE ID
Contains the Modbus address of the device; the values allowed are from 1 to 245 decimal.
This value must match the Modbus address of the connected Modbus device (data source). Default value: 1 Decimal (01 Hex). INIT value: 245 Decimal (F5 Hex).
40011: SYSTEM FLAGS
Contains the enable bits and system event identifiers. The following parameters are configurable:
Watchdog Event Enable: this bit enables the Watchdog Event (0=Watchdog Disabled, 1 =Watchdog Enabled). If the Watchdog is enabled and the Watchdog Timer (configured in register 40013) expires before this device receives a Modbus command, the green PWR LED blinks and the Watchdog Event bit is set to 1. This bit must be set in logic on power up.
Watchdog Event: this bit is set to 1 when the Watchdog Timer expires before this device receives a Modbus command. This bit must be reset manually after a Watchdog event.
Power Up Event: this bit is forced to 1 at each time power is applied to the device to indicate that the device has been switched off or reset. With the setting of this bit as 0 (by the user) and checking its state, it is possible to know if a reset of the device has occurred (0 = reset not occurred; 1 = reset occurred). This bit must be reset manually.
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Coil - - - - - 163 162 161 - - - - - - - -
Description Watchdog Event enable
Watchdog Event Power Up Event
40013: WATCHDOG TIMER
Contains the value of the Watchdog timer, in seconds. If the Watchdog is enabled and the device doesn’t receive a command before this timer expires, the Watchdog bit will be set to 1 (see the description of “System Flags”). Default value: 10 (10 sec.).
40031: INPUT TYPE CH 0
This register shows the input types that have been configured (see “Input Type Table”). In this device the configuration of input types is fixed: Input #1 = Volt; Input #0 = mA. To disable an input write 0 to the bit that corresponds to the input that you want to disable. Default: 0203 Hex.
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Description Input Type #1 Input Type #0
INPUT TYPE TABLE
Input Value (Hex) Value (Dec)
Disabled 00h 0
Volt 02h 2
mA 03h 3
40032: INPUT TYPE CH 1
This register shows the input types that have been configured (see “Input Type Table”). In this device the configuration of input types is fixed: Input #3 = Volt; Input #2 = mA. To disable an input write 0 to the bit that corresponds to the input that you want to disable. Default: 0203 Hex.
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Description Input Type #3 Input Type #2
INPUT TYPE TABLE
Input Value (Hex) Value (Dec)
Disabled 00h 0
Volt 02h 2
mA 03h 3
SIO-MB04ADS User Guide, 1st Edition
Loading...
+ 8 hidden pages