You are on page 1of 15

Modbus

for

Communication
RTU Slaves

CompactLogix Controller
With
1769 SM2 Module

By:

Asish Shrivastava

Architecture

AK-U0-RJ45-TB2P
(RJ45 RS485
Splitter)

1769-L35ECompactLogix5335E
Controller

Modbus
Slaves

1769-SM2Module

Modbus Cable

Modbus
Modbus RTU
RTU
Network
Network

PCS
Controller
PPI-402

Conzerv EM6400

SIPROTEC 4 7SJ61
Multifunction
Protection Relay

Setting the Configuration Mode Switch in 1769 SM2


Module

Before installing the module, make sure its Configuration Mode Switch is correctly set.

SW1
Setting

Description

CONT
(Controller)
back position

Default settingThe 1769-SM2 module uses the


configuration
data downloaded from the controller on power-up and
when the
controller is placed in run mode.

PARAM
(Parameter)
front position

The 1769-SM2 module uses its internal parameter


settings to
configure the module.

SW2 Setting
Single Position (For Single
drive per channel)
Multi-Drive Position (For Max
5 drives per channel or up 31
RTU slave devices per
channel)

Select SW1 in Controller Position and SW2 in Multi-Drive Position.

Module Configuration
In Logic

Configuration and Logic

Module Configuration
In Logic

Configuration and Logic

1769-SM2 Module
Configuration Data

Configuration and Logic

For
Channel
1

1769-SM2 Module
Configuration Data Table

Configuration and Logic

Configuration and Logic


Use these data values to configure the configuration data
table of SM2 module.
For DSI I/O Config Select 5 for modbus RTU
slave.

RTU Baud Rate Configuration

RTU Format Configuration


Where The RTU format
consists of three
components: data bits
(8 data bits only), parity
(None, Even or Odd),
and stop bits (1 or 2).

e.g.: For None parity and 2 stop bits select value 3.


e.g.: For baud rate 9600 bits/sec select value 2.

For RTU Rx Delay, RTU Tx Delay And RTU MSG Timeout select
the values according to the load in controller and scan time of
controller in such a way that the slave device has sufficient
time to respond to the master.

Logic for reading


Holding Register data of RTU Devices

Configuration and Logic

Logic for reading


Holding Register data of RTU Devices

Configuration and Logic

Logic for reading


Holding Register data of RTU Devices

Configuration and Logic

Path
Path Format:
Format: Module
Module Name,
Name, 2,
2,
Channel No.

Logic for reading


Holding Register data of RTU Devices

Configuration and Logic

Refer to Notes

Notes
Slave Device ID: Can be configure for each slave device. (0-255)

Click
Click Here
Here
To
To See
See
Example
Example

Function Code: Can be differ according to the register type.(Such as 3-Holding


Register, 4-Input Register)
Register Address and Length: May vary according to the slave devices parameters.
( For PCS Controller: Register Address is 3 and its data length is 1.)
Please select the proper data mentioned above for slave devices otherwise
communication fails.
For detailed information about these parameters please refer to the user manual of
the particular slave device.
To check slave communication status and device parameters: use ModScan32 (3rd
party software) if available.
AK-U0-RJ45-TB2P (RJ45 RS485 Connector) Pin Out:

References
1769 SM 2 Module User Manual
http://literature.rockwellautomation.com/idc/groups/literature/documents/um/1769-um
013_-en-p.pdf

THE
END

You might also like