Modbus Mode versus Character Mode
The serial ports can operate in either Modbus mode or character mode.
When operating in Modbus mode, the serial port can be accessed by:
local HMI for management and diagnostics
a programming PC, for maintenance and diagnostics
a modem connected to a central location for SCADA and data collection via RS232
When operating in character mode, you can use a serial port to:
Send ASCII characters to a printer or a modem.
Display data on the screen of a terminal and receive data from its keyboard.
Configuring Modbus versus Character Mode
By default, the serial ports operate in Modbus mode,
but can be switched to character mode using the L9_XMIT
or XXMIT
instruction
in the application program. When the instruction is completed, the
serial port remains in character mode. To return to Modbus mode, cycle
power to the processor or download the original configuration to the
processor.
In Modbus mode, the serial port communicates using the Modbus protocol. In Modbus mode, you can use the XXMIT EF block in Control Expert to:
Designate each serial port to serve as either a Modbus master or slave.
Specify the signaling protocol that will be used by the RS282/RS485 configurable serial port.
Port Parameters
The RS282/RS485 configurable serial port and the RS485 fixed serial port present the following properties and range of settings when operating in Modbus mode:
Parameter |
Settings Include... |
---|---|
signaling protocol |
|
operations mode |
|
baud rate |
|
parity |
|
mode/data bits |
|
stop bit |
|
Modbus address |
Default = 1 |