Controllogix w/1769-adn example program, Controllogix w/1769-adn example program -16 – Rockwell Automation 1769-SM1 Compact I/O to DPI/SCANport Module User Manual
Page 100
7-16
ControlLogix w/1769-ADN DeviceNet Ladder Example Program
ControlLogix w/1769-ADN Example Program
Figure 7.21 ControlLogix Ladder Logic Main Program
ControlLogixLogix DeviceNet w/ 1769-SM1 DPI/SCANport Module example program
The ControlLogix system contains a 1756-DNB (node 00). The 1769-SM1 is a component in a 1769-ADN DeviceNet adapter
drop (node 2) along with a 1769-PA4 power supply and 1769-ECR End Cap Terminator. The 1769-SM1 has a PowerFlex 70
connected to each of the three channels.
This rung commands the 1756-DNB to run.
0
Local:1:O.CommandRegister.Run
ControlLogixLogix DeviceNet w/ 1769-SM1 DPI/SCANport Module example program
The ControlLogix system contains a 1756-DNB (node 00). The 1769-SM1 is a component in a 1769-ADN DeviceNet adapter
drop (node 2) along with a 1769-PA4 power supply and 1769-ECR End Cap Terminator. The 1769-SM1 has a PowerFlex 70
connected to each of the three channels.
This rung commands the 1756-DNB to run.
Read the 2 words (4 bytes) of ADN overhead along with the entire input image (60 words) of the SM1.
1
Copy File
Source
Local:1:I.Data[0]
Dest SM1_Input_Data[0]
Length
62
COP
1769-ADN
Word 1
Read the 2 words (4 bytes) of ADN overhead along with the entire input image (60 words) of the SM1.
Execute the 1769-SM1 Channel 1 subroutine.
2
Jump To Subroutine
Routine Name Channel_1
JSR
Execute the 1769-SM1 Channel 1 subroutine.
Execute the 1769-SM1 Channel 2 subroutine.
3
Jump To Subroutine
Routine Name Channel_2
JSR
Execute the 1769-SM1 Channel 2 subroutine.
Execute the 1769-SM1 Channel 3 subroutine.
4
Jump To Subroutine
Routine Name Channel_3
JSR
Execute the 1769-SM1 Channel 3 subroutine.
Write the entire output image (60 words) of the SM1 to the DNB. Note the DNB is using DWords so the length is 30.
5
Copy File
Source SM1_Output_Data[0]
Dest
Local:1:O.Data[0]
Length
30
COP
Write the entire output image (60 words) of the SM1 to the DNB. Note the DNB is using DWords so the length is 30.
(End)