beautypg.com

Rockwell Automation 1769-SM1 Compact I/O to DPI/SCANport Module User Manual

Page 102

background image

7-18

ControlLogix w/1769-ADN DeviceNet Ladder Example Program

Figure 7.22 ControlLogix Ladder Logic Channel 1 Subroutine (Continued)

6

Ch1_Forward_Command

Channel 1

Logic Command

FORWARD

SM1_Output_Data[1].4

7

/

Ch1_Forward_Command

Channel 1

Logic Command

REVERSE

SM1_Output_Data[1].5

Logic Status

8

Move
Source SM1_Input_Data[3]
3855
Dest

Ch1_Logic_Status

3855

MOV

Logic Status

Reference

Ch1_Reference[0] = value for 16-bit Reference, low word for 32-bit Reference
Ch1_Reference[1] = high word for 32-bit Reference

9

Copy File
Source

Ch1_Reference[0]

Dest SM1_Output_Data[2]
Length

2

COP

Channel 1
Reference

(Low)

Reference

Ch1_Reference[0] = value for 16-bit Reference, low word for 32-bit Reference
Ch1_Reference[1] = high word for 32-bit Reference

Feedback

Ch1_Feedback[0] = value for 16-bit Feedback, low word for 32-bit Feedback
Ch1_Feedback[1] = high word for 32-bit Feedback

10

Copy File
Source SM1_Input_Data[4]
Dest

Ch1_Feedback[0]

Length

2

COP

Channel 1

Feedback

(Low)

Feedback

Ch1_Feedback[0] = value for 16-bit Feedback, low word for 32-bit Feedback
Ch1_Feedback[1] = high word for 32-bit Feedback