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

The text of a manual · part 21 of 33

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

Pages 169 to 178 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 169

Using Explicit Messaging

6-41

SLC 500 Controller Explicit Messaging Using the Read/Write Parameter Service SLC 500 Controller Example Ladder Logic Program to Read a Single Parameter A Read Parameter message is used to read a single parameter. This read message example reads the value of parameter 003 - [Output Current] in a PowerFlex 7-Class drive. Important: Parameter Object Class code 0x0F is not supported in PowerFlex 750-Series drives. To do a single parameter read, follow the SLC 500 (Generic Attribute Service) single read example on page 6-48. Figure 6.50 Example Ladder Logic to Read a Single Parameter

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

Page 170

6-42

Using Explicit Messaging

SLC 500 Controller – Formatting a Message to Read a Single Parameter Using Read/Write Parameter Service Figure 6.51 Read Parameter Message Configuration Screen

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

Example Value

Description

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

1 2 (3) N40:0

Message Timeout ControlNet Addr Service (1) Instance (2)

500 2 Read Parameter 3 (Dec.)

The chassis slot occupied by the scanner. Number of words to be received (read). 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. 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. Instance number is the same as the parameter number.

(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) Only drive parameters (Port 0) can be read using Parameter Object Class code 0x0F. To read a parameter of a peripheral in another port, use DPI

Parameter Object Class code 0x93 (see page 6-47). (3)

In this example, Output Current is a 32-bit integer parameter requiring the Size in Words field to be set to ‘2’. If the parameter being read is a 16-bit integer, the Size in Words must be set to ‘1’. When using a PowerFlex 700S or PowerFlex 750-Series drive, Output Current 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).

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

Page 171

Using Explicit Messaging

6-43

SLC 500 Controller Example Read Single Response Data In this message example, we use the data table address in Figure 6.52 to store the response value (0.13 amps) that was read from drive parameter 003 - [Output Current]. To determine the data type for the parameter and its required scaling, see the specific drive documentation. Figure 6.52 Example Read Single Response Data File

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

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 172

6-44

Using Explicit Messaging

SLC 500 Controller Example Ladder Logic Program to Write a Single Parameter Using Read/Write Parameter Service A Write Parameter message is used to write to a single parameter. This write message example writes a value to parameter 140 - [Accel Time 1] in a PowerFlex 7-Class drive. Important: Parameter Object Class code 0x0F is not supported in PowerFlex 750-Series drives. To do a single parameter write, follow the SLC 500 (Generic Attribute Service) single write example on page 6-51. Figure 6.54 Example Ladder Logic to Write a Single Parameter

Important: If the explicit message single write must be written continuously, use the Generic Set Attribute Single service and attribute A (10 decimal; see page 6-51). This writes to RAM - not NVS (EEPROM) memory. This example single write message using Class code F 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 173

Using Explicit Messaging

6-45

SLC 500 Controller – Formatting a Message to Write a Single Parameter Using Read/Write Parameter Service Figure 6.55 Write Parameter 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 (3) N50:0

Message Timeout ControlNet Addr Service (1) Instance (2)

500 2 Write Parameter 140 (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. Instance number is the same as the parameter number.

(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) Only drive parameters (Port 0) can be written to using Parameter Object Class code 0x0F. To write to a parameter of a peripheral in another port, use DPI Parameter Object Class code 0x93 (see page 6-54). (3)

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

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

Page 174

6-46

Using Explicit Messaging

SLC 500 Controller Example Write Single Request Data In this message example, we use the data table address in Figure 6.56 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.56 Example Write Single Request Data File

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

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 175

Using Explicit Messaging

6-47

SLC 500 Controller Explicit Messaging Using the Generic Get/Set Attribute Service SLC 500 Controller Example Ladder Logic Program to Read a Single Parameter A Generic Get Attribute Single message is used to read a single parameter. This read message example reads the value of parameter 003 - [Output Current] in a PowerFlex 7-Class drive. 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.58 Example Ladder Logic to Read a Single Parameter

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

Page 176

6-48

Using Explicit Messaging

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

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

Example Value

Description

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

1 2 (3) N40:0

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

500 2 Generic Get Attribute Single 93 or 9F (Hex.) (4) 3 (Dec.) 9 (Dec.)

The chassis slot occupied by the scanner. Number of words to be received (read). 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. 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 read 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 read parameter 4 of a peripheral in Port 5 of a PowerFlex 750-Series drive, the instance would be 21504 + 4 = 21508 or 5404 (Hex). (3) In this example, Output Current is a 32-bit integer parameter requiring the Size in Words field to be set to ‘2’. If the parameter being read is a 16-bit integer, the

Size in Words must be set to ‘1’. When using a PowerFlex 700S or PowerFlex 750-Series drive, Output Current 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 the data into a floating point. (4) 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 177

Using Explicit Messaging

6-49

SLC 500 Controller Example Get Attribute Single Response Data In this message example, we use the data table address in Figure 6.60 to store the response value (0.13 amps) that was read from drive parameter 003 - [Output Current]. To determine the data type for the parameter and its required scaling, see the specific drive documentation. Figure 6.60 Example Get Attribute Single Response Data File

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

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 178

6-50

Using Explicit Messaging

SLC 500 Controller Example Ladder Logic Program to Write a Single Parameter Using Generic Get/Set Attribute Service A Generic Set Attribute Single message is used to write to a single parameter. This write message example writes a value to parameter 140 [Accel Time 1] in a PowerFlex 7-Class drive. 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.62 Example Ladder Logic to Write a Single Parameter

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