Difference between revisions of "Buses"

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...")
 
 
(5 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
Data bits: 8 <br />
 
Data bits: 8 <br />
 
Stop bits: 1 <br />
 
Stop bits: 1 <br />
 +
 +
 +
'''BUS 0''' - is used for internal communication within one IPLOG-GAMA device between main board, IO module and IF module. <br />
 +
'''BUS 1,2''' - are the external buses of the IF module (IF-01, IF-05...).
 +
 +
 +
<!-- MODBUS "BUS 0 Settings" 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="10" style="width: 90px;" | <span style="font-size: 17px;"> '''Internal <br /> BUS 0 <br /> Settings''' </span>
 +
|| Baudrate || u16 || RW || 192 = 19 200 bps <br /> 1152 = 115 200 bps <br /> 9246 = 921 600 bps <br /> 10000 = 1 000 000bps || 2010
 +
|-
 +
| style="width: 244px;" | Databits || u16 || RW || 8 = 8b, 9 = 9b || 2011
 +
|-
 +
| Parity || u16 || RW || 78 = None <br /> 69 = Even <br /> 79 = Odd || 2012
 +
|-
 +
| Stop bits || u16 || RW || 10=1, 20=2, 15=1,5 || 2013
 +
|-
 +
| MODBUS address || u16 || RW || 1 - 247 || 2020
 +
|}
 +
 +
<!-- MODBUS "BUS 1 Settings" 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="10" style="width: 90px;" | <span style="font-size: 17px;"> '''BUS 1 <br /> Settings''' </span>
 +
|| Baudrate || u16 || RW || 192 = 19 200 bps <br /> 1152 = 115 200 bps <br /> 9246 = 921 600 bps <br /> 10000 = 1 000 000bps || 2110
 +
|-
 +
| style="width: 244px;" | Databits || u16 || RW || 8 = 8b, 9 = 9b || 2111
 +
|-
 +
| Parity || u16 || RW || 78 = None <br /> 69 = Even <br /> 79 = Odd || 2112
 +
|-
 +
| Stop bits || u16 || RW || 10=1, 20=2, 15=1,5 || 2113
 +
|-
 +
| MODBUS address || u16 || RW || 1 - 247 || 2120
 +
|}
 +
 +
<!-- MODBUS "BUS 2 Settings" 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="10" style="width: 90px;" | <span style="font-size: 17px;"> '''BUS 2 <br /> Settings''' </span>
 +
|| Baudrate || u16 || RW || 192 = 19 200 bps <br /> 1152 = 115 200 bps <br /> 9246 = 921 600 bps <br /> 10000 = 1 000 000bps || 2210
 +
|-
 +
| style="width: 244px;" | Databits || u16 || RW || 8 = 8b, 9 = 9b || 2211
 +
|-
 +
| Parity || u16 || RW || 78 = None <br /> 69 = Even <br /> 79 = Odd || 2212
 +
|-
 +
| Stop bits || u16 || RW || 10=1, 20=2, 15=1,5 || 2213
 +
|-
 +
| MODBUS address || u16 || RW || 1 - 247 || 2220
 +
|}

Latest revision as of 14:27, 20 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

Baudrate: 115 200
Parity: None
Data bits: 8
Stop bits: 1


BUS 0 - is used for internal communication within one IPLOG-GAMA device between main board, IO module and IF module.
BUS 1,2 - are the external buses of the IF module (IF-01, IF-05...).


Subject Type R/W Value Offset
Internal
BUS 0
Settings
Baudrate u16 RW 192 = 19 200 bps
1152 = 115 200 bps
9246 = 921 600 bps
10000 = 1 000 000bps
2010
Databits u16 RW 8 = 8b, 9 = 9b 2011
Parity u16 RW 78 = None
69 = Even
79 = Odd
2012
Stop bits u16 RW 10=1, 20=2, 15=1,5 2013
MODBUS address u16 RW 1 - 247 2020
Subject Type R/W Value Offset
BUS 1
Settings
Baudrate u16 RW 192 = 19 200 bps
1152 = 115 200 bps
9246 = 921 600 bps
10000 = 1 000 000bps
2110
Databits u16 RW 8 = 8b, 9 = 9b 2111
Parity u16 RW 78 = None
69 = Even
79 = Odd
2112
Stop bits u16 RW 10=1, 20=2, 15=1,5 2113
MODBUS address u16 RW 1 - 247 2120
Subject Type R/W Value Offset
BUS 2
Settings
Baudrate u16 RW 192 = 19 200 bps
1152 = 115 200 bps
9246 = 921 600 bps
10000 = 1 000 000bps
2210
Databits u16 RW 8 = 8b, 9 = 9b 2211
Parity u16 RW 78 = None
69 = Even
79 = Odd
2212
Stop bits u16 RW 10=1, 20=2, 15=1,5 2213
MODBUS address u16 RW 1 - 247 2220