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

The text of a manual · part 18 of 33

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

Pages 139 to 148 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 139

Using Explicit Messaging

6-11

ControlLogix Controller – Formatting a Message to Write a Single Parameter Using RSLogix 5000 Software, Any Version Figure 6.9

Set Attribute Single Message Configuration Screens

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

Example Value

Description

Message Type Service Type (1) Service Code (1) Class Instance (2) Attribute (3) Source Element Source Length

CIP Generic Set Attribute Single 10 (Hex.) 93 or 9F (Hex.) (5) 140 (Dec.) 9 or A (Hex.) Accel_Time_1 (6) 2 (6)

Used to access the Parameter Object in the adapter. This service is used to write a parameter value. Code for the requested service. Class ID for the DPI Parameter Object. Instance number is the same as parameter number. Attribute number for the Parameter Value attribute. Name of the tag for any service data to be sent from the scanner or bridge to the adapter/drive. Number of bytes of service data to be sent in the message.

Communication Tab

Example Value

Description

My_PowerFlex_Drive

The path is the route that the message will follow.

Tag Tab

Example Value

Description

Name

Single_Write_Message

The name for the message.

Path

(4)

(1) The default setting for Service Type is ‘Custom’, enabling entry of a Service Code not available from the Service Type pull-down menu. When choosing a Service Type 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 4 of a peripheral in Port 5 of a PowerFlex 750-Series drive, the instance would be 21504 + 4 = 21508.

(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) Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder. (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.

(6)

In this example, Accel Time 1 is a 16-bit integer parameter requiring the tag Data Type field to be set to ‘INT’ when creating the controller tag. If the parameter being written to is a 32-bit integer, the tag Data Type field must be set to ‘DINT’. Also, the Source Length field on the Message Configuration screen must correspond to the selected Data Type in bytes (for example, 4 bytes for a DINT or a REAL). When using a PowerFlex 700S or PowerFlex 750-Series drive, Accel Time 1 is a floating point number requiring the Data Type field to be set to ‘REAL’ when creating the controller tag. 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 140

6-12

Using Explicit Messaging

ControlLogix Controller – Explanation of Request and Response Data for Read/Write Multiple Messaging Using RSLogix 5000 Software, Any Version The data structures in Figure 6.10 and Figure 6.11 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.10 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.11 Data Structures for Scattered Write Messages Word 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

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

...

...

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

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

63 Parameter Number 64 Parameter Value LSW 65 Parameter Value MSW

63 Parameter Number 64 Pad Word 65 Pad Word

Page 141

Using Explicit Messaging

6-13

Read Multiple Parameters ControlLogix Controller Example Ladder Logic Program to Read Multiple Parameters Using RSLogix 5000 Software, Any Version A Scattered Read message is used to read the values of multiple parameters. Up to 22 parameters can be read. 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. Table 6.F Example Controller Tags to Read Multiple Parameters Operand

Controller Tags for Read Multiple Message

Data Type

XIC

Execute_Scattered_Read_Message

BOOL

MSG

Scattered_Read_Message

MESSAGE

Figure 6.12 Example Ladder Logic to Read Multiple Parameters

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

Page 142

6-14

Using Explicit Messaging

ControlLogix Controller – Formatting a Message to Read Multiple Parameters Using RSLogix 5000 Software, Any Version Figure 6.13 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. Configuration Tab

Example Value

Description

Message Type Service Type (1) Service Code (1) Class Instance Attribute Source Element

CIP Generic Custom 4b (Hex.) 93 or 9F (Hex.) (3) 0 (Dec.) 0 (Hex.) Scattered_Read_Request (4)

Source Length Destination

30 (4) Scattered_Read_Response

Used to access Parameter Object in the adapter. Required for scattered messages. Code for the requested service. Class ID for the DPI Parameter Object. Required for scattered messages. Required for scattered messages. Name of the tag for any service data to be sent from scanner or bridge to the adapter/drive. Number of bytes of service data to be sent in the message. The tag where the data that is read is stored.

Communication Tab

Example Value

Description

My_PowerFlex_Drive

The path is the route that the message will follow.

Path

(2)

Tag Tab

Example Value

Description

Name

Scattered_Read_Message

The name for the message.

(1) The default setting for Service Type is ‘Custom’, enabling entry of a Service Code not available from the Service Type pull-down menu. When choosing a Service Type 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)

Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.

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

In this example, we are reading five parameters. Each parameter being read requires an array of three INT registers. Therefore, a controller tag was created with its Data Type field set to ‘INT[15]’. Also, the Source Length field on the Message Configuration screen must correspond to the selected Data Type in bytes (for this example, 30 bytes for an INT[15] array). Scattered read messages always assume that every parameter being read is a 32-bit integer, regardless of its actual data type. Maximum length is 132 bytes or 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 143

Using Explicit Messaging

6-15

ControlLogix Controller Example Scattered Read Request Data In this message example, we use the data structure in Figure 6.14 or Figure 6.15 in the source tag named Scattered_Read_Request to read 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. Figure 6.14 Example Scattered Read Request Data for PowerFlex 7-Class Drive

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

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

Page 144

6-16

Using Explicit Messaging

ControlLogix Controller Example Scattered Read Response Data The Scattered Read Request message reads the multiple parameters and returns their values to the destination tag (Scattered_Read_Response). Figure 6.16 or Figure 6.17 shows the parameter values. Figure 6.16 Example Scattered Read Response Data for PowerFlex 7-Class Drive

In this message example, the parameters have the following values. PowerFlex 7-Class Drive Parameter

Read Value

1 - [Output Freq]

32.5 Hz

3 - [Output Current]

0.01 Amp

6 - [Output Voltage]

118.7V AC

12 - [DC Bus Voltage]

329.2V DC

17 - [Analog In2 Value]

8.318 mA

Figure 6.17 Example Scattered Read Response Data 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 Scattered_Read_Response integer array to a 32-bit integer or REAL tag. Figure 6.18 shows the ladder logic used for this example. If the parameter data type is a REAL, then the destination tag is a REAL. If the parameter data type is a 32-bit integer, then the destination tag is a DINT. 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 145

Using Explicit Messaging

6-17

Figure 6.18 Example Ladder Logic to Copy Response Data for PowerFlex 750-Series Drive

In this message example, the parameters have the following values. PowerFlex 750-Series Drive Parameter

Read Value

Data Type

1 - [Output Freq]

45.0 Hz

REAL

7 - [Output Current]

0.03 Amp

REAL

137 - [Open Loop Fdbk]

1706253458

DINT

21581 - [Port 5: Analog Out 0 Data]

45.0 Hz

REAL

260 - [Analog In0 Value]

9.366 Volts

REAL

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

Page 146

6-18

Using Explicit Messaging

Write Multiple Parameters ControlLogix Controller Example Ladder Logic Program to Write Multiple Parameters Using RSLogix 5000 Software, Any Version A 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. Table 6.G Example Controller Tags to Write Multiple Parameters Operand

Controller Tags for Write Multiple Message

Data Type

XIC

Execute_Scattered_Write_Message

BOOL

MSG

Scattered_Write_Message

MESSAGE

Figure 6.19 Example Ladder Logic to Write Multiple Parameters

Important: If the explicit message scattered write must be written continuously, then use a separate 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-11). 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 147

Using Explicit Messaging

6-19

ControlLogix Controller – Formatting a Message to Write Multiple Parameters Using RSLogix 5000 Software, Any Version Figure 6.20 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. Configuration Tab

Example Value

Description

Message Type Service Type (1) Service Code (1) Class Instance Attribute Source Element

CIP Generic Custom 4c (Hex.) 93 or 9F (Hex.) (3) 0 (Dec.) 0 (Hex.) Scattered_Write_Request (4)

Source Length Destination

30 (4) Scattered_Write_Response

Used to access Parameter Object in the adapter. Required for scattered messages. Code for the requested service. Class ID for the DPI Parameter Object. Required for scattered messages. Required for scattered messages. Name of the tag for any service data to be sent from scanner or bridge to the adapter/drive. Number of bytes of service data to be sent in the message. The tag where the data that is read is stored.

Communication Tab

Example Value

Description

My_PowerFlex_Drive

The path is the route that the message will follow.

Path

(2)

Tag Tab

Example Value

Description

Name

Scattered_Write_Message

The name for the message.

(1) The default setting for Service Type is ‘Custom’, enabling entry of a Service Code not available from the Service Type pull-down menu. When choosing a Service Type 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)

Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.

(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. (4) In this example, we are writing to five parameters. Each parameter being written to requires an array of three INT registers.

Therefore, a controller tag was created with its Data Type field set to ‘INT[15]’. Also, the Source Length field on the Message Configuration screen must correspond to the selected Data Type in bytes (for this example, 30 bytes for an INT[15] array). Scattered write messages always assume that every parameter being written to is a 32-bit integer, regardless of its actual data type. Maximum length is 132 bytes or 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 148

6-20

Using Explicit Messaging

ControlLogix Controller Example Scattered Write Request Data In this message example, we use the data structure in Figure 6.21 or Figure 6.24 in the source tag (Scattered_Write_Request) to write new values to these parameters. PowerFlex 7-Class Drive Parameter

Write Value

PowerFlex 750-Series Drive Parameter

Write Value

Data Type

141 - [Accel Time 2]

11.1 Sec.

536 - [Accel Time 2]

11.1 Sec.

REAL

143 - [Decel Time 2]

22.2 Sec.

538 - [Decel Time 2]

22.2 Sec.

REAL

105 - [Preset Speed 5]

33.3 Hz.

725 - [Zero Position]

33

DINT

106 - [Preset Speed 6]

44.4 Hz.

21555 - [Port 5: Analog In0 Hi]

5.5

REAL

107 - [Preset Speed 7]

55.5 Hz.

780 - [PTP Setpoint]

-75,555

REAL

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.21 or Figure 6.24 shows the parameter values. Figure 6.21 Example Scattered Write Request Data for PowerFlex 7-Class Drive

ControlLogix Controller Example Scattered Write Response Data The results of the message appear in the destination tag named Scattered_Write_Response (Figure 6.22). Values of ‘0’ indicate no errors occurred.

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