The text of a manual · part 20 of 33
PowerFlex ControlNet Adapters 20-COMM-C (Coax), 20-COMM-Q (Fiber) User Manual: Chapter 6, pages 159 to 168
Pages 159 to 168 of 270, from PowerFlex ControlNet Adapters 20-COMM-C (Coax), 20-COMM-Q (Fiber) User Manual
The original document is the PDF (6.7 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 20-COMM-C
Page 159
Using Explicit Messaging
6-31
PLC-5 Controller – Formatting a Message to Read Multiple Parameters Figure 6.37 Scattered Read Message Configuration Screens
The following table identifies the data that is required in each box to configure a message to read multiple parameters. General Tab
Example Value
Description
Communication Command Service Code Class Number Instance Number Attribute Number Snd Addr
Generic Bi-Directional 4b (Hex.) 93 or 9F (Hex.) (1) 0 (Hex.), N60:0
Snd Elems Rcv Addr
15 (2) N70:0
Rcv Elems
15 (2)
Command type for the controller to read multiple data from the drive. Code for the requested service. Class ID for the DPI Parameter Object. Required for scattered messages. Not used. An unused controller data table address containing the message instruction. This address is the starting word of the source file. Number of elements (words) to be transferred. Each element size is a 16-bit integer. An unused controller data table address containing the message instruction. This address is the starting word of the destination file. Number of elements (words) to be transferred. Each element size is a 16-bit integer.
MultiHop Tab
Example Value
Description
To Address
2
The node address of the adapter connected to the drive.
(1) See Table 6.A on page 6-2 for limitations of PowerFlex 7-Class and PowerFlex 750-Series drives when using DPI Parameter Object Class code 0x93 or Host
DPI Parameter Object Class code 0x9F for explicit messaging. (2)
In this example, we are reading five parameters. Each parameter being read requires three contiguous 16-bit words. Scattered read messages always assume that every parameter being read is a 32-bit integer, regardless of its actual data type. The data structure format is the same as shown on page 6-29. Maximum length is 66 words, which equates to 22 parameters. For parameter numbering, see DPI Parameter Object on page C-16 (Class code 0x93) or Host DPI Parameter Object on page C-30 (Class code 0x9F).
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 160
6-32
Using Explicit Messaging
PLC-5 Controller Example Scattered Read Request Data In this message example, we use the data table addresses in Figure 6.38 or Figure 6.39 to store the request values to be read from these drive parameters. PowerFlex 7-Class Drive
PowerFlex 750-Series Drive
• Parameter 001 - [Output Freq] • Parameter 003 - [Output Current] • Parameter 006 - [Output Voltage] • Parameter 012 - [DC Bus Voltage] • Parameter 017 - [Analog In1 Value]
• Parameter 001 - [Output Freq] • Parameter 007 - [Output Current] • Parameter 137 - [Open Loop Fdbk] • Parameter 21581 - [Port 5: Analog Out 0 Data] • Parameter 260 - [Analog In0 Value]
See DPI Parameter Object on page C-16 (Class code 0x93) or Host DPI Parameter Object on page C-30 (Class code 0x9F) for parameter numbering. Figure 6.38 Example Scattered Read Request Data File for PowerFlex 7-Class Drive
Figure 6.39 Example Scattered Read Request Data File for PowerFlex 750-Series Drive
PLC-5 Controller Example Scattered Read Response Data In this message example, we use the data table addresses in Figure 6.40 to store the response values that were read from the requested drive parameters. Figure 6.40 Example Scattered Read Response Data File for PowerFlex 7-Class Drive
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 161
Using Explicit Messaging
6-33
In this example, the parameters have the following values. PowerFlex 7-Class Drive Parameter
Address
Read Value
1 - [Output Freq]
N70:1
90.0 Hz
3 - [Output Current]
N70:4
0.09 Amp
6 - [Output Voltage]
N70:7
229.1V AC
12 - [DC Bus Voltage]
N70:10
325.3V DC
17 - [Analog In2 Value]
N70:13
8.318 mA
Figure 6.41 Example Scattered Read Response Data File for PowerFlex 750-Series Drive
The PowerFlex 750-Series drive uses 32-bit integer and REAL parameters. A COP command must be used to copy the N60 integer array to a 16-bit integer or floating tag. Figure 6.42 shows the ladder logic used for this example. If the parameter data type is a 32-bit integer, the data remains split into two 16-bit integers because there are no 32-bit integers in the PLC-5 controller. If the parameter data type is a REAL, then the destination tag is a floating point. In this case, the value must first be swapped with the high and low 16-bit integers, and then the two integers copied (COP) into a floating point address. See the drive documentation to determine the parameter data type (32-bit integer or REAL).
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 162
6-34
Using Explicit Messaging
Figure 6.42 Example Ladder Logic to Copy Response Data for PowerFlex 750-Series Drive
Parameter 137 [Open Loop Fdbk]
PowerFlex 750-Series Drives
Parameter 001 [Output Freq]
In this message example, the parameters have the following values.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
PowerFlex 750-Series Drive Parameter
Read Value
Data Type
1 - [Output Freq]
45.0 Hz
REAL
7 - [Output Current]
0.04 Amp
REAL
137 - [Open Loop Fdbk]
710659711
DINT
21581 - [Port 5: Analog Out 0 Data]
45.0 Hz
REAL
260 - [Analog In0 Value]
9.361 Volts
REAL
Page 163
Using Explicit Messaging
6-35
PLC-5 Controller Example Ladder Logic Program to Write Multiple Parameters A Generic Bi-Directional scattered write message is used to write to multiple parameters. This write message example writes the following values to these five parameters. PowerFlex 7-Class Drive Parameter
Write Value
PowerFlex 750-Series Drive Parameter
Write Value
141 - [Accel Time 2]
11.1 Sec.
536 - [Accel Time 2]
11.1 Sec.
143 - [Decel Time 2]
22.2 Sec.
538 - [Decel Time 2]
22.2 Sec.
105 - [Preset Speed 5]
33.3 Hz.
725 - [Zero Position]
33
106 - [Preset Speed 6]
44.4 Hz.
21555 - [Port 5: Analog In0 Hi]
5.5
107 - [Preset Speed 7]
55.5 Hz.
780 - [PTP Setpoint]
-75,555
See DPI Parameter Object on page C-16 (Class code 0x93) or Host DPI Parameter Object on page C-30 (Class code 0x9F) for parameter numbering. Important: See Table 6.A on page 6-2 for limitations of PowerFlex 7-Class and PowerFlex 750-Series drives when using DPI Parameter Object Class code 0x93 or Host DPI Parameter Object Class code 0x9F for explicit messaging. Figure 6.43 Example Ladder Logic to Write Multiple Parameters
Important: If the explicit message scattered write must be written continuously, then use a separate Generic Set service explicit message single write for each parameter using DPI Parameter Object Class code 0x93 or Host DPI Parameter Object Class code 0x9F and attribute A (see page 6-27). Attribute A writes to RAM - not NVS (EEPROM) memory. This example scattered write message writes to NVS. Over time, continuous writes will exceed the EEPROM life cycle and cause the drive to malfunction.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 164
6-36
Using Explicit Messaging
PLC-5 Controller – Formatting a Message to Write Multiple Parameters Figure 6.44 Scattered Write Multiple Message Configuration Screens
The following table identifies the data that is required in each box to configure a message to write multiple parameters. General Tab
Example Value
Description
Communication Command Service Code Class Number Instance Number Attribute Number Snd Addr
Generic Bi-Directional 4c (Hex.) 93 or 9F (Hex.) (1) 0 (Hex.), N80:0
Snd Elems Rcv Addr
15 (2) N90:0
Rcv Elems
15 (2)
Command type for the controller to write multiple data to the drive. Code for the requested service. Class ID for the DPI Parameter Object. Required for scattered messages. Not used. An unused controller data table address containing the message instruction. This address is the starting word of the source file. Number of elements (words) to be transferred. Each element size is a 16-bit integer. An unused controller data table address containing the message instruction. This address is the starting word of the destination file. Number of elements (words) to be transferred. Each element size is a 16-bit integer.
MultiHop Tab
Example Value
Description
To Address
2
The node address of the adapter connected to the drive.
(1) See Table 6.A on page 6-2 for limitations of PowerFlex 7-Class and PowerFlex 750-Series drives when using DPI Parameter Object Class code 0x93 or Host
DPI Parameter Object Class code 0x9F for explicit messaging. (2)
In this example, we are writing to five parameters. Each parameter being written to requires three contiguous 16-bit words. Scattered write messages always assume that every parameter being written to is a 32-bit integer, regardless of its actual data type. The data structure format is the same as shown on page 6-29. Maximum length is 66 words, which equates to 22 parameters. For parameter numbering, see DPI Parameter Object on page C-16 (Class code 0x93) or Host DPI Parameter Object on page C-30 (Class code 0x9F).
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 165
Using Explicit Messaging
6-37
PLC-5 Controller Example Scattered Write Request Data In this message example, we use the data table addresses in Figure 6.45 or Figure 6.48 to store the request values to be written to these drive parameters. PowerFlex 7-Class Drive Parameter
Address
Write Value
PowerFlex 750-Series Drive Parameter
Write Value
Data Type
141 - [Accel Time 2]
N90:1
11.1 Sec.
536 - [Accel Time 2]
11.1 Sec.
REAL
143 - [Decel Time 2]
N90:4
22.2 Sec.
538 - [Decel Time 2]
22.2 Sec.
REAL
105 - [Preset Speed 5]
N90:7
33.3 Hz.
725 - [Zero Position]
33
32-bit integer
106 - [Preset Speed 6]
N90:10
44.4 Hz.
21555 - [Port 5: Analog In0 Hi]
5.5
REAL
107 - [Preset Speed 7]
N90:13
55.5 Hz.
780 - [PTP Setpoint]
-75,555
32-bit integer
See DPI Parameter Object on page C-16 (Class code 0x93) or Host DPI Parameter Object on page C-30 (Class code 0x9F) for parameter numbering. Figure 6.45 or Figure 6.48 shows the parameter values. Figure 6.45 Example Scattered Write Request Data File for PowerFlex 7-Class Drive
PLC-5 Controller Example Scattered Write Response Data In this message example, we use the data table addresses in Figure 6.46 to store the response values that were written to the requested drive parameters. Values of ‘0’ indicate no errors occurred. Figure 6.46 Example Scattered Write Response Data File for PowerFlex 7-Class Drive
The PowerFlex 750-Series drive uses 32-bit integer and REAL parameters. A COP command must be used to copy the 16-bit integer or REAL values to the N90 integer array. Figure 6.47 shows the ladder logic used for this example. If the parameter data type is a 32-bit integer, the data remains split into two 16-bit integers since there are no 32-bit integers in the PLC-5 20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 166
6-38
Using Explicit Messaging controller. If the parameter data type is a REAL, the floating point value in the PLC-5 controller is copied (COP) to two 16-bit integers. Then the MSW (most significant word) and LSW (least significant word) must be swapped before moving (MOV) the values to the array to be written to. See the drive documentation to determine the parameter data type (32-bit integer or REAL). Figure 6.47 Example Ladder Logic to Copy Request Data for PowerFlex 750-Series Drive
Parameter 780 [PTP Setpoint]
PowerFlex 750-Series Drives
Parameter 536 [Accel Time 2]
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 167
Using Explicit Messaging
6-39
Figure 6.48 Example Scattered Write Request Data File for PowerFlex 750-Series Drive
The results of the explicit message appear in the destination tag array N80 (Figure 6.49). Values of ‘0’ indicate no errors occurred. Figure 6.49 Example Scattered Write Response Data File for PowerFlex 750-Series Drive
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 168
6-40
Using Explicit Messaging
SLC 500 Controller Examples
The CIP messaging method provides two ways to perform explicit messaging: • Read/Write Parameter Service simplifies setup by requiring less data to be entered in message configuration screens. However, the Read/Write Parameter Service can only be used to perform single parameter read or single parameter write explicit messages. (Multiple parameter reads or writes must be performed using the Generic Get/Set Attribute Service described below.) Important: When performing a Write Parameter message, the data will always be written to the drive’s Nonvolatile Storage (NVS). Continuous NVS writes may damage the drive’s EEPROM. If continuous writes are necessary, use the Generic Set Attribute Single Service and attribute 10 (see page 6-51). • Generic Get/Set Attribute Service requires more setup data to be entered in message configuration screens, but can be used to perform single parameter read or write explicit messages or multiple parameter read or write explicit messages. Also, the Generic Set Attribute Service offers the choice of writing the data to the drive’s Nonvolatile Storage (NVS) or the drive’s Random Access Memory (RAM; for Generic Set Attribute Single service only, see page 6-51). Note that when selecting the data to be written to RAM, the data will be lost if the drive loses power. For supported classes, instances, and attributes, see Appendix C, ControlNet Objects. Block transfer or CEM (ControlNet Explicit Message) instructions can be used to perform explicit messaging. Since CEM instructions are easier to configure and perform more efficiently, they are used for these examples. Important: RSLogix 500 software, version 7.10 or later, and a SLC 5/03, SLC 5/04, or SLC 5/05 controller, Series C with firmware version 10.00 or later, are required to use CEM instructions.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P