Modbus Serial Line Configuration
Adding a Device on the Modbus Serial IOScanner
This section describes how to add a device on the Modbus IOScanner.
Add a Device on the Modbus IOScanner
To add a device on the Modbus IOScanner, select the Generic Modbus Slave in the Hardware Catalog, drag it to the Devices tree, and drop it on the Modbus_IOScanner node of the Devices tree.
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
NOTE: The variable for the exchange is automatically created in the %IWx and %QWx of the Modbus Serial Master I/O Mapping tab.
Configure a Device Added on the Modbus IOScanner
To configure the device added on the Modbus IOScanner, proceed as follow:
Step |
Action |
---|---|
1 |
In the Devices tree, double-click Generic Modbus Slave. Result: The configuration window is displayed. ![]()
|
2 |
Enter a Slave Address value for your device (choose a value from 1 to 247). |
3 |
Choose a value for the Response Timeout (in ms). |
To configure the Modbus Channels, proceed as follow:
To configure your Modbus Initialization Value, proceed as follow:
To configure your Modbus Master I/O Mapping, proceed as follow:
Step |
Action |
---|---|
1 |
Click the Modbus Master I/O Mapping tab: ![]()
|
2 |
Double-click in a cell of the Variable column to open a text field. Enter the name of a variable or click the browse button [...] and chose a variable with the Input Assistant. |
3 |
For more information on I/O mapping, refer to EcoStruxure Machine Expert Programming Guide. |
This table describes the different access types available:
Function |
Function Code |
Availability |
---|---|---|
Read Coils |
1 |
ModbusChannel |
Read Discrete Inputs |
2 |
ModbusChannel |
Read Holding Registers (default setting for the channel configuration) |
3 |
ModbusChannel |
Read Input Registers |
4 |
ModbusChannel |
Write Single Coil |
5 |
ModbusChannel Initialization Value |
Write Single Register |
6 |
ModbusChannel Initialization Value |
Write Multiple Coils |
15 |
ModbusChannel Initialization Value |
Write Multiple Registers (default setting for the slave initialization) |
16 |
ModbusChannel Initialization Value |
Read/Write Multiple Registers |
23 |
ModbusChannel |