Add a ModbusSlaveNetwork

NoteFirst see Modbus Driver Installations for license and software requirements. For background information, see About Modbus Slave networks.

To add a ModbusSlaveNetwork in the station

Use the following procedure to add a ModbusSlaveNetwork component under the station’s Drivers container.

NoteIf the host JACE has multiple RS-485 or RS-232 ports to be used for server (slave) Modbus networks, add one ModbusSlaveNetwork for each physical port. Note that for each ModbusSlaveNetwork, you must Configure the serial port parameters and transmission mode.

To add a ModbusSlaveNetwork in the station:

  1. Double-click the station’s Drivers container, to bring up the Driver Manager.

  2. Click the New button to bring up the New network dialog. For more details, see “Driver Manager New and Edit” in the Drivers Guide.

  3. Select “Modbus Slave Network,” number to add: 1 (or more if multiple networks) and click OK.

    This brings up a dialog to name the network(s).

  4. Click OK to add the ModbusSlaveNetwork(s) to the station.

    You should have a ModbusSlaveNetwork named “ModbusSlaveNetwork” (or whatever you named it), under your Drivers folder, initially showing a status of “{fault}” and enabled as “true.”

    After you Configure the serial port parameters and transmission mode, status should change to “{ok}”.

Configure the serial port parameters and transmission mode

In the ModbusSlaveNetwork property sheet for each network, you must set the serial port configuration to match the serial communications parameters used to communicate to the attached Modbus master device, including the Modbus transmission mode (RTU or ASCII).

To set the serial port parameters

To set the serial port parameters and mode for a ModbusSlaveNetwork:

  1. Right-click the ModbusSlaveNetwork and select Views->Property Sheet.

    The Property Sheet appears.

  2. Scroll down and expand the Serial Port Config slot

    Set the properties for the JACE serial port used, where defaults are:

    • Port Name: none — Enter the JACE port being used, like COM2 or COM3.

    • Baud Rate: Baud9600 — Or choose different from selection list.

    • Data Bits: Data Bits8 — Or choose different from selection list.

    • Stop Bits: Stop Bit1 — Or choose different from selection list.

    • Parity: none — Or choose different from selection list.

    • Flow Control Mode: none — Or choose different using checkbox.

    NoteYou must determine the setup of the Modbus serial network to correctly set the baud rate, data bits, stop bits, parity, and flow control settings.

  3. Set the Modbus Data Mode property value, either Rtu (default) or Ascii, depending on network type.

  4. Click the Save button.

  5. While in the property network’s property sheet, you should review its “global” Modbus settings.

    See Review network-level Modbus server configuration.