Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 22 of 33

PowerFlex ControlNet Adapters 20-COMM-C (Coax), 20-COMM-Q (Fiber) User Manual: Chapter 6, pages 179 to 188

Pages 179 to 188 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 179

Using Explicit Messaging

6-51

SLC 500 Controller – Formatting a Message to Write a Single Parameter Using Generic Get/Set Attribute Service Figure 6.63 Generic Set Attribute Single Message Configuration Screen

The following table identifies the data that is required in each box to configure a message to write a single parameter. General Tab

Example Value

Description

1747-SCNR Slot Size in Words (Send Data) Data Table Address (Send Data)

1 1 (4) N50:0

Message Timeout ControlNet Addr Service (1) Class Instance (2) Attribute (3)

500 2 Generic Set Attribute Single 93 or 9F (Hex.) (5) 140 (Dec.) 9 or 10 (Dec.)

The chassis slot occupied by the scanner. Number of words to be sent (written). Each word size is a 16-bit integer. An unused controller data table address containing the message instruction. This address is the starting word of the source file. The time (in milliseconds) that the message must be completed. The node address of the adapter connected to the drive. Code for the requested service. Class ID for the DPI Parameter Object. Instance number is the same as the parameter number. Attribute number for the Parameter Value attribute.

(1) The default setting for Service is ‘Custom’, enabling entry of a Service Code not available from the Service pull-down menu. When choosing a Service other than ‘Custom’ from the pull-down menu, an appropriate Hex. value is automatically assigned to the Service Code box which is dimmed (unavailable). (2)

The instance is the parameter number in the drive (Port 0). To write to a parameter in another port, see DPI Parameter Object on page C-16 (Class code 0x93) or Host DPI Parameter Object on page C-30 (Class code 0x9F) to determine the instance number. For example, to write to parameter 51 of a peripheral in Port 5 of a PowerFlex 750-Series drive, the instance would be 21504 + 51 = 21555 or 5433 (Hex).

(3)

Setting the Attribute value to ‘9’ will write the parameter value to the drive’s Nonvolatile Storage (EEPROM) memory, which retains the parameter value even after the drive is power cycled. Important: When set to ‘9’, the EEPROM may quickly exceed its life cycle and cause the drive to malfunction. Setting the Attribute value to ‘A’ (10 decimal) will write the parameter value to temporary memory, which deletes the parameter value after the drive is power cycled. When frequent write messages are required, we recommend using the ‘A’ (10 decimal) setting.

(4) In this example, Accel Time 1 is a 16-bit integer parameter requiring the Size in Words field to be set to ‘1’. If the parameter being written to is a 32-bit integer, the Size in Words must be set to ‘2’. When using a PowerFlex 700S or PowerFlex 750-Series drive, Accel Time 1 is a floating point number requiring the Size in Words to be set to ‘2’. See the drive documentation to determine the size of the parameter and its data type (16-bit or 32-bit integer or REAL). The following page shows ladder logic to convert floating point data into integer files. (5)

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.

20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P

Page 180

6-52

Using Explicit Messaging

SLC 500 Controller Example Set Attribute Single Request Data In this message example, we use the data table address in Figure 6.64 to store the request value (10.0 sec.) that was written to drive parameter 140 [Accel Time 1]. To determine the data type for the parameter and its required scaling, see the specific drive documentation. Figure 6.64 Example Set Attribute Single Request Data File

Figure 6.65 shows example ladder logic to correctly format the three possible data types for set messages of different parameter types in the SLC 500 controller. Figure 6.65 Example Ladder Logic to Format Parameter Data Types for Sets

For 16-bit Integer Parameters – All PowerFlex 7-Class Drives

For 32-bit Integer Parameters – All PowerFlex 7-Class Drives

For 32-bit REAL (Floating Point) Parameters – PowerFlex 700S and PowerFlex 750-Series Drives

20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P

Page 181

Using Explicit Messaging

6-53

SLC 500 Controller – Explanation of Request and Response Data for Read/Write Multiple Messaging The data structures in Figure 6.66 and Figure 6.67 use 16-bit words and can accommodate up to 22 parameters in a single message. In the Response Message, a parameter number with the high bit set indicates that the associated parameter value field contains an error code (parameter number in response data will be negative). Important: See Table 6.A on page 6-2 for limitations of PowerFlex 7-Class and PowerFlex 750-Series drives when using Class code 0x93 or Class code 0x9F for explicit messaging. Figure 6.66 Data Structures for Scattered Read Messages Word 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Request (Source Data) Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word

Word 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Response (Destination Data) Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW

...

...

63 Parameter Number 64 Pad Word 65 Pad Word

63 Parameter Number 64 Parameter Value LSW 65 Parameter Value MSW

Figure 6.67 Data Structures for Scattered Write Messages Word 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Request (Source Data) Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW Parameter Number Parameter Value LSW Parameter Value MSW

Word 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Response (Destination Data) Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word Parameter Number Pad Word Pad Word

...

...

63 Parameter Number 64 Parameter Value LSW 65 Parameter Value MSW

63 Parameter Number 64 Pad Word 65 Pad Word 20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P

Page 182

6-54

Using Explicit Messaging

SLC 500 Controller Explicit Messaging Using the Generic Get/Set Attribute Service SLC 500 Controller Example Ladder Logic Program to Read Multiple Parameters A Custom scattered read message is used to read the values of multiple parameters. This read message example reads the values of these five 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. 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.68 Example Ladder Logic to Read Multiple Parameters

20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P

Page 183

Using Explicit Messaging

6-55

SLC 500 Controller – Formatting a Message to Read Multiple Parameters Using Generic Get/Set Attribute Service Figure 6.69 Custom Scattered Read Message Configuration Screen

The following table identifies the data that is required in each box to configure a message to read multiple parameters. General Tab

Example Value

1747-SCNR Slot Size in Words (Receive Data) Size in Words (Send Data) Data Table Address (Receive Data)

1 15 (2) 15 (2) N70:0

Data Table Address (Send Data) Message Timeout ControlNet Addr Service (1) Service Code Class Instance Attribute

Description

The chassis slot occupied by the scanner. Number of words to be received (read). Each word size is a 16-bit integer. Number of words to be sent. Each word 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. An unused controller data table address containing the message N60:0 instruction. This address is the starting word of the source file. The time (in milliseconds) that the message must be completed. 500 The node address of the adapter connected to the drive. 2 Required for scattered messages. Custom Code for the requested service. 4B (Hex.) 93 or 9F (Hex.) (3) Class ID for the DPI Parameter Object. Required for scattered messages. 0 (Dec.) Required for scattered messages. 0 (Dec.)

(1)

The default setting for Service is ‘Custom’, enabling entry of a Service Code not available from the Service pull-down menu. When choosing a Service other than ‘Custom’ from the pull-down menu, an appropriate Hex. value is automatically assigned to the Service Code box which is dimmed (unavailable).

(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-53. 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).

(3) 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.

20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P

Page 184

6-56

Using Explicit Messaging

SLC 500 Controller Example Scattered Read Request Data In this message example, we use the data table addresses in Figure 6.70 or Figure 6.71 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.70 Example Scattered Read Request Data File for PowerFlex 7-Class Drive

Figure 6.71 Example Scattered Read Request Data File for PowerFlex 750-Series Drive

SLC 500 Controller Example Scattered Read Response Data In this message example, we use the data table addresses in Figure 6.72 to store the response values that were read from the requested drive parameters. Figure 6.72 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 185

Using Explicit Messaging

6-57

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.73 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.74 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 SLC 500 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 186

6-58

Using Explicit Messaging

Figure 6.74 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 187

Using Explicit Messaging

6-59

SLC 500 Controller Example Ladder Logic Program to Write Multiple Parameters Using Generic Get/Set Attribute Service A Custom 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.75 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 (10 decimal; see page 6-51). Attribute A writes to RAM - not NVS (EEPROM) memory. This example scattered write message using attribute 0 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 188

6-60

Using Explicit Messaging

SLC 500 Controller – Formatting a Message to Write Multiple Parameters Using Generic Get/Set Attribute Service Figure 6.76 Custom Scattered Write Multiple Message Configuration Screen

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

1747-SCNR Slot Size in Words (Receive Data) Size in Words (Send Data) Data Table Address (Receive Data)

1 15 (2) 15 (2) N90:0

Data Table Address (Send Data)

N80:0

Message Timeout ControlNet Addr Service (1) Service Code Class Instance Attribute

500 2 Custom 4C (Hex.) 93 or 9F (Hex.) (3) 0 (Dec.) 0 (Dec.)

The chassis slot occupied by the scanner. Number of words to be received. Each word size is a 16-bit integer. Number of words to be sent (written). Each word 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. An unused controller data table address containing the message instruction. This address is the starting word of the source file. The time (in milliseconds) that the message must be completed. The node address of the adapter connected to the drive. Required for scattered messages. Code for the requested service. Class ID for the DPI Parameter Object. Required for scattered messages. Required for scattered messages.

(1) The default setting for Service is ‘Custom’, enabling entry of a Service Code not available from the Service pull-down menu. When choosing a

Service other than ‘Custom’ from the pull-down menu, an appropriate Hex. value is automatically assigned to the Service Code box which is dimmed (unavailable). (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-53. 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).

(3)

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.

20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P