Modbus Serial IOScanner

Introduction

The Modbus IOScanner is used to simplify exchanges with Modbus slave devices.

Add a Modbus IOScanner

To add a Modbus IOScanner on a Serial Line, select the Modbus_IOScanner in the Hardware Catalog, drag it to the Devices tree, and drop it on one of the highlighted nodes.

For more information on adding a device to your project, refer to:

• Using the Drag-and-drop Method

• Using the Contextual Menu or Plus Button

Modbus IOScanner Configuration

To configure a Modbus IOScanner on a Serial Line, double-click Modbus IOScanner in the Devices tree.

The configuration window is displayed as below:

G-SE-0003925.3.gif-high.gif

 

 

Set the parameters as described in this table:

Element

Description

Transmission Mode

Specifies the transmission mode to use:

oRTU: uses binary coding and CRC error-checking (8 data bits)

oASCII: messages are in ASCII format, LRC error-checking (7 data bits)

Set this parameter identical for each Modbus device on the network.

Response Timeout (ms)

Timeout used in the exchanges.

Time between Frames (ms)

Delay to reduce data collision on the bus.

Set this parameter identical for each Modbus device on the network.

NOTE: Do not use function blocks of the PLCCommunication library on a serial line with a Modbus IOScanner configured. This disrupts the Modbus IOScanner exchange.

Bus Cycle Task Selection

The Modbus IOScanner and the devices exchange data at each cycle of the chosen application task.

To select this task, select the Modbus Master IO Mapping tab. The configuration window is displayed as below:

G-SE-0050999.3.gif-high.gif

 

 

The Bus cycle task parameter allows you to select the application task that manages the scanner:

oUse parent bus cycle setting: associate the scanner with the application task that manages the controller.

oMAST: associate the scanner with the MAST task.

oAnother existing task: you can select an existing task and associate it to the scanner. For more information about the application tasks, refer to the EcoStruxure Machine Expert Programming Guide.

The scan time of the task associated with the scanner must be less than 500 ms.