Controllogix W/1769-Adn Example Program - Allen-Bradley 1769-SM1 User Manual

Compact i/o to dpi/scanport module
Table of Contents

Advertisement

7-16
ControlLogix w/1769-ADN DeviceNet Ladder Example Program

ControlLogix w/1769-ADN Example Program

Figure 7.21 ControlLogix Ladder Logic Main Program
The ControlLogix system contains a 1756-DNB (node 00). The 1769-SM1 is a component in a 1769-ADN DeviceNet adapter
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
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.
connected to each of the three channels.
This rung commands the 1756-DNB to run.
This rung commands the 1756-DNB to run.
0
Read the 2 words (4 bytes) of ADN overhead along with the entire input image (60 words) of the SM1.
Read the 2 words (4 bytes) of ADN overhead along with the entire input image (60 words) of the SM1.
1
Execute the 1769-SM1 Channel 1 subroutine.
Execute the 1769-SM1 Channel 1 subroutine.
2
Execute the 1769-SM1 Channel 2 subroutine.
Execute the 1769-SM1 Channel 2 subroutine.
3
Execute the 1769-SM1 Channel 3 subroutine.
Execute the 1769-SM1 Channel 3 subroutine.
4
Write the entire output image (60 words) of the SM1 to the DNB. Note the DNB is using DWords so the length is 30.
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
(End)
ControlLogixLogix DeviceNet w/ 1769-SM1 DPI/SCANport Module example program
ControlLogixLogix DeviceNet w/ 1769-SM1 DPI/SCANport Module example program
Local:1:O.CommandRegister.Run
1769-ADN
Word 1
COP
Copy File
Source
Local:1:I.Data[0]
Dest SM1_Input_Data[0]
Length
62
JSR
Jump To Subroutine
Routine Name Channel_1
JSR
Jump To Subroutine
Routine Name Channel_2
JSR
Jump To Subroutine
Routine Name Channel_3
COP
Copy File
Source SM1_Output_Data[0]
Dest
Local:1:O.Data[0]
Length
30

Advertisement

Table of Contents
loading

Table of Contents