Allen-Bradley 1769-SM1 User Manual page 59

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

Advertisement

Figure 5.3 MicroLogix 1500 Ladder Logic Channel 1 Subroutine (Continued)
Read 4 words of status information back from the drive, where:
N7:20 = 1769-SM1 Channel Status
N7:21 = Logic Status
N7:22 = Feedback (Low) value for 16-bit Feedback, low word for 32-bit Feedback
N7:23 = Feedback (High) high word for 32-bit Feedback
0008
The first COPy instruction outputs data to Datalink A1 & A2 In, where:
PF70 Parameter 300 [Data In A1] = "140", which points to Parameter 140 [Accel Time 1]
N7:4 contains the Accel Time 1 value in seconds, where a "100" equates to 10.0 seconds.
PF70 Parameter 301 [Data In A2] = "142", which points to Parameter 142 [Decel Time 1]
N7:6 contains the Decel Time 1 value in seconds, where a "100" equates to 10.0 seconds.
The second COPy instruction inputs data from Datalink A1 & A2 Out, where:
PF70 Parameter 310 [Data Out A1] = "140", which points to Parameter 140 [Accel Time 1]
N7:24 contains the Accel Time 1 value in seconds, where a "100" equates to 10.0 seconds.
PF70 Parameter 311 [Data Out A2] = "142", which points to Parameter 142 [Decel Time 1]
N7:26 contains the Decel Time 1 value in seconds, where a "100" equates to 10.0 seconds.
Note: Datalink A1/A2 Out does not have to equal Datalink A1/A2 In.
This is done in the example program for demo purpose only (so changes can be viewed).
The format is:
N7:x
= Datalink A1 (low)
N7:x+1 = Datalink A1 (high) high word for 32-bit Datalinks
N7:x+2 = Datalink A2 (low)
N7:x+3 = Datalink A2 (high) high word for 32-bit Datalinks
0009
MicroLogix 1500 Ladder Example Program
Datalink A Control Area
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
1769-SM1
Channel 1
Status
COP
COP
Copy File
Source
#I:1.0
Dest
#N7:20
Length
4
Channel 1
Datalink A1 In
(Low)
COP
COP
Copy File
Source
#N7:4
Dest
#O:1.12
Length
4
Channel 1
Datalink A1 Out
(Low)
COP
COP
Copy File
Source
#I:1.12
Dest
#N7:24
Length
4
5-5

Advertisement

Table of Contents
loading

Table of Contents