The text of a manual · part 12 of 33
PowerFlex ControlNet Adapters 20-COMM-C (Coax), 20-COMM-Q (Fiber) User Manual: Chapter 5, pages 84 to 92
Pages 84 to 92 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 84
5-10
Using the I/O
If parameter 82 - [Maximum Speed] is changed to 90 Hz, then: 90 Hz = 32767 Speed Feedback uses the same scaling as the speed Reference. TIP: For PowerFlex 700 drives with vector control, firmware 3.xxx or later, parameter 299 - [DPI Fdbk Select] enables you to select the feedback data coming from the drive over DPI. The default is ‘Speed Fdbk’ in Hz or RPM determined by parameter 079 - [Speed Units]. The data selection for parameter 299 is also displayed on the 1st line of the HIM and on DriveExplorer and DriveExecutive software screens in the drive status area of the screen.
PowerFlex 700S and PowerFlex 700L Drives with 700S Control The Reference/Feedback value is: 32767 = Base Motor Speed The base speed is set using drive parameter 4 - [Motor RPM]. To set a speed Reference/Feedback above base speed, a value greater than 32767 must be entered. For 16-bit processors, such as PLC-5 and SLC 500 controllers, the data requires manipulation to set a speed Reference above 32767 or below -32767. Please see the PowerFlex 700S AC Drives Phase II Control Reference Manual, publication PFLEX-RM003, in the Chapter 1 ‘Communications’ section. Then go to the ‘PLC 5 or SLC System’ subsection and see the ‘Reference/Feedback Programming’ sub-subsection.
PowerFlex 753/755 Drives The Reference/Feedback value is Hz x 1000 or RPM x 1000. Drive parameter 300 - [Speed Units] determines whether the scaling is Hz or RPM. The default scaling is Hz, where 0…60,000 equates to 0…60.000 Hz. When parameter 300 is set to RPM, then 0…1,765,000 equates to 0…1765.000 RPM. For 16-bit processors, such as PLC-5 and SLC 500 controllers, the data requires manipulation to set a speed Reference above 32767 or below -32767. Please see the PowerFlex 700S AC Drives Phase II Control Reference Manual, publication PFLEX-RM003, in the Chapter 1 ‘Communications’ section. Then go to the ‘PLC 5 or SLC System’ subsection and see the ‘Reference/Feedback Programming’ sub-subsection.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 85
Using the I/O
5-11
PowerFlex Digital DC Drives The Reference/Feedback value is: 25000 = Maximum Reference Speed The maximum Reference speed is set using drive parameter 45 - [Max Ref Speed].
Using Datalinks
A Datalink is a mechanism used by PowerFlex drives to transfer data to and from the controller. Datalinks allow a drive parameter value to be read or written without using an Explicit Message. When enabled, each Datalink occupies two 16-bit or 32-bit words in both the input and output image. Use adapter Parameter 08 - [Datalink Size] to determine whether the drive uses 16-bit or 32-bit words for Datalinks.
Rules for Using Datalinks • Each set of Datalink parameters in a PowerFlex drive can be used by only one adapter. If more than one adapter is connected to a single drive, multiple adapters cannot use the same Datalink. • Parameter settings in the drive determine the data passed through the Datalink mechanism. See the documentation for your drive. • When you use a Datalink to change a value, the value is not written to the Nonvolatile Storage (NVS) memory. The value is stored in volatile memory and lost when the drive loses power. Thus, use Datalinks when you need to change a value of a parameter frequently.
Datalink Scaling PowerFlex 70/700/700H Drives and PowerFlex 700L Drives with 700 Control When using RSLogix 5000 software, version 16.00 or later, Datalink scaling is done automatically. However, when using RSLogix 5000 software, version 15.00 or earlier - or when using a PLC-5 or SLC 500 controller - Datalink scaling is not automatic and uses whole numbers (INTs or DINTs). See the drive documentation to determine the unit resolution for the associated parameter Datalink. For example, PowerFlex 700VC drive parameter 3 - [Output Current] has a 0.1 unit resolution. Because Datalink scaling uses whole numbers, the Output Current value is multiplied by 10 in the adapter and then sent over the network. Suppose the actual Output Current value is 35.5 amps. Reading the associated parameter Datalink received by the controller, the value would be 355. By using ladder logic, divide the value by 10 in the controller to get the correct scaling. See the drive documentation to determine if the Datalink parameter is a 16-bit or 32-bit parameter.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 86
5-12
Using the I/O
PowerFlex 700S, PowerFlex 700L with 700S Control, PowerFlex 753/755, and PowerFlex Digital DC Drives When using RSLogix 5000 software, version 16.00 or later, Datalink scaling is done automatically. However, when using RSLogix 5000 software, version 15.00 or earlier - or when using a PLC-5 or SLC 500 controller - Datalinks require scaling in the following way. Parameters are either 16-bit or 32-bit integers or REALs. When the parameter is a 32-bit integer, the data needs to be copied using a COP command to a DINT tag. (Because PLC-5 and SLC 500 controllers do not support 32-bit integers, the data must be separated into two 16-bit integers.) When the parameter is a REAL, the data needs to be copied using a COP command to a REAL tag. See subsequent sections in this chapter for ladder logic examples. See the drive documentation to determine if the Datalink parameter is a 16-bit or 32-bit integer parameter, or a REAL parameter.
Using 16-Bit Datalinks to Read/Write 32-Bit Parameters This subsection only pertains to PowerFlex 70 (standard or enhanced control), PowerFlex 700 (standard control), and PowerFlex 700H drives which use 16-bit Datalinks. To read or write a 32-bit parameter using 16-bit Datalinks, typically both Datalinks of a pair (A, B, C, D) are set to the same 32-bit parameter. For example, to read parameter 10 - [Elapsed Run Time] in a PowerFlex 70 drive, both Datalink A1 Out (Parameter 310) and Datalink A2 Out (Parameter 311) are set to ‘10’. Datalink A1 Out will contain the least significant word (LSW) and Datalink A2 Out will contain the most significant word (MSW). 32-bit data is stored in binary as follows: MSW
231 through 216
LSW
215 through 20
In this example, the parameter 10 - [Elapsed Run Time] value of 6553.9 Hrs is read as ‘6553.9’ in Datalink A1 Out (Parameter 310) and Datalink A2 Out (Parameter 311). Datalink
Word
Parameter
Data (Hex)
A1 Out
LSW
10
0003
A2 Out
MSW
10
0001
Conversion Example: Parameter 010 - [Elapsed Run Time] = 6553.9 Hrs MSW = 0001hex = 0001binary = 216 = 65536 LSW = 0003hex =3 Engineering Value = 65536 + 3 = 65539 Parameter 10 Displayed Value = 6553.9 Hrs
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 87
Using the I/O
5-13
Regardless of the Datalink combination, Datalink x1 Out will always contain the LSW and Datalink x2 Out will always contain the MSW. In the following example, the PowerFlex 70 drive parameter 242 - [Power Up Marker] contains a value of 88.4541 hours. Datalink
Word
Parameter
Data (Hex)
A2 Out
MSW
242
000D
B1 Out
LSW
242
7F3D
Conversion Example: Parameter 242 - [Power Up Marker] = 88.4541 hours MSW = 000Dhex = 1101binary = 219 + 218 + 216 = 851968 LSW = 7F3Dhex = 32573 Engineering Value = 851968 + 32573 = 884541 Parameter 242 Displayed Value = 88.4541 Hrs
Example Ladder Logic Program Information
The example ladder logic programs in the sections of this chapter are intended for and operate PowerFlex 7-Class drives.
Functions of the Example Programs The example programs enable you to do the following: • • • •
Receive Logic Status information from the drive. Send a Logic Command to control the drive (for example, start, stop). Send a Reference to the drive and receive Feedback from the drive. Send/receive Datalink data to/from the drive.
Logic Command/Status Words These examples use the Logic Command word and Logic Status word for PowerFlex 70/700 drives. Information for PowerFlex 750-Series drives has been added to examples where applicable. See Appendix D to view details. The definition of the bits in these words may vary if you are using a different DPI drive. See the documentation for your drive.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 88
5-14
Using the I/O
ControlLogix Controller Example
You can use any of RSLogix 5000 software versions to create the ladder logic. These are described in separate sections below. If your version of RSLogix 5000 software supports drive Add-on Profiles, we recommend that you use this method.
Creating Ladder Logic Using the RSLogix 5000 Drive Add-on Profiles, Version 16.00 or Later Because the drive Add-on Profile automatically created descriptive controller tags (Figure 4.2) for the entire I/O image in Chapter 4, you can use these tags to directly control and monitor the drive without creating any ladder logic program. However, if you intend to use Human Machine Interface devices (PanelView, and so forth) to operate the drive and view its status, you will need to create descriptive user-defined Program tags (Figure 5.1) and a ladder logic program that will pass the Controller tag data to the Program tags. Figure 5.1
ControlLogix Program Tags for Drive Add-on Profile Ladder Logic Program Example
An example ladder logic program that uses the automatically-created descriptive Controller tags and passes their data to the user-defined Program tags is shown in Figure 5.2 and Figure 5.3. Note that the prefix for the drive Controller tags is determined by the name assigned when configuring the I/O (Chapter 4). Depending on the drive being used, see one of the following subsections for information on speed Reference and Feedback scaling.
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Subsection
Page
PowerFlex 70/700/700H and PowerFlex 700L Drives with 700 Control
5-9
PowerFlex 700S and PowerFlex 700L Drives with 700S Control
5-10
PowerFlex 753/755 Drives
5-10
PowerFlex Digital DC Drives
5-11
Page 89
Using the I/O
Figure 5.2
ControlLogix Example Ladder Logic Program Using a Drive Add-on Profile for Logic Status/Feedback
Figure 5.3
ControlLogix Example Ladder Logic Program Using a Drive Add-on Profile for Logic Command/Reference
5-15
Creating Ladder Logic Using the RSLogix 5000 Classic Profile, Versions 13.00…15.00 Because the RSLogix 5000 Classic Profile has been significantly improved upon by RSLogix 5000 drive Add-on Profiles, version 16.00 or later, we recommend using the RSLogix 5000 drive Add-on Profiles to take advantage of their benefits (more intuitive, time saving, and less likely to make ladder logic program errors). 20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 90
5-16
Using the I/O
Creating Ladder Logic Using the RSLogix 5000 Generic Profile, All Versions Drive and Adapter Parameter Settings The following drive and adapter settings were used for the example ladder logic program in this section. Device PowerFlex 70 EC Drive
PowerFlex 750-Series Drive (1)
20-COMM-C or 20-COMM-Q Adapter
(1)
Parameter 90 - [Speed Ref A Sel 300 - [Data In A1] 301 - [Data In A2] 302 - [Data In B1] 303 - [Data In B2] 304 - [Data In C1] 305 - [Data In C2] 306 - [Data In D1] 307 - [Data In D2] 310 - [Data Out A1] 311 - [Data Out A2] 312 - [Data Out B1] 313 - [Data Out B2] 314 - [Data Out C1] 315 - [Data Out C2] 316 - [Data Out D1] 317 - [Data Out D2] 545 - [Spd Ref A Sel] 895 - [Data In A1] 896 - [Data In A2] 897 - [Data In B1] 905 - [Data Out A1] 906 - [Data Out A2] 907 - [Data Out B1] 03 - [CN Addr Cfg] 13 - [DPI I/O Cfg] 25 - [M-S Input]
Value 22 (DPI Port 5) 140 142 100 155 101 102 103 104 140 142 100 155 101 102 103 104 Port 0: Port 6 Reference Port 0: Accel Time 1 Port 0: Testpoint Sel 1 Port 5: Anlg Out1 Hi Port 0: DC Bus Volts Port 0: Open Loop Fdbk Port 5: Anlg Out0 Data 2 xxx1 1111 xxx1 1111
26 - [M-S Output] xxx1 1111
Description Assigns 20-COMM-C/-Q to be used for the Reference. Points to Par. 140 - [Accel Time 1] Points to Par. 142 - [Decel Time 1] Points to Par. 100 - [Jog Speed] Points to Par. 155 - [Stop Mode A] Points to Par. 101 - [Preset Speed 1] Points to Par. 102 - [Preset Speed 2] Points to Par. 103 - [Preset Speed 3] Points to Par. 104 - [Preset Speed 4] Points to Par. 140 - [Accel Time 1] Points to Par. 142 - [Decel Time 1] Points to Par. 100 - [Jog Speed] Points to Par. 155 - [Stop Mode A] Points to Par. 101 - [Preset Speed 1] Points to Par. 102 - [Preset Speed 2] Points to Par. 103 - [Preset Speed 3] Points to Par. 104 - [Preset Speed 4] Assigns 20-COMM-C/Q to be used for the Reference. Points to Par. 535 in the drive. Points to Par. 970 in the drive. Points to Par. 90 in Port 5 (I/O module). Points to Par. 11 in the drive. Points to Par. 137 in the drive. Points to Par. 77 in Port 5 (I/O module). Node address for the adapter. Enables Cmd/Ref and Datalinks A…D. Configures the I/O Data to be transferred from the controller on the network to the drive. Configures the I/O Data to be transferred from the drive to the controller on the network.
In this example, the 20-COMM-C or 20-COMM-Q adapter/20-750-20COMM Communication Carrier Card is installed in Port 6, and a 24V I/O module is installed in Port 5. Also, Data In B2…D2 (Parameters 898…902) and Data Out B2…D2 (Parameters 908…912) are enabled, but not used.
TIP: Data In parameters are inputs into the drive that come from controller outputs (for example, data to write to a drive parameter). Data Out parameters are outputs from the drive that go to controller inputs (for example, data to read a drive parameter).
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 91
Using the I/O
5-17
Controller Tags When you add the adapter and drive to the I/O configuration (Chapter 4), RSLogix 5000 software automatically creates generic (non-descriptive) controller tags for them. In this example program, the following controller tags are used. Figure 5.4
ControlLogix Controller Tags for Drive Generic Profile Example Ladder Logic Program
You can expand the Input and Output tags to reveal the input and output configuration. Figure 5.5
ControlLogix Input Image for Drive Generic Profile Example Ladder Logic Program
PowerFlex 70 Drive 16-bit Speed Feedback and Datalinks
PowerFlex 750-Series Drive 32-bit Speed Feedback and Datalinks
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
Page 92
5-18
Using the I/O
Figure 5.6
ControlLogix Output Image for Drive Generic Profile Example Ladder Logic Program
PowerFlex 70 Drive 16-bit Speed Reference and Datalinks
PowerFlex 750-Series Drive 32-bit Speed Reference and Datalinks
Program Tags To use the Controller tags that are automatically created, you need to create the following Program tags for this example program. Figure 5.7
20-COMM-C/Q ControlNet Adapter User Manual Publication 20COMM-UM003F-EN-P
ControlLogix Program Tags for Drive Generic Profile Example Ladder Logic Program