Difference between revisions of "PP8.1"

From IPLOG
Jump to: navigation, search
(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...")
 
Line 113: Line 113:
 
| Push-Pull Output 8 || DO#08 || bit || RW || 4008
 
| Push-Pull Output 8 || DO#08 || bit || RW || 4008
 
|-
 
|-
| Push-Pull Output  || DO#16 - DI#01 || u16 || RW || 0x0000 - 0x000F ||4001
+
| Relay Output 1 || DO#09 || bit || RW || 4009
 +
|-
 +
| Outputs || DO#16 - DI#01 || u16 || RW || 0x0000 - 0x000F ||4001
 +
|-
 +
| rowspan="8" style="width: 90px;" | <span style="font-size: 17px;"> '''Modes of <br /> Outputs''' </span>
 +
|| Push-Pull Output 1 || DO#01 mode || u16 || RW || rowspan="8" | 0 = None (default) <br /> 1 = Push (PNP) <br /> 2 = Push (NPN) || 4101
 +
|-
 +
| style="width: 120px;" | Push-Pull Output 2 || DO#02 mode || u16 || RW || 4102
 +
|-
 +
| Push-Pull Output 3 mode || DO#03 || u16 || RW || 4103
 +
|-
 +
| Push-Pull Output 4 mode || DO#04 || u16 || RW || 4104
 +
|-
 +
| Push-Pull Output 5 mode || DO#05 || u16 || RW || 4105
 +
|-
 +
| Push-Pull Output 6 mode || DO#06 || u16 || RW || 4106
 +
|-
 +
| Push-Pull Output 7 mode || DO#07 || u16 || RW || 4107
 +
|-
 +
| Push-Pull Output 8 mode|| DO#08 || u16 || RW || 4108
 
|}
 
|}
  

Revision as of 11:56, 24 February 2020

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 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
Balanced Input 1 DI#05 bit R 3005
Balanced Input 2 DI#06 bit R 3006
Balanced Input 3 DI#07 bit R 3007
COIL Relay 1 DI#08 bit R 3008
Inputs DI#16 - DI#01 u16 R 0x0000 - 0x00FF 3001
States of
Balanced
Inputs
Balanced Input 1 AI#05 u16 R 1000 = 1000Ω
0 = 0Ω
5005
Balanced Input 2 DI#06 u16 R 5006
Balanced Input 3 DI#07 u16 R 5007
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
Balanced Input 1 DI#05 mode u16 RW 3105
Balanced Input 2 DI#06 mode u16 RW 3106
Balanced Input 3 DI#07 mode u16 RW 3107
Counter Digital Input 1 DI#01 counter u16 R 3201 - 02
Digital Input 2 DI#02 counter u16 R 3203 - 04
Digital Input 3 DI#03 counter u16 R 3205 - 06
Digital Input 4 DI#04 counter u16 R 3207 - 08
Balanced Input 1 DI#05 counter u16 R 3209 - 10
Balanced Input 2 DI#06 counter u16 R 3211 - 12
Balanced Input 3 DI#07 counter u16 R 3213 - 14
Subject Channel Type R/W Value Offset
Push-Pull
and Relay
Outputs
Push-Pull Output 1 DO#01 bit RW 0 = inactive
1 = active
4001
Push-Pull Output 2 DO#02 bit RW 4002
Push-Pull Output 3 DO#03 bit RW 4003
Push-Pull Output 4 DO#04 bit RW 4004
Push-Pull Output 5 DO#05 bit RW 4005
Push-Pull Output 6 DO#06 bit RW 4006
Push-Pull Output 7 DO#07 bit RW 4007
Push-Pull Output 8 DO#08 bit RW 4008
Relay Output 1 DO#09 bit RW 4009
Outputs DO#16 - DI#01 u16 RW 0x0000 - 0x000F 4001
Modes of
Outputs
Push-Pull Output 1 DO#01 mode u16 RW 0 = None (default)
1 = Push (PNP)
2 = Push (NPN)
4101
Push-Pull Output 2 DO#02 mode u16 RW 4102
Push-Pull Output 3 mode DO#03 u16 RW 4103
Push-Pull Output 4 mode DO#04 u16 RW 4104
Push-Pull Output 5 mode DO#05 u16 RW 4105
Push-Pull Output 6 mode DO#06 u16 RW 4106
Push-Pull Output 7 mode DO#07 u16 RW 4107
Push-Pull Output 8 mode DO#08 u16 RW 4108


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