modbus using compactlogix 1769 sm2
DESCRIPTION
Software using RSLogix 5000TRANSCRIPT
By:
Anish Shrivastava
1769-L35E-CompactLogix5335E Controller 1769-SM2Module
AK-U0-RJ45-TB2P (RJ45 RS485 Splitter)
Modbus SlavesModbus RTU Network
Modbus Cable
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 SettingCONT (Controller) back position PARAM (Parameter) front position
DescriptionDefault settingThe 1769-SM2 module uses the configuration data downloaded from the controller on power-up and when the controller is placed in run mode. The 1769-SM2 module uses its internal parameter settings to configure the module.
SW2 SettingSingle 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.
Configuration and Logic
Module Configuration In Logic
Configuration and Logic
Module Configuration In Logic
1769-SM2 Module Configuration Data
Configuration and Logic
Configuration and Logic
1769-SM2 Module Configuration Data Table
RTU Baud Rate Configuration
e.g.: For baud rate 9600 bits/sec select value 2.
RTU Format ConfigurationWhere 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.
Logic for reading olding Register data of RTU Devices
Configuration and Logic
Logic for reading olding Register data of RTU Devices
Configuration and Logic
Configuration and LogicLogic for reading olding Register data of RTU Devices
Path Format: Module Name, 2, Channel No.
Logic for reading olding Register data of RTU Devices
Configuration and Logic
Notes
Slave Device ID, Function Code, Register Address and Length may vary according to the slave devices parameters. Please select the proper data for slave devices otherwise communication fails.
To check slave device parameters use ModScan32 if available.
AK-U0-RJ45-TB2P (RJ45 RS485 Connector) Pin Out:
References1769 SM 2 Module User Manual(http://literature.rockwellautomation.com/idc/groups/literature/documents/um/1769-um013_-enp.pdf)
THE END