28
EM1500 Specifics
4.3.4.1 Modbus RTU
Modbus RTU (and, incidentally, Modbus ASCII) is a good fit for the half-duplex RS485 port. It has a mas-
ter and multiple slaves. The master issues a query, then listens for a response from the selected slave.
The RS485 port is set up for 8 data bits with even, odd or mark parity, and one stop bit. A Modbus RTU
message starts with an idle time of at least 3.5 character times, i.e., the RS485 cable must be in steady 'idle'
state for this amount of time. Each packet must be transmitted without any gaps of more than 1.5 character
times.
Following this specification, the Serial tab
for the RS485 port is set to:
Speed
: 115200 (this is arbitrary, provided all
devices are set to the same value)
Character size
: 8
Parity
: Mark (also arbitrary, may be Odd,
Even or Mark for all devices)
Tx Enable
: Rx Idle
Rx Idle time
: 20 (see below)
Relay action
: (as required)
The Protocol tab for the RS485 port is set to:
Modem serve
r: yes (actually, this is a “don't
care”)
Rabbit extensions
: yes (required for packetiza-
tion support)
Packetizing
: Idle
Idle time units
: byte
Rx idle time
: 4 (rounded up from 3.5)
Tx idle time
: 4 (rounded up from 3.5)
Max buffer
: 1020
Trailing chars
: 0
Содержание EM1500
Страница 14: ...10 www rabbit com Introduction...
Страница 22: ...18 www rabbit com Getting Started...
Страница 76: ...72 www rabbit com EM1500 Configuration...
Страница 90: ...86 www rabbit com EM1500 Specifications...
Страница 104: ...100 www rabbit com Serial and TCP Protocols...
Страница 118: ...114 www rabbit com EM1500 FAQ...