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

Page 104

Advertising
background image

7-20

ControlLogix w/1769-ADN DeviceNet Ladder Example Program

Channel 2 and Channel 3 ladder subroutines are similar to the Channel 1
subroutine and are not provided.

Figure 7.22 ControlLogix Ladder Logic Channel 1 Subroutine (Continued)

Datalink C

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.

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.

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
(so changes can be viewed).

The format is:

word [0] = Datalink C1 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (1] = Datalink C1 (high) high word for 32-bit Datalinks
word [2] = Datalink C2 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (3] = Datalink C2 (high) high word for 32-bit Datalinks

13

Copy File
Source Ch1_Datalink_C_In[0]
Dest

SM1_Output_Data[36]

Length

4

COP

Channel 1

Datalink C1 In

(Low)

Copy File
Source

SM1_Input_Data[38]

Dest Ch1_Datalink_C_Out[0]
Length

4

COP

Channel 1

Datalink C1 Out

(Low)

Datalink C

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.

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.

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
(so changes can be viewed).

The format is:

word [0] = Datalink C1 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (1] = Datalink C1 (high) high word for 32-bit Datalinks
word [2] = Datalink C2 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (3] = Datalink C2 (high) high word for 32-bit Datalinks

Datalink D

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.

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.

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
(so changes can be viewed).

The format is:

word [0] = Datalink D1 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (1] = Datalink D1 (high) high word for 32-bit Datalinks
word [2] = Datalink D2 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (3] = Datalink D2 (high) high word for 32-bit Datalinks

14

Copy File
Source Ch1_Datalink_D_In[0]
Dest

SM1_Output_Data[48]

Length

4

COP

Channel 1

Datalink D1 In

(Low)

Copy File
Source

SM1_Input_Data[50]

Dest Ch1_Datalink_D_Out[0]
Length

4

COP

Channel 1

Datalink D1 Out

(Low)

Datalink D

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.

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.

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
(so changes can be viewed).

The format is:

word [0] = Datalink D1 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (1] = Datalink D1 (high) high word for 32-bit Datalinks
word [2] = Datalink D2 (low) value for 16-bit Datalinks, low word for 32-bit Datalinks
word (3] = Datalink D2 (high) high word for 32-bit Datalinks

(End)

Advertising