AI4.1
Modbus Registers
Below is a list of available MODBUS registers. The same register numbers are also used by the MIOS-2 protocol.
Modbus Read / Write (0x17) Function
METEL IO modules have implemented the MODBUS function (0x17) Read/Write of Multiple registers. Typically it is required to have two separate requests (and responses) for:
1. Writing of outputs via MODBUS function (0x16) Writing Multiple Registers
2. Reading of inputs via MODBUS function (0x03) Read Holding Registers
This requires a total of 4 frames to be sent over MODBUS. If using 0x17 function only one request is needed for the reading and writing of outputs. This requires a total of 2 frames to be sent over MODBUS.
Default Settings of Communication
Device ID: 1
Baudrate: 115 200
Parity: None
Data bits: 8
Stop bits: 1
Subject | Type | R/W | Value | Offset | |
---|---|---|---|---|---|
Device Identity |
Product Type | u8[3] | R | 1002-04 | |
Serial Number | u32 | R | 1005-06 | ||
PCB Version | u32 | R | 1007-08 | ||
PCB Revision | u16 | R | 1009 | ||
FW Version Major | u16 | R | 1010 | ||
FW Version Minor | u16 | R | 1011 | ||
FW Version - Revision | u32 | R | 1012-13 | ||
IF#01 Slot State | u16 | R | 0 = N/A 1 = IF#01 not Inserted 2 = IF#01 Inserted, CRC error 3 = IF#01 Inserted, CRC OK |
1021 | |
IF#01 Product Type | u8[3] | R | 1022-24 | ||
IF#01 Serial Number | u32 | R | 1025-26 | ||
IF#01 PCB Version | u32 | R | 1027-28 | ||
IF#01 PCB Revision | u16 | R | 1029 | ||
Device Control |
Reset | u16 | RW | 55203 = To Reboot | 1201 |
Bootloader / Application | u16 | R | 0x00A – Application, 0x00B – Bootloader |
1203 | |
Restart to Bootloader | u16 | RW | 617 = To Bootloader else = deactivate bootloader |
1204 | |
Device Status |
Board Power Voltage | u16 | R | 105 = 10,5V | 1311 |
Board Temperature | u16 | R | -200 = -20,0°C 250 = 25,0°C |
1321 |
Subject | Channel | Type | R/W | Value | Offset | |
---|---|---|---|---|---|---|
States of Digital Inputs and Outputs |
Digital Input 1 | DI#01 | bit | R | 0 = inactive 1 = active |
3001 |
Digital Input 2 | DI#02 | bit | R | 3002 | ||
Digital Input 3 | DI#03 | bit | R | 3003 | ||
Digital Input 4 | DI#04 | bit | R | 3004 | ||
COIL Output 1 | DI#05 | bit | R | 3005 | ||
COIL Output 2 | DI#06 | bit | R | 3006 | ||
COIL Output 3 | DI#07 | bit | R | 3007 | ||
COIL Output 4 | DI#08 | bit | R | 3008 | ||
RTD 1 | DI#09 | bit | R | 3009 | ||
RTD 2 | DI#10 | bit | R | 3010 | ||
RTD 3 | DI#11 | bit | R | 3011 | ||
RTD 4 | DI#12 | bit | R | 3012 | ||
Inputs | DI#16 - DI#01 | u16 | R | 0x0000 - 0x0FFF | 3001 |
Subject | Channel | Type | R/W | Value | Offset | |
---|---|---|---|---|---|---|
Input Mode |
Digital Input 1 | DI#01 mode | u16 | RW | 0 = None 1 = Falling Edge 2 = Rising Edge 3 = Change Edge |
3101 |
Digital Input 2 | DI#02 mode | u16 | RW | 3102 | ||
Digital Input 3 | DI#03 mode | u16 | RW | 3103 | ||
Digital Input 4 | DI#04 mode | u16 | RW | 3104 | ||
Counter | Digital Input 1 | DI#01 counter | u32 | R | 3201 - 02 | |
Digital Input 2 | DI#02 counter | u32 | R | 3203 - 04 | ||
Digital Input 3 | DI#03 counter | u32 | R | 3205 - 06 | ||
Digital Input 4 | DI#04 counter | u32 | R | 3207 - 08 |
Subject | Channel | Type | R/W | Value | Offset | |
---|---|---|---|---|---|---|
Measured Resistance Values |
RTD 1 | AI#01 | s32 | R | 1000 = 1Ω 0 = 0Ω -1000 = -1Ω |
5051 - 52 |
RTD 2 | AI#02 | s32 | R | 5053 - 54 | ||
RTD 3 | AI#03 | s32 | R | 5055 - 56 | ||
RTD 4 | AI#04 | s32 | R | 5057 - 58 | ||
Temp. | RTD 1 Temp | AI#06 | s32 | R | 1000 = 1Ω 0 = 0Ω -1000 = -1Ω |
5061 - 62 |
RTD 2 Temp | AI#07 | s32 | R | 5063 - 64 | ||
RTD 3 Temp | AI#08 | s32 | R | 5065 - 66 | ||
RTD 4 Temp | AI#09 | s32 | R | 5067 - 68 | ||
Type of Inputs |
RTD 1 Type | AI#01 Par. | u16 | RW | 0 - None 1 - PT100 2 - PT500 3 - PT51000 |
5101 |
RTD 2 Type | AI#02 Par. | u16 | RW | 5102 | ||
RTD 3 Type | AI#03 Par. | u16 | RW | 5103 | ||
RTD 4 Type | AI#04 Par. | u16 | RW | 5104 | ||
Type of Connect. |
RTD 1 Mode | AI#11 Par. | u16 | RW | 0 - None 2 - 2 Wire 3 - 3 Wire |
5111 |
RTD 2 Mode | AI#12 Par. | u16 | RW | 5112 | ||
RTD 3 Mode | AI#13 Par. | u16 | RW | 5113 | ||
RTD 4 Mode | AI#14 Par. | u16 | RW | 5114 | ||
Resistance Correction PT1000 |
RTD 1 Offset | AI#21 Par. | s16 | RW | 1000 = 1Ω 0 = 0Ω -1000 = -1Ω |
5121 |
RTD 2 Offset | AI#22 Par. | s16 | RW | 5122 | ||
RTD 3 Offset | AI#23 Par. | s16 | RW | 5123 | ||
RTD 4 Offset | AI#24 Par. | s16 | RW | 5124 | ||
Resistance Correction PT100 |
RTD 1 Offset | AI#31 Par. | s16 | RW | 1000 = 1Ω 0 = 0Ω -1000 = -1Ω |
5131 |
RTD 2 Offset | AI#32 Par. | s16 | RW | 5132 | ||
RTD 3 Offset | AI#33 Par. | s16 | RW | 5133 | ||
RTD 4 Offset | AI#34 Par. | s16 | RW | 5134 |
Subject | Channel | Type | R/W | Value | Offset | |
---|---|---|---|---|---|---|
SSR Outputs |
Output 1 | DO#01 | bit | RW | 0 = inactive 1 = active |
4001 |
Output 2 | DO#02 | bit | Rw | 4002 | ||
Output 3 | DO#03 | bit | Rw | 4003 | ||
Output 4 | DO#04 | bit | Rw | 4004 | ||
Outputs | DO#16 - DO#01 | u16 | Rw | 0x0000 - 0x000F | 4001 | |
Outputs Mode |
Output 1 | DO#01 Mode | u16 | RW | 1 - State 2 - PWM 3 - Pulse |
4201 |
Output 2 | DO#02 Mode | u16 | Rw | 4202 | ||
Output 3 | DO#03 Mode | u16 | Rw | 4203 | ||
Output 4 | DO#04 Mode | u16 | Rw | 4204 | ||
State of Output Mode |
Output 1 | DO#01 M_st | u16 | RW | 0 = inactive 1 -active |
4301 |
Output 2 | DO#02 M_st | u16 | Rw | 4302 | ||
Output 3 | DO#03 M_st | u16 | Rw | 4303 | ||
Output 4 | DO#04 M_st | u16 | Rw | 4304 | ||
Pulse Width HIGH |
Output 1 PWM High | DO#01 Par1 | u16 | RW | 0 = None 1 = 100us 10 = 1ms |
4401 |
Output 2 PWM High | DO#02 Par1 | u16 | Rw | 4402 | ||
Output 3 PWM High | DO#03 Par1 | u16 | Rw | 4403 | ||
Output 4 PWM High | DO#04 Par1 | u16 | Rw | 4404 | ||
Pulse Width LOW |
Output 1 PWM Low | DO#01 Par2 | u16 | RW | 0 = None 1 = 100us 10 = 1ms |
4601 |
Output 2 PWM Low | DO#02 Par2 | u16 | Rw | 4602 | ||
Output 3 PWM Low | DO#03 Par2 | u16 | Rw | 4603 | ||
Output 4 PWM Low | DO#04 Par2 | u16 | Rw | 4604 |
Note: To activate the bootloader, it is necessary to write a value 617 into the registry with an offset 1204 and restart the device.