Allen-Bradley 1769-SM1 User Manual page 79

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

Advertisement

Figure 6.3 CompactLogix Ladder Logic Channel 1 Subroutine (Continued)
Datalink C
Datalink C
PowerFlex 70 Parameter 304 [Data In C1] = "101", which points to Parameter 101 [Preset Speed 1]
PowerFlex 70 Parameter 304 [Data In C1] = "101", which points to Parameter 101 [Preset Speed 1]
Ch1_Datalink_C_In[0] contains the Preset Speed 1 value in hertz, where a "100" equates to 10.0 Hz.
Ch1_Datalink_C_In[0] contains the Preset Speed 1 value in hertz, where a "100" equates to 10.0 Hz.
PowerFlex 70 Parameter 305 [Data In C2] = "102", which points to Parameter 102 [Preset Speed 2]
PowerFlex 70 Parameter 305 [Data In C2] = "102", which points to Parameter 102 [Preset Speed 2]
Ch1_Datalink_C_In[2] contains the Preset Speed 2 value in hertz, where a "200" equates to 20.0 Hz.
Ch1_Datalink_C_In[2] contains the Preset Speed 2 value in hertz, where a "200" equates to 20.0 Hz.
The respective Ch1_Datalink_C_Out's point to the same parameters so the values can also be read. Note
The respective Ch1_Datalink_C_Out's point to the same parameters so the values can also be read. Note
these do not have to be equal and are done in the example program for demonstration purposes only
these do not have to be equal and are done in the example program for demonstration purposes only
(so changes can be viewed).
(so changes can be viewed).
The format is:
The format is:
word [0] = Datalink C1 (low)
word [0] = Datalink C1 (low)
word (1] = Datalink C1 (high) high word for 32-bit Datalinks
word (1] = Datalink C1 (high) high word for 32-bit Datalinks
word [2] = Datalink C2 (low)
word [2] = Datalink C2 (low)
word (3] = Datalink C2 (high) high word for 32-bit Datalinks
word (3] = Datalink C2 (high) high word for 32-bit Datalinks
13
Datalink D
Datalink D
PowerFlex 70 Parameter 306 [Data In D1] = "103", which points to Parameter 103 [Preset Speed 3]
PowerFlex 70 Parameter 306 [Data In D1] = "103", which points to Parameter 103 [Preset Speed 3]
Ch1_Datalink_D_In[0] contains the Preset Speed 3 value in hertz, where a "300" equates to 30.0 Hz.
Ch1_Datalink_D_In[0] contains the Preset Speed 3 value in hertz, where a "300" equates to 30.0 Hz.
PowerFlex 70 Parameter 307 [Data In D2] = "104", which points to Parameter 104 [Preset Speed 4]
PowerFlex 70 Parameter 307 [Data In D2] = "104", which points to Parameter 104 [Preset Speed 4]
Ch1_Datalink_D_In[2] contains the Preset Speed 4 value in hertz, where a "400" equates to 40.0 Hz.
Ch1_Datalink_D_In[2] contains the Preset Speed 4 value in hertz, where a "400" equates to 40.0 Hz.
The respective Ch1_Datalink_D_Out's point to the same parameters so the values can also be read. Note
The respective Ch1_Datalink_D_Out's point to the same parameters so the values can also be read. Note
these do not have to be equal and are done in the example program for demonstration purposes only
these do not have to be equal and are done in the example program for demonstration purposes only
(so changes can be viewed).
(so changes can be viewed).
The format is:
The format is:
word [0] = Datalink D1 (low)
word [0] = Datalink D1 (low)
word (1] = Datalink D1 (high) high word for 32-bit Datalinks
word (1] = Datalink D1 (high) high word for 32-bit Datalinks
word [2] = Datalink D2 (low)
word [2] = Datalink D2 (low)
word (3] = Datalink D2 (high) high word for 32-bit Datalinks
word (3] = Datalink D2 (high) high word for 32-bit Datalinks
14
15
(End)
Channel 2 and Channel 3 ladder subroutines are similar to the Channel 1
subroutine and are not provided.
CompactLogix Ladder Example Program
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
value for 16-bit Datalinks, low word for 32-bit Datalinks
COP
Copy File
Source Ch1_Datalink_C_In[0]
Dest
Local:1:O.Data[36]
Length
Channel 1
Datalink C1 Out
(Low)
COP
Copy File
Source
Local:1:I.Data[36]
Dest Ch1_Datalink_C_Out[0]
Length
COP
Copy File
Source Ch1_Datalink_D_In[0]
Dest
Local:1:O.Data[48]
Length
Channel 1
Datalink D1 Out
(Low)
COP
Copy File
Source
Local:1:I.Data[48]
Dest Ch1_Datalink_D_Out[0]
Length
RET
Return
6-7
4
4
4
4

Advertisement

Table of Contents
loading

Table of Contents