The text of a manual · part 17 of 33
PowerFlex ControlNet Adapters 20-COMM-C (Coax), 20-COMM-Q (Fiber) User Manual: Chapter 6, pages 129 to 138
Pages 129 to 138 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 129
Chapter 6
Using Explicit Messaging
This chapter provides information and examples that explain how to use Explicit Messaging to configure and monitor the adapter and connected PowerFlex 7-Class drive or PowerFlex 750-Series drive. Important: When used in a PowerFlex 750-Series drive, the 20-COMM-C or 20-COMM-Q adapter must have firmware 3.001 or later to support explicit messaging to drive parameters (Port 0). Furthermore, the adapter requires firmware 3.002 or later for explicit messaging to parameters of peripherals in drive Ports 1…14. Topic
Page
About Explicit Messaging
6-2
Performing Explicit Messages
6-3
ControlLogix Controller Examples
6-4
PLC-5 Controller Examples
6-23
SLC 500 Controller Examples
6-40
!
!
ATTENTION: Risk of injury or equipment damage exists. The examples in this publication are intended solely for purposes of example. There are many variables and requirements with any application. Rockwell Automation does not assume responsibility or liability (to include intellectual property liability) for actual use of the examples shown in this publication. ATTENTION: Risk of equipment damage exists. If Explicit Messages are programmed to write parameter data to Nonvolatile Storage (NVS) frequently, the NVS will quickly exceed its life cycle and cause the drive to malfunction. Do not create a program that frequently uses Explicit Messages to write parameter data to NVS. Datalinks do not write to NVS and should be used for frequently changed parameters.
Refer to Chapter 5 for information about the I/O Image, using Logic Command/Status, Reference/Feedback, and Datalinks.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 130
6-2
Using Explicit Messaging
About Explicit Messaging
Explicit Messaging is used to transfer data that does not require continuous updates. With Explicit Messaging, you can configure and monitor a slave device’s parameters on the network. Important: When an explicit message is performed, by default no connection is made because it is an ‘unconnected’ message. When timing of the message transaction is important, you can create a dedicated message connection between the controller and drive by checking the ‘Connected’ box on the Communications tab message configuration screen during message setup. These message connections are in addition to the I/O connection. However, the trade off for more message connections is decreased network performance. If your application cannot tolerate this, we recommend to not check the ‘Connected’ box. Important: PowerFlex 7-Class and PowerFlex 750-Series drives have explicit messaging limitations. Table 6.A shows the ControlNet Object Class code compatibilities for these drives. Table 6.A Explicit Messaging Class Code Compatibility with Drives ControlNet Object Class Code
PowerFlex 7-Class Drives
PowerFlex 750-Series Drives
Explicit Messaging Function
Parameter Object 0x0F
Yes
No
Single parameter reads/writes
DPI Parameter Object 0x93
Yes
Yes(1) with limitations
Single and scattered parameter reads/writes
Host DPI Parameter Object 0x9F
No
Yes(2) with limitations
Single and scattered parameter reads/writes
(1) Enables access to drive parameters (Port 0), DPI device parameters (Ports 1…6 only), and Host parameters
(Ports 7…14 only). For example, DPI Parameter Object Class code 0x93 can access a 20-COMM-C adapter in Port 6. However, Class code 0x93 cannot access, for example, the Host parameters in a 24V I/O option module in Port 5. See DPI Parameter Object on page C-16 for instance (parameter) numbering. (2)
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Enables access to drive parameters (Port 0) and Host parameters for all ports (1…14). Host DPI Parameter Object Class code 0x9F cannot access DPI (device) parameters. For example, if a 20-750-DNET option module is in Port 4, its Host parameters can be accessed, but not its DPI (device) parameters. See Host DPI Parameter Object on page C-30 for instance (parameter) numbering.
Page 131
Using Explicit Messaging
Performing Explicit Messages
6-3
There are five basic events in the Explicit Messaging process. The details of each step will vary depending on the type of controller being used. See the documentation for your controller. Important: There must be a request message and a response message for all Explicit Messages, whether you are reading or writing data. Figure 6.1
Explicit Message Process
➊ ➎
Set up and send Explicit Message Request
Complete Explicit Message
Retrieve Explicit
➍ Message Response
➋
➌ Channel A
ControlNet Network
(optional redundancy)
Channel B
Event Description
➊
You format the required data and set up the ladder logic program to send an Explicit Message request to the scanner or bridge module (download).
➋
The scanner or bridge module transmits the Explicit Message Request to the slave device over the network.
➌
The slave device transmits the Explicit Message Response back to the scanner. The data is stored in the scanner buffer.
➍
The controller retrieves the Explicit Message Response from the scanner’s buffer (upload).
➎
The Explicit Message is complete.
For information on the maximum number of Explicit Messages that can be executed at a time, see the documentation for the scanner or bridge and/or controller that is being used.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 132
6-4
Using Explicit Messaging
ControlLogix Controller Examples
TIP: To display the Message Configuration screen in RSLogix 5000 software, add a message instruction (MSG), create a new tag for the message (Properties: Base tag type, MESSAGE data type, controller scope), and click the button in the message instruction. For supported classes, instances, and attributes, see Appendix C, ControlNet Objects.
Read a Single Parameter ControlLogix Controller Example Ladder Logic Program to Read a Single Parameter Using RSLogix 5000 Software, Version 15.00 or Later A Parameter Read 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 RSLogix 5000 software (any version) single read example on page 6-6. Table 6.B Example Controller Tags to Read a Single Parameter Operand
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Controller Tags for Single Read Message
Data Type
XIC
Execute_Single_Read_Message
BOOL
MSG
Single_Read_Message
MESSAGE
Figure 6.2
Example Ladder Logic to Read a Single Parameter
Page 133
Using Explicit Messaging
6-5
ControlLogix Controller – Formatting a Message to Read a Single Parameter Using RSLogix 5000 Software, Version 15.00 or Later Figure 6.3
Parameter Read Single Message Configuration Screens
The following table identifies the data that is required in each box to configure a message to read a single parameter. Configuration Tab
Example Value
Description
Message Type Service Type (1) Service Code (1) Class Instance (2) Attribute Destination
CIP Generic Parameter Read e (Hex.) f (Hex.) 3 (Dec.) 1 (Hex.) Output_Current (4)
Used to access the Parameter Object in the adapter. This service is used to read 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. The tag where the data that is read is stored.
Communication Tab
Example Value
Description
Path (3)
My_PowerFlex_Drive
The path is the route that the message will follow.
Tag Tab
Example Value
Description
Name
Single_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)
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-6).
(3) Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder. (4)
In this example, Output Current is a 32-bit integer parameter requiring the Data Type field to be set to ‘DINT’ when creating the controller tag. If the parameter being read is a 16-bit integer, the tag Data Type field must be set to ‘INT’. When using a PowerFlex 700S drive, Output Current 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 134
6-6
Using Explicit Messaging
ControlLogix Controller Example Ladder Logic Program to Read a Single Parameter Using RSLogix 5000 Software, Any Version A 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. Table 6.C Example Controller Tags to Read a Single Parameter Operand
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Controller Tags for Single Read Message
Data Type
XIC
Execute_Single_Read_Message
BOOL
MSG
Single_Read_Message
MESSAGE
Figure 6.4
Example Ladder Logic to Read a Single Parameter
Page 135
Using Explicit Messaging
6-7
ControlLogix Controller – Formatting a Message to Read a Single Parameter Using RSLogix 5000 Software, Any Version Figure 6.5
Get Attribute Single Message Configuration Screens
The following table identifies the data that is required in each box to configure a message to read a single parameter. Configuration Tab
Example Value
Description
Message Type Service Type (1) Service Code (1) Class Instance (2) Attribute Destination
CIP Generic Get Attribute Single e (Hex.) 93 or 9F (Hex.) (4) 3 (Dec.) 9 (Hex.) Output_Current (5)
Used to access the Parameter Object in the adapter. This service is used to read 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. The tag where the data that is read is stored.
Communication Tab
Example Value
Description
Path (3)
My_PowerFlex_Drive
The path is the route that the message will follow.
Tag Tab
Example Value
Description
Name
Single_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)
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.
(3)
Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.
(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.
(5) In this example, Output Current is a 32-bit integer parameter requiring the Data Type field to be set to ‘DINT’ when creating the controller tag. If the parameter being read is a 16-bit integer, the tag Data Type field must be set to ‘INT’. When using a PowerFlex 700S or PowerFlex 750-Series drive, Output Current is a floating point number requiring the Data Type field to be set to ‘REAL’ when the creating 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 136
6-8
Using Explicit Messaging
Write a Single Parameter ControlLogix Controller Example Ladder Logic Program to Write a Single Parameter Using RSLogix 5000 Software, Version 15.00 or Later A Parameter Write 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 RSLogix 5000 software (any version) single write example on page 6-10. Table 6.D Example Controller Tags to Write a Single Parameter Operand
Controller Tags for Single Write Message
Data Type
XIC
Execute_Single_Write_Message
BOOL
MSG
Single_Write_Message
MESSAGE
Figure 6.6
Example Ladder Logic to Write a Single Parameter
Important: If the explicit message single write must be written continuously, use DPI Parameter Object Class code 0x93 or Host DPI Parameter Object Class code 0x9F and attribute A (10 decimal; see page 6-11). 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 137
Using Explicit Messaging
6-9
ControlLogix Controller – Formatting a Message to Write a Single Parameter Using RSLogix 5000 Software, Version 15.00 or Later Figure 6.7
Parameter Write 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 Source Element
CIP Generic Parameter Write 10 (Hex.) f (Hex.) 140 (Dec.) 1 (Hex.) Accel_Time_1 (4)
Source Length
2 (4)
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
Path (3)
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.
(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)
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-10).
(3)
Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.
(4)
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 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 138
6-10
Using Explicit Messaging
ControlLogix Controller Example Ladder Logic Program to Write a Single Parameter Using RSLogix 5000 Software, Any Version A 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. Table 6.E Example Controller Tags to Write a Single Parameter Operand
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Controller Tags for Single Write Message
Data Type
XIC
Execute_Single_Write_Message
BOOL
MSG
Single_Write_Message
MESSAGE
Figure 6.8
Example Ladder Logic to Write a Single Parameter