Allen-Bradley 1769-SM1 User Manual page 77

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

Advertisement

Figure 6.3 CompactLogix Ladder Logic Channel 1 Subroutine (Continued)
Ch1_Forward_Command
6
Ch1_Forward_Command
7
/
Logic Status
Logic Status
8
Reference
Reference
Ch1_Reference[0] = value for 16-bit Reference, low word for 32-bit Reference
Ch1_Reference[0] = value for 16-bit Reference, low word for 32-bit Reference
Ch1_Reference[1] = high word for 32-bit Reference
Ch1_Reference[1] = high word for 32-bit Reference
9
Feedback
Feedback
Ch1_Feedback[0] = value for 16-bit Feedback, low word for 32-bit Feedback
Ch1_Feedback[0] = value for 16-bit Feedback, low word for 32-bit Feedback
Ch1_Feedback[1] = high word for 32-bit Feedback
Ch1_Feedback[1] = high word for 32-bit Feedback
10
CompactLogix Ladder Example Program
Channel 1
Logic Command
FORWARD
Local:1:O.Data[1].4
Channel 1
Logic Command
REVERSE
Local:1:O.Data[1].5
MOV
Move
Source Local:1:I.Data[1]
3788
Dest
Ch1_Logic_Status
3788
Channel 1
Reference
(Low)
COP
Copy File
Source Ch1_Reference[0]
Dest
Local:1:O.Data[2]
Length
2
Channel 1
Feedback
(Low)
COP
Copy File
Source Local:1:I.Data[2]
Dest
Ch1_Feedback[0]
Length
2
6-5

Advertisement

Table of Contents
loading

Table of Contents