Controllogix w/1769-adn example program, Controllogix w/1769-adn example program -13 – Rockwell Automation 1769-SM2 Compact I/O DSI/Modbus Communication Module User Manual
Page 143

ControlLogix w/1769-ADN DeviceNet Example Ladder Program
8-13
ControlLogix w/1769-ADN Example Program
Figure 8.18 Example ControlLogix Ladder Logic Main Routine
ControlLogix DeviceNet system w/ 1769-ADN using 1769-SM2 in Single Mode
In this Single mode example program, the channels are utilized as follows:
Channel 1 - Connected to 1 PowerFlex 4/40 drive (maximum allowed)
Channel 2 - Connected to 1 PowerFlex 4/40 drive (maximum allowed)
Channel 3 - Connected to 1 PowerFlex 4/40 drive (maximum allowed)
Note: No parameter read/write messages are shown because explicit messaging can NOT be used with the 1769-ADN.
This rung commands the 1756-SDN to run.
0
Local:6:O.CommandRegister.Run
/
de
s:
erFle
erFle
e
i
Copy the DNB I/O (DINT format) over to an input data array in INT format for easier use by the program.
SM2_Input_Data[0] = 1769-ADN overhead
SM2_Input_Data[1] = 1769-ADN overhead
SM2_Input_Data[2] = SM2 Status word
SM2_Input_Data[3] = SM2 CH1 Logic Status
SM2_Input_Data[4] = SM2 CH1 Feedback
SM2_Input_Data[5] = SM2 CH2 Logic Status
SM2_Input_Data[6] = SM2 CH2 Feedback
SM2_Input_Data[7] = SM2 CH3 Logic Status
SM2_Input_Data[8] = SM2 CH3 Feedback
1
Copy File
Source Local:6:I.Data[0]
Dest SM2_Input_Data[0]
Length
9
COP
1769-ADN
Overhead
This rung enables the 1769-SM2 to send the Channel 1 Logix Command and Reference words to the drive.
2
CH1_Enable
o
Channel 1 Subroutine
3
Jump To Subroutine
Routine Name Channel_1
JSR
CH1 control logic
This rung enables the 1769-SM2 to send the Channel 2 Logix Command and Reference words to the drive.
4
CH2_Enable
o
Channel 2 Subroutine
5
Jump To Subroutine
Routine Name Channel_2
JSR
CH2 control logic