Difference between revisions of "DI8.1"
(Created page with "=== Modbus Registers === Below is a list of available device MODBUS registers. The same register numbers are also used by the MIOS-2 protocol. === Modbus Read / Write (0x17)...") |
(English corretcions) (Tag: Visual edit) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=== Modbus Registers === | === Modbus Registers === | ||
− | Below is a list of available | + | 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 === | === Modbus Read / Write (0x17) Function === | ||
− | METEL IO modules have implemented MODBUS function (0x17) Read/Write of Multiple registers. Typically it is required to have two separate requests (and responses) for: | + | 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) | + | 1) Writing of outputs via MODBUS function (0x16) Writing Multiple Registers |
2) Reading of inputs via MODBUS function (0x03) Read Holding 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 writing | + | This requires a total of 4 frames to be sent over the 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 === | === Default Settings of Communication === | ||
− | Device ID: 1 | + | Device ID: 1 <br /> |
− | Baudrate: 115 200 | + | Baudrate: 115 200 <br /> |
− | Parity: None | + | Parity: None <br /> |
− | Data bits: 8 | + | Data bits: 8 <br /> |
− | Stop bits: 1 | + | Stop bits: 1 <br /> |
+ | |||
+ | <!-- MODBUS "States of Digital Inputs and Relay Outputs" registers table --> | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |- style="font-size: 17px;" | ||
+ | ! colspan="2" | Subject !! style="width: 110px;" | Channel !! style="width: 30px;" | Type !! style="width: 30px;" | R/W !! style="width: 230px;" | Value !! style="width: 60px;" | Offset | ||
+ | |- | ||
+ | | rowspan="13" style="width: 90px;" | <span style="font-size: 17px;"> '''States of <br /> Digital <br /> Inputs and <br /> Relay <br /> Outputs''' </span> | ||
+ | || Digital Input 1 || DI#01 || bit || R || rowspan="12" | 0 = inactive <br /> 1 = active || 3001 | ||
+ | |- | ||
+ | | style="width: 120px;" | Digital Input 2 || DI#02 || bit || R || 3002 | ||
+ | |- | ||
+ | | Digital Input 3 || DI#03 || bit || R || 3003 | ||
+ | |- | ||
+ | | Digital Input 4 || DI#04 || bit || R || 3004 | ||
+ | |- | ||
+ | | Digital Input 5 || DI#05 || bit || R || 3005 | ||
+ | |- | ||
+ | | Digital Input 6 || DI#06 || bit || R || 3006 | ||
+ | |- | ||
+ | | Digital Input 7 || DI#07 || bit || R || 3007 | ||
+ | |- | ||
+ | | Digital Input 8 || DI#08 || bit || R || 3008 | ||
+ | |- | ||
+ | | COIL Relay 1 || DI#09 || bit || R || 3009 | ||
+ | |- | ||
+ | | COIL Relay 2 || DI#10 || bit || R || 3010 | ||
+ | |- | ||
+ | | COIL Relay 3 || DI#11 || bit || R || 3011 | ||
+ | |- | ||
+ | | COIL Relay 4 || DI#12 || bit || R || 3012 | ||
+ | |- | ||
+ | | Inputs || DI#16 - DI#01 || u16 || R || 0x0000 - 0x0FFF || 3001 | ||
+ | |} | ||
+ | |||
+ | <!-- MODBUS "Relay and Push-Pull Outputs" registers table --> | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |- style="font-size: 17px;" | ||
+ | ! colspan="2" | Subject !! style="width: 110px;" | Channel !! style="width: 30px;" | Type !! style="width: 30px;" | R/W !! style="width: 230px;" | Value !! style="width: 60px;" | Offset | ||
+ | |- | ||
+ | | rowspan="7" style="width: 90px;" | <span style="font-size: 17px;"> '''Relay and <br /> Push-Pull <br /> Outputs ''' </span> | ||
+ | || Relay Output 1 || DO#01 || bit || RW || rowspan="6" | 0 = inactive <br /> 1 = active || 4001 | ||
+ | |- | ||
+ | | style="width: 120px;" | Relay Output 2 || DO#02 || bit || RW || 4002 | ||
+ | |- | ||
+ | | Relay Output 3 || DO#03 || bit || RW || 4003 | ||
+ | |- | ||
+ | | Relay Output 4 || DO#04 || bit || RW || 4004 | ||
+ | |- | ||
+ | | Push-Pull Output 1 || DO#05 || bit || RW || 4005 | ||
+ | |- | ||
+ | | Push-Pull Output 2 || DO#06 || bit || RW || 4006 | ||
+ | |- | ||
+ | | Outputs || DO#16 - DO#01 || u16 || RW || 0x0000 - 0x003F || 4001 | ||
+ | |- | ||
+ | | rowspan="2" style="width: 90px;" | <span style="font-size: 17px;"> '''Modes of <br /> Outputs ''' </span> | ||
+ | || Push-Pull Output 1 || DO#05 || u16 || RW || rowspan="2" | 0 = None (default) <br /> 1 = Push (PNP) <br /> 2 = Pull (NPN) || 4105 | ||
+ | |- | ||
+ | | Push-Pull Output 2 || DO#06 || u16 || RW || 4106 | ||
+ | |} | ||
+ | |||
+ | <!-- MODBUS "Device Identification" registers table --> | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |- style="font-size: 17px;" | ||
+ | ! colspan="2" | Subject !! style="width: 30px;" | Type !! style="width: 30px;" | R/W !! style="width: 230px;" | Value !! style="width: 60px;" | Offset | ||
+ | |- | ||
+ | | rowspan="12" style="width: 118px;" | <span style="font-size: 17px;"> '''Device <br /> Identity''' </span> | ||
+ | || Product Type || u8[3] || R || || 1002-04 | ||
+ | |- | ||
+ | | style="width: 215px;" | 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 <br /> 1 = IF#01 not Inserted <br /> 2 = IF#01 Inserted, CRC error <br /> 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 | ||
+ | |- | ||
+ | | rowspan="3" style="width: 90px;" | <span style="font-size: 17px;"> '''Device <br /> Control''' </span> || Reset || u16 || RW || 55203 = To Reboot || 1201 | ||
+ | |- | ||
+ | | Bootloader / Application || u16 || R || 0x00A – Application, <br /> 0x00B – Bootloader || 1203 | ||
+ | |- | ||
+ | | Restart to Bootloader || u16 || RW || 617 = To Bootloader <br /> else = deactivate <br /> bootloader || 1204 | ||
+ | |- | ||
+ | | rowspan="2" style="width: 90px;" | <span style="font-size: 17px;"> '''Device <br /> Status''' </span> || Board Power Voltage || u16 || R || 105 = 10,5V || 1311 | ||
+ | |- | ||
+ | | Board Temperature || u16 || R || -200 = -20,0°C <br /> 250 = 25,0°C || 1321 | ||
+ | |} | ||
+ | |||
+ | {{Note|NoteText= | ||
+ | To activate the '''bootloader''', it is necessary to write a value 617 into the registry with an offset 1204 and restart the device. | ||
+ | }} |
Latest revision as of 10:38, 13 February 2019
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 the 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 | Channel | Type | R/W | Value | Offset | |
---|---|---|---|---|---|---|
States of Digital Inputs and Relay 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 | ||
Digital Input 5 | DI#05 | bit | R | 3005 | ||
Digital Input 6 | DI#06 | bit | R | 3006 | ||
Digital Input 7 | DI#07 | bit | R | 3007 | ||
Digital Input 8 | DI#08 | bit | R | 3008 | ||
COIL Relay 1 | DI#09 | bit | R | 3009 | ||
COIL Relay 2 | DI#10 | bit | R | 3010 | ||
COIL Relay 3 | DI#11 | bit | R | 3011 | ||
COIL Relay 4 | DI#12 | bit | R | 3012 | ||
Inputs | DI#16 - DI#01 | u16 | R | 0x0000 - 0x0FFF | 3001 |
Subject | Channel | Type | R/W | Value | Offset | |
---|---|---|---|---|---|---|
Relay and Push-Pull Outputs |
Relay Output 1 | DO#01 | bit | RW | 0 = inactive 1 = active |
4001 |
Relay Output 2 | DO#02 | bit | RW | 4002 | ||
Relay Output 3 | DO#03 | bit | RW | 4003 | ||
Relay Output 4 | DO#04 | bit | RW | 4004 | ||
Push-Pull Output 1 | DO#05 | bit | RW | 4005 | ||
Push-Pull Output 2 | DO#06 | bit | RW | 4006 | ||
Outputs | DO#16 - DO#01 | u16 | RW | 0x0000 - 0x003F | 4001 | |
Modes of Outputs |
Push-Pull Output 1 | DO#05 | u16 | RW | 0 = None (default) 1 = Push (PNP) 2 = Pull (NPN) |
4105 |
Push-Pull Output 2 | DO#06 | u16 | RW | 4106 |
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 |
Note: To activate the bootloader, it is necessary to write a value 617 into the registry with an offset 1204 and restart the device.