MGate 4101-MB-PBS
Configuration
4-14
Each Modbus request includes Enable, Modbus slave ID, Function Code, Address, Length, Internal Address, Poll
Interval, Swap. Please refer to datasheets or manuals of Modbus slave devices to fill out these fields.
Parameter
Description
Enable
The Enable for the transaction:
Disable: The transaction is never sent
Cyclic: The transaction is sent cyclically at the interval specified in the “Poll Interval”
parameter.
Data change: The data area is polled for changes at the time interval defined by Poll
Interval. A transaction is issued when a change in data is detected.
Slave ID
The Modbus slave id that this slave module will accept.
0: Broadcasting
1~255: Device specific
Function Code
When a message is sent from a Client to a Server device the function code field tells
the server what kind of action to perform.
We support the following function code by far:
01: Read coils
02: Read discrete inputs
03: Read holding registers
04: Read input register
05: Write single coil
06: Write single register
15: Write multiple coils
16: Write multiple registers
Address
Station Address. The range is from 0 to 65535
Length
The length field is a byte count of the following fields, including the Unit Identifier and
data fields. The range is from 1 to 1953.
Internal Address
This parameter specifies the location of the trigger byte in internal memory. The range
is from 0 to 243.
Poll Interval (ms)
Polling interval in millisecond, since the module sends all requests in turns, the actual
polling interval also depends on the number of requests in the queue and their
parameters. The range is from 10 to 1200000.
Swap
Data Byte Swapping
None: Don't need to swap
Byte: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0D, 0x0C, 0x0B, 0x0A.
Word: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0C, 0x0D, 0x0A, 0x0B.
ByteWord: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0D, 0x0C, 0x0B, 0x0A.
There are two phases in changing ByteWord
1). 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0B, 0x0A, 0x0D, 0x0C.
2). 0x0B, 0x0A, 0x0D, 0x0C becomes 0x0D, 0x0C, 0x0B, 0x0A.
www.ipc2u.ru
www.moxa.pro