Home
RSView32 DDE and PowerFlex on Ethernet ControlNet
Contents
1. Automati Allen Bradley reli DODGE On Tule SOFTWARE p Bringing Together Leading Brands in Industrial Automation RSView32 Communicating to PowerFlex Drives on Ethernet ControlNet amp DeviceNet using DDE w CIP Messages February 26th 2003 Background RSView82 is a Windows based program that can be used to capture data monitor and control plant wide systems DDE Dynamic Data Exchange can be used to directly monitor or modify data from PowerFlex VFDs on Ethernet ControlNet or DeviceNet This means an intermediate PLC is not needed to collect the data before sending it to an RSView32 application Application Note Objectives This application note will show an example of creating a project in RSView32 creating tags to collect data from a PowerFlex VFD on Ethernet ControlNet or DeviceNet and using tags to display or modify VFD data in RSView32 This note applies to the PowerFlex 70 PowerFlex 700 and PowerFlex 700 with vector control using the 20 COMM E Ethernet 20 COMM C ControlNet or 20 COMM D DeviceNet communication adapters Conventions Used in This Application Note FYI Provides additional information that is useful but is not necessary to complete the application ATTENTION Identifies information about practices or circumstances that can lead to personal injury or death property damage or economic loss Attention statements help you identify a hazard avoid a hazar
2. Preliminary Rev Page 3 of 28 2 Create an RSView32 Project Open RS View32 Works and click on File New Create a name for the project Then click on the Open button Look in C ASview Examples t ex Dri eHMI example Project Name sample New Subdirector DDE Example Cancel Full Path c documents and setlings sjolie smuy mn Now you should have a window that looks similar to this DDE EXAMPLE R5V Project mJ x C Graphics E Alarms Data Lag Logic and Control Preliminary Rev Page 4 of 28 3 Create a DDE Topic Using RSLinx For this step go back to RSLinx Browse through your network until you see the drive you would like to create a topic for Click on DDE OPC then Topic Configuration as shown below 05 RSLinx Gateway RSWho 1 as File Edit View Communications Station DDEJ OPC Security Window Help 5 s een Linx Gateways Ethernet Flee 1784 PCD 1 DeviceNet m 130 151 9 177 PowerFlex 70 Po Hl 130 151 9 178 1756 EMET A 175 130 151 9 179 1403 Topic Configuration Alias Topic Configuration Active Topics TEems Communication Events Optimized Packets Server Diagnostics DDE Client Diagnostics OPC Group Diagnostics Update Contrallogix Tag Info Options Now a dialog box like the one below shows up Cl
3. Preliminary Rev Page 23 of 28 Button Configuration X General Action Up amp ppearance Down Appearance Button Label Start Fill EP Import lear Import Sold EJ Selected File Now you can create another button to stop the drive For sending a stop command to the PowerFlex 70 we must set bit 0 which is a decimal value of 1 Then for the release action we will set the logic command back to 0 Preliminary Rev Page 24 of 28 Button Configuration X General ction Up Appearance Drown Appearance Actions Press action Set amp PF NLogicCmdRet 1 Set tag ta 1 C Reset Set tag to 0 Repeat action C Toggle Press to toggle tag C Momentary On Press 1 Release 0 C Momentary Off Press 0 Release 1 Command Hun commmand EN Repeat rate secs 0 25 Release action amp PF NLagicCmdRef m E Creating forward and reverse buttons We will create another button for the forward command To send a forward command to the PowerFlex 70 we must set bit 4 a decimal value of 16 Again for the release action we set the logic command to 0 Preliminary Rev Page 25 of 28 Button Configuration X General ction Up Appearance Drown Appearance Actions Press action Set PF7O LogicCmdRet 18 Set tag ta 1 Reset Set tag to 0 Repeat a
4. 20 Preliminary Rev Page 2 of 28 1 Network Configuration Open RSLinx The Workstation is the computer on which the RSView32 application will be created Your drive could be on an Ethernet ControlNet or DeviceNet network We could talk to the drive directly through a driver configured on RSLinx or we could use ControlLogix gateway to jump to a drive on another network For example we could browse down to the PowerFlex 70 on DeviceNet by going through the ControlLogix backplane In the examples shown in this document we will be talking to the PowerFlex 70 on Ethernet IBL xl am Edit View Communications Station DDE OPC Security Window Help xl amp sa Bliz v Aubobrowse EE Browsing node 2 found H a Linx Gateways Ethernet 1784 PCD 1 DeviceNet AB ETH 1 Ethernet be H 130 151 9 177 PowerFlex 70 PowerFlex 70 480v 6 04 1756 DNB A Elf 130 151 9 178 1756 ENET A 1756 ELE Backplane 1756 A7 A m f an 1756 L1 A LOGIXS550 AppsLab_Clogix1 E 01 1756 DMB A 1756 DeviceNet Scanner D MEME m 01 1756 DMBJA i O2 1747 5DN Scanner Module fe E 10 1794 ADM DeviceNet Flex 1O Adapter 11 1794 ADM DeviceNet Flex IO Adapter E 12 1794 ADM DeviceNet Flex IO Adapter 21 PowerFlex 70 480v 8 04 hm 29 Unrecognized Device sE 31 Plus 5 254 33 E3 Plus 3 154 m ue i1756 DHRIO B 1756 DHRIO B For Help press F1 NUM 102121103 08 31 4
5. we named it PF70 For Application type RSLinx since that will be the source of our data For Topic type in the name of the topic that you created in RSLinx In this example the topic name is DDE PF70 Now you are done creating the node so click on the Accept button to accept the node Then close the Node dialog box lt lt Bi x Data Source Direct Driver OPC Server DDE Server lace Mame FF70 v Enabled Prey Application RS Lins Next Topic DDE_PF70 0 DDE Server AS Linx Preliminary Rev Page 8 of 28 5 Create a Tag in RSView Expand the System folder and double click on the Tag Database DDE_CIP_EXAMPLE RS Project Ioj x ES System a Channel ene Made 11 Scan Class d Tag Database od Tag Monitor E User Accounts K 3 Security Codes E Activity Log Seti E Activitu Lag we Startup EX Command Line Click Edit New Folder in RSView32 to create a folder for your drive s tags Now you can type in a tag name for the data you will be transferring to from the drive In this example the tag name is OutputF req For the tag type select Analog Data Type will depend on the data you are transferring to from the drive In this example the Output Frequency parameter in the PowerFlex 70 is an integer The minimum maximum scale and offset for the tag can also be changed In this example we will change the scale to 0 1 becaus
6. ble Preliminary Rev Page 18 of 28 ha Expression Expression True State C Invisible Visible 7 Specity Min Max Apply Delete Help Now click on the Expression button This brings up another dialog box Type in the name of the status tag you wish to use or choose the tag using the Tags button Then click Bitwise and select the amp operator Finally type in the decimal value for the status parameter that indicates the desired state In this example bit 1 a decimal value of 2 indicates that the drive is running The final expression for our example is shown below Now our indicator will be visible when bit 1 of parameter 209 is on and invisible when bit 1 is off Click OK to close the Expression window and click Apply then Close to close the Animation dialog box FFPIDmeestsl amp 2 4 H li Logical Relational Arthmoetic Functions T agi Cancel Help Now you can go into run mode to test the new indicator Preliminary Rev Page 19 of 28 10 Controlling the drive using the Register Object FYI Writing to the Register Object does not write to the EEPROM Instead it writes to volatile memory Therefore the Datalinks in the Register Object can be used for writing parameters that are changed frequently Several of the communication adapters support the Register Object Class Code 7 The Register Object can be used to w
7. ckets Keep DeviceNet connection open P Fal Unsolicited messages if data willbe overnatter Mew Clone Delete Apply Help Click on the Apply button to apply the changes to your new topic After applying the changes you can click on the Advanced Communication tab to verify that the communication path is correct Note that when we highlighted the PowerFlex 70 on Ethernet RSLinx automatically created the correct path because the PowerFlex 70 was highlighted Here is an explanation of the address AB ETH 1 0 130 151 9 177 that appears for our example AB ETH 1 gt Indicates we are using the Ethernet driver in RSLinx 0 gt Indicates we are going out the Ethernet card on the Workstation 130 151 9 177 gt Indicates the Ethernet IP address of the PowerFlex 70 on Ethernet Click on the Done button once you have verified the settings When RSLinx asks you to update the topic click Yes Preliminary Rev Page 7 of 28 4 Create a DDE Node in RSView32 Go back into RSView32 Expand the System folder and double click on Node DDE_CIP_EXAMPLE RS Project ES System Channel 1 Scan Class n Tag D atabase Tag Monitor Ex User Accounts K X Security Codes EE Activitu Log Seti E Activity Log PE Startup 2 Command Line gt A Node dialog box appears Select DDE Server for the Data Source Then give the new node a name In this example
8. ction C Toggle Press to toggle tag C Momentary On Press 1 Release 0 C Momentary Off Press 0 Release 1 Command Hun commmand EN Repeat rate secs 0 25 Release action amp PFF YO LagicLmdRer 0 mI iz We will create a separate button for the reverse command To send a reverse command to the PowerFlex 70 we must set bit 5 a decimal value of 32 Again for the release action we set the logic command to O Button Configuration X General ction Up Appearance Drown Appearance Actions Press action Set PF ONLogicCmdRef 32 Set tag ta 1 Reset Set tag to 0 Repeat action C Toggle Press to toggle tag C Momentan On Press 1 Release 0 C Momentary Off Press 0 Release 1 Command Hun commmand Em Repeat rate secs 0 25 Release action RPFFO LogicCmdRef 0 m xj Cancel Help Preliminary Rev Page 26 of 28 PFTO Display Creating MOP motor operated pot buttons to control the speed In the PowerFlex 70 we must set the parameter Speed Ref A Sel to MOP Level to control the drive with MOP increment and decrement buttons To change how fast the speed reference changes when pressing the MOP buttons adjust the parameter MOP Rate Create a button for MOP increment to increase the drive s speed To increment the MOP value we must set bit 7 a decimal value of 128 Again for
9. d and recognize the consequences Software Used This note uses RSView32 Works v6 30 16 and RSLinx v2 40 01 Build 16 Preliminary Rev Page of 28 Table of Contents RSVIEW32 COMMUNICATING TO VFDS ON ETHERNET CONTROLNET amp DEVICENET USING DDE W CIP 1 BACK GROUND 1 1 NETWORK CONFIGURATION UK TEE RE 2 CREATE AN RSVIEWS2Z ME paaa DRE MESE EKES 4 3 CREATE A DDE TOPIC USING RSLINX 2 5 4 CREATE A DDE NODE IN HSVIEWSO oie pae poop e cae Ene a URS aa ERES Dun RISE E SS RS DDMAP 8 5 CREATE A TAG IN en eee ee ee ene T Un E ERE MUN eee eee 9 6 CREATE A DISPLAY SCREEN IN RSVIEWS32 13 7 TESTING THE DISPLAY IN RUN MODE 15 8 CREATING A NUMERIC INPUT TO CHANGE A DRIVE PARAMETER 16 9 CREATING A DRIVE STATUS INDICATOR 18 10 CONTROLLING THE DRIVE USING THE REGISTER OBJECT
10. e Description Prin 00 Scale 0 1 Unita Secs Next asinum 3600 0 Offset o o Data Type Integer Data Source Device Memory Help Node Name PF E Address i 5140 1416 IE Alam Search For New Analog PF O LogicCmdRet Analog PF FO OutputFreg Analog 5 system Now open up the display that you ve previously created Click on the EY button to adda numeric entry input Select a spot on the display to create the numeric input click the left mouse button and drag to make a numeric input of the desired size Preliminary Rev Page 16 of 28 Tag Mame FF7O AccelTimet Ej Index E Default Date M Continuously Update Field Length g Format Floating Point Decimal Places Overflow Show exponent Show Show exponent Justification Leading Character Left C Center Right Blanks Zeroes select the tag name for the parameter that you wish to change In this example we chose to display 2 decimal places Click OK to close the Numeric Display dialog box Save the display Notice that in the example we added some more text to make the display screen look a little nicer eee E Pe output Pieg v UE Bo ceu ee ee lt Accel Time 1 BE c cc cs Once again we can go to run mode to test the numeric input To change the input highlight it and type in the ne
11. e cursor Iw Highlight Index E Cancel Help Preliminary Rev Page 21 of 28 select the tab labeled Action Verify that Command Run command is selected Then click on the B button next to the Press action window Button Configuration x General ction Up Appearance Drown Appearance Achons C Set Set tag to 1 C Reset Set tag to 0 C Toggle Press to toggle tag C Momentary On Press 1 Release 0 C Momentary Press 0 Release 1 Command Hun cammrmand Press actors Repeat action Em Repeat rate secs 0 25 Release action 34 Cancel Help Now another dialog box appears Command Wizard Step 1 of 2 Choose a command and click Mest to fill in its parameters Command Categories Commands 48 Most Recently Used Command Description All Commands and Macros Writes the value resulting from a System Abort Closes the specified item Graphics Account the User Accounts editor 59 Alarms Acknowledge Acknowledges an alarm or ago a 88 Data Log AcknowledgeAll Acknowledges all outstanding al Activity Upens the Activiby Log Setup ec PUE ActivityB Hides the activity bar ActivityB arn Displays the activity bar x Ld writes the value resulting from an expression to tag tag name expression Help Cancel Emeh select the sign and click Next Select
12. e the Output Frequency of the PowerFlex 70 is displayed with one decimal point The maximum will be 400 because the maximum frequency the PowerFlex 70 could ever output is 400 0 Hz The minimum will be 400 We also documented that the units are Hz Check Device for the data source type Preliminary Rev Page 9 of 28 201 Name PF7O QutputFreq Type Analog Security Cose Description 400 Scale 01 Units Hz Discard 400 Offset 0 Data iD efauit Hew Data Source Type Device Memory Help Made Scan Class A Address Search Description 5 system Now click on the button next to Node Name The following screen appears x Data Source oce DDE Server HSLinslbbE PFO Cancel Help Add Edit select the Node that you just created and click OK Now we must enter the Address of the data we are transferring to from the drive For Ethernet ControlNet and DeviceNet the address follows the format of a CIP type message Class Code Instance Attribute Data Type Code Preliminary Rev Page 10 of 28 The Class Code Instance and Attribute are specific to the communication adapter used and can be found one of the appendices of the communication adapter s user manual Please note that in the manua
13. ick New RSLinx creates a new topic in a name for your topic In this example we named the new topic DDE PF70 On the Data Source tab browse the network and highlight the drive you would like to communicate with This sets up the communication path for the DDE topic Preliminary Rev Page 5 of 28 DDE OPC Topic Configuration ajx Froject Default Topic List Data Source Data Collection Advanced Communication DDE PF Autobrowse Workstation WSJOSHLAOLIVE E Linx Gateways Ethernet H 1784 PCD 1 DeviceNet AB ETH 1 Ethernet l 30 151 9 177 PowerFlex 70 PowerFlex 70 480v 6 04 mH 130 151 2 178 1756 ENET A 1756 ENET A 130 151 9 179 1403 NENET Mew Clone Delete Apply Help Click on the Data Collection tab and select DeviceNet for Processor Type This sets up the data collection for a CIP type message Preliminary Rev Page 6 of 28 DDE OPC Topic Configuration l xl Project Default Topic List Data Source Data Collection Advanced Communication PF Processor DeviceNet Data Collection Mode v Polled Messages m5 amp c fi 000 Unsolicited Messages Cache Unsolicited Data Send all unsolicited updates Communications Tirne Out Secs Use Symbols Select Datebese v Limit Maximum Packets 20 v Use Maximum Packet Size Ethernet W Update Hotlink after a poke Optimize poke pa
14. ipe x Alarms x Data Log Logic and Control A new Display will be created P Untitled Display B x At this point you can insert a new object that will be used to change or display a drive parameter In the example we will create a numeric display to show the Output Freq for the PowerFlex 70 Preliminary Rev Page 13 of 28 Click on the ey button once to create a numeric display Select a spot on the display screen to create the numeric display then click the left mouse button and drag to create a numeric display of a desired size Once you lift your finger off of the left mouse button the following dialog box appears Now type in the tag name including the folder name or click on Tags to select the tag select the correct format for the parameter you are monitoring and setup the number of decimal places if there are any Choose floating point for the format in order to show any decimal places We will display one decimal place for the output frequency Numeric Display P X Expression FF utputFreq Logical Relational Arithmetic Bitwise Functions Tag Field Length Emme Floating Point Point Leading Character Justification Decimal Places IN Overflow Show exponent j Blanks Zeres Left Center Right Cancel Help Notice that in the Numeric Display dialog box you can add logical and arithmetic instructions to manipulate the tag data befo
15. l the class code is shown in hex but in the tag address in RSView32 it must be decimal In this example our communication adapter is a 20 COMM E The address breaks down as follows Field Value Description Class Code 15 is parameter object which means we are doing something with a parameter The parameter number in the drive that we want data for Parameter 1 is Output Frequency in the PowerFlex 70 iol xi Tag Mame PFFO O utputFreq Type Analog L Security B Descriptions Prev Prin 400 0 scale 0 1 Units Hz Next 400 0 Offset 00 Data Integer Data Source Type Device Memory Help Mode Name PF70 s Address fi 5 1 1 16 7 Alarm Search For NIU Mew 1 Analog PF7O LogicCmdRef Analog 3 Analoc This is a list of codes for the data types for RSLinx Preliminary Rev Page 11 of 28 For more details on the data types and DDE structure see DDE dynamic data exchange communicating to DeviceNet devices in the RSLinx Online Help Index When finished creating your tags click Close to close the tag database Preliminary Rev Page 12 of 28 6 Create a Display Screen in RSView32 Expand the Graphics folder and double click on Display DDE_CIP_EXAMPLE RS Project 15 x 6 Sustem ES Graphics m Library s Parameters TH Rec
16. or type in the name of the tag you created for the logic command and reference register object Then for the expression type in the decimal value that you want written to the logic command when the button is pressed In this example the start bit in the PowerFlex 70 is bit 1 so this is a decimal value of 2 Then click Finish Preliminary Rev Page 22 of 28 Command Wizard Step 2 of 2 Form tag name expression Tag PFzONLogicCmdR et P M Asunchronous Does nat wait Expressiors A Command Sting 2 Help Cancel lt Back The start button is a momentary type of control so for the Release action we must set the logic command back to O This will make the start button act like a momentary push button so that the start command is issued when the button is pressed Repeat Action is only used Button Configuration X General Action Up Appearance Down Appearance Actions Press action Set amp PF NLogicCmdRet 2 Set tag ta 1 C Reset Set tag to 0 Repeat action C Toggle Press to toggle tag C Momentary On Press 1 Release 0 C Momentary Press 0 Release 1 f Command Hun cammrmand Em Repeat rate secs 0 25 Release action 0 Bi xj Cancel Help Click on the Up Appearance Here you can type in a label for the button and select a color
17. ple we will write to the logic command of the PowerFlex 70 on Ethernet We will create buttons in RSView32 to start stop and change the speed Note that the logic command and reference in the 20 COMM E register object are packed into the same 32 bit integer where the logic command is the lower 16 bits and the reference is the upper 16 bits To make the example easier we will use the MOP motor operated pot function instead of writing the upper 16 bits of the register object to change the speed ref Preliminary Rev Page 20 of 28 lox Tag M ame JFFFO Logic amp md el Type Analog Security B _ Close Description Minin 21 47403646 S cale 1 Next axinniuirn 21 47453547 Offset lo Data Type Long Integer Data Source Device Memory Help Node Name PF 70 Address 744 532 mut Alarm Search For New Jm PF utputFreq Analog Analog C 3 PF7O LogicCmdRef Analoc Cy system Creating start and stop buttons Now we will create a start button Go back to the display screen and click on to create a button Then click and drag on the display screen to create a button of the desired size The following dialog box appears Button Configuration x General Action Up Appearance Down Appearance Style C Recessed Raised Raised Beveled Beveled atid hy 4 Captur
18. re it is displayed Be sure to save the new display screen Preliminary Rev Page 14 of 28 T Testing the Display in Run Mode select the Run Mode tab and click Run Project Expand the Graphics folder and double click on the name of the display screen that you created DDE CIP EZAMPLE R 5V Project ioj x Edit Mode C Sustem ES Graphics L ggf Display E Alarms Data Log X Logic and Control Hun Project Now the display that you created shows up in run mode To display a value for the output frequency start the drive Now a value appears re PF7O Display 7 I3 30 1 Preliminary Rev Page 15 of 28 8 Creating a Numeric Input to Change a Drive Parameter ATTENTION Using explicit messaging to make frequent changes to a parameter will eventually result in the failure of the devices EEPROM if so equipped If an application requires frequent changes of only a few parameters the parameters should be written using the adapter s Datalink function if available since this does not cause EEPROM writes to occur Now that you know how to create a tag and display a parameter value let s go through an example of changing a parameter Create a new tag This time select a parameter that is writable such as Accel Time 1 Again AccelTime1 has a scale of 0 1 because the PowerFlex 70 displays Accel Time 1 with one decimal point Ini xi Tag Name PF70 AccelT ime Type Analog Security Cos
19. rite to the logic command reference Datalinks and to read the drive status feedback and Datalinks using CIP messages When controlling the drive from RSView32 using CIP messaging there is no continuous communication connection to the drive To prevent a communication loss fault on the drive the communication adapter s Comm Fault Action and Idle Flt Action parameters can be set to Hold Last ATTENTION Risk of injury or equipment damage exists Comm Flt Action lets you determine the action of the adapter and connected drive if communications are disrupted By default this parameter faults the drive You can set this parameter so that the drive continues to run Precautions should be taken to ensure that the setting of this parameter does not create a hazard of injury or equipment damage ATTENTION Risk of injury or equipment damage exists Idle Action lets you determine the action of the adapter and connected drive if the scanner is idle By default this parameter faults the drive You can set this parameter so that the drive continues to run Precautions should be taken to ensure that the setting of this parameter does not create a hazard of injury or equipment damage When using the 20 COMM E or 20 COMM C the control timeout must be set before the drive will allow control with the Register Object This control timeout can be set by writing a value in seconds to Class 7 Instance 0 and Attribute 100 In this exam
20. the release action we set the logic command to 0 Button Configuration X General Action Up Appearance Drown Appearance Actions Press action C Sel F7O LogicCmdRef 128 Set tag to 1 Reset Set tag to 0 Repeat action C Toggle Press to toggle tag C Momentary On Press 1 Release 0 Em Repeat rate secs 0 25 Momentary Release action Press 0 Release 1 Command amp FF SLagicCmdHef 0 xj Cancel Help Create a button for MOP decrement to decrease the drive s speed To decrement the MOP value we must set bit 15 a decimal value of 32768 Again for the release action we set the logic command to 0 Hun cammrmand Preliminary Rev Page 27 of 28 Button Configuration X General ction Up Appearance Drown Appearance Actions Press action Set NLogicEmdRef 32768 Set tag ta 1 Reset Set tag to 0 Repeat action C Toggle Press to toggle tag C Momentary On Press 1 Release 0 C Momentary Press 0 Release 1 Command Hun cammnmand EN Repeat rate secs 0 25 Release action amp FF ULagicLmdRer 0 m iz Now our example looks like this Again to test the display we can go into run mode and click the control buttons Fe PF7 Display Preliminary Rev Page 28 of 28
21. w value that you want to be written to the drive parameter Preliminary Rev Page 17 of 28 9 Creating a Drive Status Indicator An indicator can be created in RSView32 to show drive status bits such as whether the drive is running or not In this example we will create an indicator to show if the PowerFlex 70 is running A tag has been created for parameter 209 Drive Status 1 iol xi Tag PFFO DriveStst Type Analog Security Close Description Prev Pirna 0 scale 1 Units Next asini E5535 Offset 0 Data Long Integer Data Source Device Memon Help Mode Name PF70 Address 15 209 1 016 Alam BILL NEM AN ee Mew Search For PF z lccellTimel Analog Sts 1 Analog j PF I ogicCmdHBef Analog PF O OutputFreg Analog Now click Ol to draw a rectangle in your display screen Click Attributes Fill Color from the RSView32 display menu to change the color of your indicator Then click Al to create some text on your indicator At this point your indicator might look something like this Select both the indicator and the text then click Arrange Group Next click Animation Visibility A dialog box like the following appears We will set this up to make the indicator visible when the drive is running and invisible when the drive is not running Check Visi
Download Pdf Manuals
Related Search
Related Contents
Handbeschichtungsgerät OptiFlex B - Ersatzteilliste WebFOCUS User Manual Gefen GTV-WVGA-LR User`s manual - Mr Handsfree 4 - E-THERM as Samsung M183ST User Manual Receiver Operating Instructions Grundig 48 VLE 5520 BG 48" Full HD Black LED TV Copyright © All rights reserved.
Failed to retrieve file