AO8.1

From IPLOG
Revision as of 07:02, 24 February 2020 by Z013 (talk | contribs) (Created page with "=== 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) Functio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
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
Inputs DI#16 - DI#01 u16 R 0x0000 - 0x000F 3001
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
Output
Value
Setting
Analog Output 1 AO#01 s16 RW 1000 = 1V
0 = 0V
-1000 = -1V
6001
Analog Output 2 AO#02 s16 RW 6002
Analog Output 3 AO#03 s16 RW 6003
Analog Output 4 AO#04 s16 RW 6004
Analog Output 5 AO#05 s16 RW 6005
Analog Output 6 AO#06 s16 RW 6006
Analog Output 7 AO#07 s16 RW 6007
Analog Output 8 AO#08 s16 RW 6008
Output
Value
Corretion
Setting
Analog Output 1 offset AO#01 Par. s16 RW 1000 = 1V
0 = 0V
-1000 = -1V
6101
Analog Output 2 offset AO#02 Par. s16 RW 6102
Analog Output 3 offset AO#03 Par. s16 RW 6103
Analog Output 4 offset AO#04 Par. s16 RW 6104
Analog Output 5 offset AO#05 Par. s16 RW 6105
Analog Output 6 offset AO#06 Par. s16 RW 6106
Analog Output 7 offset AO#07 Par. s16 RW 6107
Analog Output 8 offset AO#08 Par. s16 RW 6108
Output
Value
Gain
Setting
Analog Output 1 gain AO#11 Par. s16 RW 1 = 1/100%
0 = 0%
-1000 = -1/100%
6111
Analog Output 2 gain AO#12 Par. s16 RW 6112
Analog Output 3 gain AO#13 Par. s16 RW 6113
Analog Output 4 gain AO#14 Par. s16 RW 6114
Analog Output 5 gain AO#15 Par. s16 RW 6115
Analog Output 6 gain AO#16 Par. s16 RW 6116
Analog Output 7 gain AO#17 Par. s16 RW 6117
Analog Output 8 gain AO#18 Par. s16 RW 6118
Default
Value
Analog Output 1 default AO#21 Par. s16 RW 1 = 1/100%
0 = 0%
-1000 = -1/100%
6121
Analog Output 2 default AO#22 Par. s16 RW 6122
Analog Output 3 default AO#23 Par. s16 RW 6123
Analog Output 4 default AO#24 Par. s16 RW 6124
Analog Output 5 default AO#25 Par. s16 RW 6125
Analog Output 6 default AO#26 Par. s16 RW 6126
Analog Output 7 default AO#27 Par. s16 RW 6127
Analog Output 8 default AO#28 Par. s16 RW 6128
Subject Channel Type R/W Value Offset
Measured
Input
Values
Analog Input 1 AI#01 s16 R 1000 = 1 V
0 = 0 V
-1000 = -1 V
5001
Analog Input 2 AI#02 s16 R 5002
Analog Input 3 AI#03 s16 R 5003
Analog Input 4 AI#04 s16 R 5004
Input
Correction
Analog Input 1 offset AI#01 Param. s16 R 1000 = 1 V
0 = 0 V
-1000 = -1 V
5101
Analog Input 2 offset AI#02 Param. s16 R 5102
Analog Input 3 offset AI#03 Param. s16 R 5103
Analog Input 4 offset AI#04 Param. s16 R 5104
Input Gain
Correction
Analog Input 1 gain AI#11 Param. s16 R 1 = 1/100%
0 = 0%
-1000 = 1/100%
5111
Analog Input 2 gain AI#12 Param. s16 R 5112
Analog Input 3 gain AI#13 Param. s16 R 5113
Analog Input 4 gain AI#14 Param. s16 R 5114

Note: To activate the bootloader, it is necessary to write a value 617 into the registry with an offset 1204 and restart the device.