Home
2080-QR002 - Rockwell Automation
Contents
1. 10 For the Cancel parameter click on the upper part of the blue box and double click on the input from the Micro830 you want to assign in this case Input 0 will be selected A UntitledLD POU I0 EM Dl odi ID EM OI OD I0 EM DI ff I0 EM DI D2 I0 EM DI 03 IO EM DI O4 riD IQ EMDI OS E I0 EM DI DB D EM DI D IO EM DI D8 121 11 To create the other variables for the function block double click on the bottom of the next blue box which will open the Local Variables O x ESI variable Selector Mame Global Scope Lacal Scope BUSLUCPAR ABS Micro830 LUntitledLD User Global Variables Micro830 Local Variables UntitledLD f System Variables Micro830 1 0 Micro830 3 d Hame Data Type Dimension Alias iM l T gt T gt gt M DBUSL 12 If the MSG MODBUS 41 variable is not showing click on the filter as shown below User Global Variables MicragB3Q Local Variables UntitledLO System Variables Micro830 Data Type Dimension 13 We now need to create variables for the other function block inputs Click on the light blue box to the right of the asterisk Type in LocalCfg Tab over to Data Type User Global Variables Micro amp 30 Local Variables UntitledLO System Variables Micro830 r gt MSG M DBLIS 1 122 14 Type in MODBUSLOCPARA See step 9 for where this data type assignment came from You will note as you begin typing
2. 19 To trigger the message drag and drop a Direct Contact to the left of the msg function block from the Toolbox as shown below Notice the Variable Selector will appear _ UntitledLD POU lh Pointer Rung lt gt Return gt Jump T Branch OF Direct Coil X9 Reverse Coil 8 Set Coil BF Reset Coil 4 F Direct Contact I HE yariable Selector 10 x Name Type Global Scope Local Scope d BOOL lice UntitledLD User Global Variables Micro830 Local Variables UntitledLD System Variables Micro830 1 0 Micro830 Defined Words 4 gt JP Pulse Rising Edge Contact 4b Pulse Falling Edge Contact TE Block t There are no usable controls in this group Drag an item onto this text to add it to the toolbox 20 In the Variable Selector click on the I O Micro830 tab 10 x Mame Type Global Scope Local Scope JBOOL f Micro830 I N A User Global Variables Micra830 Local Variables UntitledLD System Variables Micro930 E G Micto830 Defined Words Cx gt Hame Data Type Dimension Alias Comm gt BOOL jet gt at B In EM DO d BOOL x ID EM DO 1 BOOL E IB EM DD U2 BOOL x JU EM DD ugs BODL U EM DO 4 BOOL iU EM DCO 05 BOOL 21 Double click on the Input you need to trigger the message In this case select by double clicking JO EM DI 01 and the selector will close
3. i wD BEXBEO screen 1 Screen_1 uz mL MN ITOH 1001 Diagnostics Turn 2 1002 Alarm Banner in eso Object Palette k Entry Display i F B E c Multistate Numeric Display Indicator B 6 String Display List Indicator am El 78 Edit the indicator states by going to the Multistate Indicator Properties pane selecting the Appearance tab and clicking Edit Properties Configure the color and text of the states as shown below then click OK Properties hull Appearance States Curent mum j State Use Background Color for Border Iv Border Color round Fill Style Text Te REMOTE Fill Color Bp 80 Create a Numeric Input Enable object linked to tag DATA Drag and drop a Numeric Entry object from the Entry Object Palette onto your display omponent Pvc DesignStation Startup P c DesignStation Modbus_Example Settings Communication LELE Screens EE amp L i E E Axago Controls LU E M NX T 6369 1001 Diaanastics Turn on 1002 Alarm Banner Startup Screen 1 gt Object Palette Entry m gt Momentary Fush Maintained Push y Button Button Ln li hulistate Push Latched Pushy Button Biot LES BEE mmm wr Numeric Entry String Entry Properties In the Numeric Entry Numeric Entry
4. RS485 Connect the 1763 NCO01 adapter to the Mini DIN port on the Micro830 controller Connect the RS485 cable from the 1763 NCO1 adapter to the RS485 422 port on the PanelView Component 3 Confirm the controller is in RUN mode and that no faults exist 4 Load PanelView Component application C Allen Bradiay PanelView C600 Click File Manager Communication Portugu s Francais Italiano Month Minute Deutsch Espa ol ES ES ess Year Second System 2 26 Information Reset Terminal css Display Select your application and click Run 0 Allen Bradley PanelView C600 ON Pee Set As Startup 90 5 Test the application Press this maintained pushbutton and verify Output O turns on Verify that this numeric display is updating The number this display shows is the scan cycle count in the controller so it should be Tenn updating pretty fast 1 255 356 Switch the Micro830 keyswitch to RUN and the indicator should change to REMOTE Not Remote Goto Contig Select this numeric entry and enter an integer value and the value should update with the entered value 6 You have finished testing your application Chapter 6 Using Connected Components Workbench with PowerFlex Drives Hardware Used e PowerFlex 4 Class Drive e 1203 USB e Modbus Cable Flying leads to RJ45 Adding a PowerFlex 4 Drive to a CCW Project This chapter
5. MSG MODBLIS Function black multiplication operator MUS46 Function MUSSE Function naming conventions constants Function blocks Functions programs variables Meg operator nok equal operator MOT operator MOT MASE Function operators aain addition AND AMY TO BOOL AMY TO BYTE AMY TO DATE AMY TO DINT AMY TO DwuoRD AMY TO IMT AR Tea TRUT MSG MODBUS Search URL ms help CC W vidlcoll I5a5 acF lrsb TSa5y Connected Components Workbench MSG MODBUS Description This function block can be used to send a M 9 Here you will find the information on the inputs and outputs of the block Arguments Parameter Parameter Type Data Type Description BOOL If Rising Edge IN turns from FALSE to TRUE start the function block with the precondition that the last operation has been completed Cancel cancel Input soon TRUE Cancel the execution of the function block LocalCfg Input MODBUSLOCPARA Define structure input local device E MODBUSLOCPARA Data Type TargetCfg Input MODBUSTARPARA Define structure input target device MODBUSTARPARA Data Type E LocalAddr Input n MODBUSLOCADDR Define local address 125 words Output BOOL TRUE MSG instruction is finished FALSE MSG instruction is not finished Error Output BOOL TRUE When error occurs FALSE No error ErrorID Qutput UINT Show the error code when message transfer failed See MEG MODBUS Error Codes
6. Memory EF Communication Parts Modbus ATU kd L USB Port 9600 7 Date and Time Startup Faults Modbus Mapping Embedded 1 0 l Plug In Modules 2080 SERTSLISO0L 2080 IF4 3 Go to the Variables section and change the LocalCfg Channel to 2 gf m pft MSG_MODBUS_1 MSG_MODBUS LocalLfg MODBUSLOCPAR mn Target fa MODBUSTARPAR TagettigAdd UDINT 8443 TagettigNode USINT 100 BJ Local ddr MODBUSLOCADD 4 Build the project 130 Cabling the Controller to a PowerFlex 4 Class Drive This quick start will show you how to physically connect a PowerFlex 4 class Drive to the Micro830 1 Wire the Micro830 Modbus Plugin to the drive as shown below The PowerFlex 4 comes with a built in RS485 DSI port where Modbus Communication is available In order to communicate between the Micro 830 and PowerFlex 4 the Serial Communication port on the Micro830 will be configured as RS485 for the communication media Below is the basic connection between the Micro830 and PowerFlex 4 using the recommended Belden 3105A twisted pair cable Micro 830 dara 200000020000 PowerFlex 4 Oumar ID Bg 01 02 03 04 05 06 DOO O00 11 12 13 14 15 16 OOOOO D os on Lp TxRX D Pin 5 E amp 9 Tx Rx D Pin 4 F 1 7 3 1 xi s 1 IE T s T r Tul L I i gt AD DE Drive
7. Mieraa3 Defined Words Controller Hame Data Type Dimension Alias Initial alue off E ot ot ups MoG_MODBUS_1 MSG_MODBUS CopyOtLocalltg MODBUSLOCPAR Localltg MODBUSLOCPAR TargetLfg M DBLISTARPAR 4 LocalAddr MODBUSLOCADD E Logic Status LT Ok Cancel E 137 138 11 To interpret the data read by the message refer to Appendix A Reading 03 Logical Status Data table This table can be used to determine the meaning of each of the 16 bits of the WORD Start by adding a Rung as shown below UntitledLD POU gt Jump T Branch O Direct Coil Reverse Coil amp set Coil Reset Coil Pulse Rising Edge Coil J Pulse Falling Edge Coil 4 F Direct Contact 4 Reverse Contact 4PH Pulse Rising Edge Contact hH Pulse Falling Edge Contact I Block General oaa There are no usable controls in this group Drag an item onto this text to add it to the toolbox Device Toolbox Device Toolbox 34 Toolbox 12 Select drag and drop a Direct Contact from the toolbox to the start of the newly added rung UntitledLD POU Pulse Rising Edge Coil Ne Pulse Falling 4 Direct Contact 4PH Pulse Rising Edge Contact Jn Pulse Falling Edge Contact i Block Gee 70 There are no usable controls in this group Puno bed CAEDE Pp Device Toolbox 3j Toolbox 13 Once the Variable Selector displays under the Local Variables click on the
8. Properties pane select the b Appearance Format tab and configure the properties as shown here k Navigation Format Keypad Type Numeric Maximum Value 32 67 Minimum Value 32 766 Decimal Point Fixed Position Number of Decimal Places Numeric Field Width Group Separator In the Numeric Entry Properties pane select the Properties Connections tab and configure the Write Tag and Numeric Entry Indicator Tag to DATA t Appearance P Navigation k Format k Common Connections Write Tag Indicator Tag DATA Notify Tag 81 Add a Goto Config button to your display Drag and drop a Goto Config object from the Advanced Object Palette onto your display Micra amp 3 0 vAR Panel iew Component Puc DesignStation Startup P c DesignStation Modbus Example Settings Communication Screens vyGH BD gt Exage Controls TE ON MCCC NIE TD O3 E ee 1001 Diaanastics 1002 Alarm Banner ertup Screen 1B Object Palette kEmYy k Dismay k Drawin Tools Advance Clear All Alerts Close EeciMe Download Clear Enable Disable Goto Contig Security 82 Your display should look like the following Turn On Mat Remote Goto Contig 8 You are done creating your PanelView Component application Save your application Transferring an Offline PVc Application to a PVc Terminal Hardware Used PanelView Componen
9. m ES Programs 1 L Process SIM ng Local Variables E Global Variables Datalypes Function Blacks Local Variables The contents of the SIM FB Structured Text program is as follows SIM FB POU 1 For i D to 20 by 1 DO a For j 1 to 20 by 1 DO 3 Buffer j Bufrfer i 4 Buffer i B IN 5 END FOR 6 END FOR T B OUT Buffer 20 8i IF i 21 THEN 3 i D 10 j 21 11i END IF 12 10 Double click on Process SIM within the Project Organizer to start editing the Function Block Program 24 11 Function Block Diagram FBD Programming Toolbox is required for programming Connected Components Workbench SEF File Edit wiew Build Debug Format Tools Communications Window Help ial eee E NOR Rew eee Y Ys EETA B 7 U T TA E GE WW ILI Project Organizer 4x Process_SIM POU x Toolbox IX Name FBD_Program FBD b Pointer TIT Micro830 LY Variable i TF Block i Kole ole di 0 ml B E Programs om programming Li Process SIM lt gt Return Comment Ma Local Variables Label T Global Variables hee Rung ja Left Power Rail E i Programming workspace Right Power Rail _ Vertical Bar g K Function Blocks X Direct Coil S SIM_FB Reverse Coil gt Set Coil i Local Variables RF Reset Coil 4 F Direct Contact t Reverse Contact 4PH Pulse Rising Edge Contact 4H Pulse Falling Edge Contact There are no usable controls in
10. tag Output O k Navigation k Common Connections Write Tag Output 0 Indicator Tag Output 0 z Visibility Tag Po Create a numeric display object linked to tag Cycle_Count Drag and drop a Numeric Display object from the Display object palette to your display anent artup Pc DesignStation Madbus Example Settings Communication Tags Screens 06i BF 28xBu e Controls 44 LOL ee IHH Turn on 100 Diagnostics Ob ct Palette H Entry Display r3 Multistate Numeric Display Indicator ABC String Display List Indicator c5 d 76 In the Numeric Display Properties pane select the Format tab and configure Number of Digits to 12 Properties Numeric Display k Appearance Format In the Numeric Display Properties pane select the Connections tab and configure Read Tag to Cycle_Count Number of Digits 12 p Humber of Decimal Flaces Fill With No Fill Group Separator Negative Number Formats n Front Properties Numeric Display Appearance Format Common Connections Read Tag Cycle Count Visibility Tag Create a multistate indicator object linked to tag Remote_Status Drag and drop a Multistate Indicator object from the Display Object Palette onto your display nnentk itartup Pc DesignStation Modbus Example Settings Communication Tags Screens Secu
11. Eje USB Cancel 100 6 Notice the green background around the drive in the Project organizer meaning that you are now connected to the PowerFlex 4 using the 1203 USB Click on the PowerFlex 4 drive tab Project Organizer PowerFlex 4 1 X Mame Traffic Light PowerFlex 4 s qt Microg30 Disconnect A ROCKWELL DSOSEFIAB DF1 2X Loi m Programs a Global Variables Ed e T ES E d dai e Download Upload Parameters Properties Wizards Diagnostics Events Reset Manual Help ii Datatypes Lus m Function Blacks a PowerFlex 4 1 Mtn E 1 203 USB JSB to DSI Series A Revision 1 002 Status 3 Op e ration al Fort fi 1203 U5B 101 7 Select the Wizards as shown es PowerFlex 4 1 TX PowerFlex 4 2 1 Disconnect ROCKVWELL DS0 4EFISB_DF1 241 t e 9 Download Upload Parameters Properties Wizards Faults Reset Manual Help i IP 110M 50HFP Seres A Revision 5 00 Status Stopped m Feedback mine Hz PowerFlex 4 1 1203 055 102 8 Select the PowerFlex 4 Startup Wizard and then click Select hr E E Ae Available Wizards tup Wizards EU FawerFles 4 Startup Wizard E Cg Diagnostic Wizards Ls DPIOS Tech Support Wizard Data Logging Wizard Select Cancel A ae 9 The following screen will show Click Next to skip this welcome screen En PowerFlex 4 Startup Wizard 1
12. the name will populate Pay attention to the last half of the word to ensure you have the correct data type Press Enter User Global Variables Micro 30 Local Variables UntitledLD System Variables Micro830 gt gt g MSG_MODBUS 1 MSG_LMODBUS M Localia 15 Type in TargetCfg in the light blue box to the right of the asterisk Type in MODBUSTARPARA under data type Press Enter User Global Variables Micro 30 Local Variables UntitledLD System Variables Micro amp 30 gt mm Tot yet MSG MODBUS 1 MSG MODBUS Localltg MODBUSLOUCP4ARA WODBUSTARPRRA MN RN ERN 16 Type in LocalAddr in the light blue box to the right of the asterisk Type in MODBUSOCADDR under data type Hit Enter and then click OK on this window to go back to the function block view User Global Variables Micro830 Local variables UntitledLO System Variables Micro830 gt E g gf MSG_MODBUS_1 MSG_MODBUS Localltg MODBUSLOCPARA Targetltg MODBUSTSAPARA 1 MODBUSLOCADDA f Pf 123 17 Assign the appropriate variables to each of the Input boxes by clicking on top of the box for each and select the corresponding variable Untitledl D POU Target Ta I0 EM DO 05 P2 AI J P2 AI Li J P2 Al J P2 Al U3 LocalAddr Localltg MSG M DBLS 1 TargetChg E 18 Complete the selection to look like this 124
13. 0 0 Readwrte T 30 SV will pass the parameter value to the SetPoint of the IPIDCONTROLLER 1 Process SIM POU 31 Repeat Steps 28 30 for the parameters shown for IPIDCONTROLLER 1 IPIDCONTROLLER Parameter Local Variable Process SIM Feedback lU c Auto AUTO RUN MN as Gains PDLOANS 000000000000 mome one mteaa on O o C 0 0000000 8 32 After completing the IPIDCONTROLLER_1 should appear as shown below 33 Click on the Output of IPIDCONTROLLER_1 then connect to the B IN of the SIM FB 1 Process SIM PDU As shown 34 Then connect B OUT of the SIM FB 1 to the XIN of the AVERAGE 1 35 Connect a variable at N of the AVERAGE 1 and enter a sample cycle value of 5 Insert a TRUE variable for RUN 36 Then connect XOUT of AVERAGE 1 to the Process of the IPIDCONTROLLER 41 Gains uto Tu AT Para ErrorMo 37 Click on the Output of IPIDCONTROLLER_1 again then connect to FeedBack of IPIDCONTROLLER_1 38 The complete program should appear as follows Process SIM VAR Process_SIM POU 39 Finally build and save the Function Block Program Right click on the Micro830 icon in Project Organizer and select Build Project Organizer Mame FBD Program 40 At the Output window at the bottom center of the screen the build should show succeeded E ut
14. 2 J 4 ST ad Programs KH LInkitledL D Ti Local v 7 Double click the ladder icon ac Local v ac Global Variables 162 8 Open the Toolbox tab if it is not open Toolbox k a o gt Device Toolbox 3g Toolbox 163 164 9 Click and drop a Block on the rung The Instruction Block Selector window will now open connected Components Workbench File Edit View Build Debug Tools Communications Window Help a m id X DBB Y9 C B2 Bla JAP 3 d a Online gt m gt 2 98 M b I ib dh A Cde Timing mr mc RIPE TET Project Organizer tadder h Pointer f o Rung lt gt Return i gt Jump ERR E Instruction Block Selector N A T Branch i Project d dada amp c 4b 5 436c be3e 3083b35c8773 2080LC3015QwBA X Direct Coil i Local V Name 9 Category A Type Reverse Coil ac Global Variables iy pf Set Coil nr E Arithmetic xh Substraction of two or more F Reset Coil i z DataTypes mn Arithmetic Multiplication of two or more F Pulse Rising Edge Coil m Arithmetic xl Division of two or more inte lt Pulse Falling Edge Coil i Function Blocks z z S Arithmetic a 4 F Direct Contact Addition of two or more inte v b Parameters 10 Type in MSG in the cell under Name 4 Reverse Contact 4P Pulse Rising Edge Cont JF Pulse Falling Edge Con TF Block 22 Instruction Block Select
15. 7 gft gf select na INT T L REAL n L a REAL 1 5 b REAL ki Sue C REAL T 2 0 L REAL z AVERAGE 1 AVERAGE Po L 11 Finally build and save the structure text programming Right click on the Micro830 icon in Project Organizer and select Build Open i Build 54 12 At the Output window at the bottom center of the screen the build should show succeeded Show output From Build Linking for SIMULATOR ne a od DN cxi MICR US3D erroris O warningiz CONTROLLER O erroris O warning mnc ni Build End Build l succeeded O failed up to date O skipped Click on Save icon E to save your work 55 Testing the Function Block Program This section will show you how to test the Function Block Program created In continue to the steps in Creating New Function Block Program proceed with the steps shown below 1 In the Project Organizer right click on Micro830 and select Download to download the program Project Organizer Mame ST Project Open 2 From the Connection Browser select 2080 L30 16QWB and click on OK Connection Browser Autobrowse Refresh Workstation ROCEWELL D80AEF EZ aL Linx Gateways Ethernet AB VBP 1 1789 41774 Virtual Chassis jur 00 Workstation R SLinx Server cJ 16 Micro830 2080 LC30 160WE USE Fae 16 Micr 0 160 3 The following dialog box will appear
16. Backplane Slot Number fo Cancel 6 Click Next to continue verify the revisions then click Finish and Yes to initiate the update Firmware Revision Catalog Number 2080 LC10 120 B Sernal Number FFFFFFFF Curent Revision 1 2 on trol Select the new revision for this update H estictions 1 4 Summary DANGER The target module is about to be update with new firmware During the update the module will be unable to perform its normal control function Please make sure that all processes affected by this equipment have been suspended and that all safety critical Functions are not affected To abort this firmware update press Cancel now To begin the update now press Finish Catalog Number 2080 LC10 1 206 Seral Number FFFFFFFF Current Revision 1 2 Mew Hevisian 1 4 More Info Cancel Help x Are vou sure you want to begin updating Ehe target device 7 The next screen should show the download progress Progress Catalog Number 2080 LC10 1 2046 Serial Number FFFFFFFF Curent Revision 1 2 New Hevisinn 1 4 Transmitting update 2 of 6 block 31 of 2253 BEEE 8 If you get the following error message instead check to see if the controller is faulted or in Run mode If so clear the fault or switch to Program mode click OK and try again AB ASA DLL E X Failed ta update Firmware Either the target device does not su
17. Diagram Project Organizer Mame FBD Program Structured Text WI Mew LD Ladder Diagram P Mew FBD Function Black Diagram 22 5 Right click on UntitledFBD and select Rename Project Organizer Mame FBD Program AIT Micraa3u Pun m Programs B Li UntitledFE Scere DatalTyoes vp m Function Blocks 6 Type in Process SIM and Enter Ji Microga0 E ad Progra D Wa Upload fa inline Open Import Export Cut Copy Delete Rename ms Process SIM i Local Variables 7 Right click on the Micro830 in Project Organizer and from the popup menu select Import gt Import Exchange File as shown vlicraam al lc Open ore A p Build Upload Import d ir Import Exchange File Export k 8 The Import Export Window will appear browse for the file Micro830 Micro830 SIM FB 7z Select SIM FB and press Import to import the file Then close the window Note If you don t have SIM FB refer to the previous chapter for details on how to create this user defined function block Import Export Ll Import Exchange File ig Export Exchange File File Name Cab Files Micro830 Micra830 SIM FB 7z Select Elements to Import 4 SIM_FB Destination Controller Micro amp 30 Micro830 Import 9 The Function Block SIM FB will be imported into the Project Organizer 4 Micro amp 30
18. For more information on PowerFlex 4 address and node settings refer to drives Publication 22A UMOO1lI EN E ES ariable Selector ioj xl Mame Global Scope Local Scope TargetCig Node Micro830 LUntitledLD Local Variables UntitledL E System Variables Micrag3l I O Micro830 Defined words Controller 4 E Data Type InttalYalue Dimension Alias et E a cut LocalCtg MODBUSLOCPAR Locallfg Channel LINT LaocalLfg TrnggerTvpe LSINT Locallfg Cmd USINT LaocalLfag ElementCnt LINT EE Target fa MODBUSTARPAR TargetChg Addr LIDINT l TargetChg Node LISINT LocalAddr MODBUSLOCADD OF Cancel k E 128 Configuring the Embedded Serial Port on the Micro830 1 Forthe embedded serial port on the Micro830 click the Serial Port under Communication Ports and change the Driver to Modbus RTU If necessary change the other properties to match the screen shot below ooooQoQooocoQQQ HicroB30 No a n oococococooocoO Properties General F Memory Communication Porks Driver Modbus RTLI iv Serial Port USE Port Baud Rate 19200 iv Date and Time SSS Interrupts Parity None vl Startup Faults oe Modbus Mapping Unit Address 0 Embedded 10 Plug In Modules Modbus Role Modbus RTU Master Iw z S80 SERIALISOL 2080 IF4 129 2 Open the Advanced settings and select RS485 for Mode o gt General
19. Hep yag 9 4 7a amp 0 00 2 1 F A p jr H i oe ee Ao a a Mame Mewar T1_HEE_E Le uns Lu EDO R xogeo Sonar d Settings Communication Tags Screens Security Y OW WP ls le x a ale Alarms Recipes Languages Application Language English Linited States 1033 wu NEETMI i Screen agnostics Device 2711C T6T Screen 70 setup Communication settings to configure your PanelView Component as a Modbus Master to communicate to your Micro800 controller Select the Communication tab PanelView Component P c DesignStation Startup PVc DesignStation PVcApplicationl Communication Tags Screens Security Alarms Recipes Languages a i EP E Bx e Application Language English United States 1033 Protocol Serial DF1 C Ethernet Allen Bradley SLC PLC ow EEA Use Ethernet Encapsulation 7 PanelView Component Settings Controller Settings Sat by Name j Ascending gt Device 2711C TST 71 72 Select Modbus from the Serial Protocol dropdown list PanelView Component PVc DesignStatian Startup Pvc DesignStation PvcApplicationi Communication vyGHRP 2B xe Load Last Saved Driver Configuration Protocol Serial DF1 C Ethernet Modbus h P a Modbus Ascil LIE Modbus Unsolicited TIWAY Host Adapter TIWAYT TIWAY Host Adapter UNILI
20. Stop debugging by clicking on the stop button on the top menu To use the WORD value read from the drive in the previous step a copy of this value needs to be assigned to a new variable using a 1 gain function block In the Toolbox click and drag a Block as shown below to the end of the rung IO EM DI 01 S o 134 6 Type 1 select the 1 gain function block and click OK Instruction Block Selector 1 gain Category 1 gain Arithmetic cef Assignment of one variable to Iv EN ENO 7 Anew 1 gain function block has now been added Double click on the bottom of the input box to add the desired input to be copied 135 8 Once the Variable Selector opens select the local variable LocalAddr 1 as shown below and click OK Note LocalAddr 1 is the variable holding the WORD value read in step 4 EB variable Selector EP Dimension z MSG_MODBUS_1 MSG_MODBUS CopyOfLocalltg MODBUSLOCPAR LacalCfq M DBLSLOCPAH TargetCfg M DBLISTARPAH MODBUSLOCADD 9 Double click on the output box 136 10 Create a new local variable as shown below For this quick start type Logic Status as the name of the variable select WORD as its data type and click OK Variable Selector lal x Mame Type Global Scope Local Scope Logic Status JBOOL Micro830 JUntitledLD User Global Variables Micro830 Local Variables Untitled D System Variables Micro630 0
21. User Global v anables Micrag3t Local variables gt BODL M EM DO n BOOL EM DO n1 BOOL EM DO n2 BOOL EM DO n3 BOOL EM DO 04 BOOL EM DO n5 BOOL EM DI 00 BOOL I0 _EM_DI_0 IG_EM_DILO2 BOOL EM DI 03 BOOL EM DI 04 BOOL EM DI 05 BOOL 126 22 After assigning the Direct Contact the ladder now looks like this Double click bottom of the box on one of the Local Variable Inputs to Display the Variable Selector IO EM DI 01 LocalCtg AnyStructure 127 23 Once the Variable Selector window appears complete the following steps a Expand the Local Variables created LocalCfg TargetCfg b You may have to use the scroll bar at the bottom of the variable tab to see the Initial Values For ease of use you can move the Initial Value column by dragging the top of the column and moving it next to Data Type c Setup the variables by clicking on the initial value field for each variable and enter the values shown in steps i ii and iii For more information on the initial values refer to the message instruction CCW Help file i Channel 2 2 is for the embedded serial port and 5 9 would be for different slot numbers the serial port could be located li Cmd 3 3 is for read holding registers and 16 would be for writing multiple registers For a complete list and description of all the commands refer to the message instruction CCW Help file iii
22. Variables Untitled D System ariabl MSG_MOODBUS_1 MSG_MOODBUS zm Localltg MODBUSLOUCPAR Targetltg MODBUSTARPAR Laocal amp ddr MODBUSLOCADD 21 Assign the appropriate variables as listed below by clicking the top half of the box and selecting the variable UntitledLD POU IO_EM_DO_01 I EM DO n2 I EM DO n3 I EM DO n4 EM DO n5 Local amp ddr LocalL fq MSG MODBUS 1 TargetCtyg m 169 22 Complete the selection to look like this 23 Now to trigger the message the addition of a direct contact will be used 24 Click hold and drop the direct contact to the left of the msg function block from the Toolbox UntithedLD POU LintitledL D V AF uL Variable Selector User Global Variables Micro830 Local Variables UntitledLD Syste 170 25 Click the I O Micro830 tab Variable Selector BEEN ojx E o e ap l 26 Click and hold the right side of the Name column This changes the grouping and order of the Digital Inputs and Outputs 27 Double click on the Input you need to trigger the message After the double click the selector will close and the program ladder will open BODL 171 172 IO EM DI 01 LocalCtg AnyStructure 28 Set up the parameters as shown below by clicking on the Initial Value box for each variable You may have to use the scroll bar at the bottom of the
23. all parameters to defaults eT 104 11 In this quick start we will use the default Motor Data Click Next Ap Powerflex 4 Startup Wizard 3 of 10 i x Wizard Step Motor Data y EJ Welcome w Ez Reset Parameters A vE Motor Data Motor OL Current mps Stop Brake Mode Direction Test Ez Ramp Rates Speed Limits ie Control j Motor MP Hertz 60 Hz Digital Inputs Relay Output Pending Changes Motor NP volts 230 Volt Cancel Back Next gt Finish gt gt A 12 Select as shown and then click Next Ap PowerFlex 4 Startup Wizard 4 of 10 X Wizard Step Stop Mode Brake Type w Ez Welcome y Reset Parameters w Ez Motor Data o bled v Ez Stop Brake Made DB Resistor Sel izable Direction Test Ramp Rates Speed Limits Stop Mode Speed Control Digital Input DC Brake Level fo Amps Relay Output Pending Changes DC Brake Time foo Secs Cancel Back M ext gt Finish gt gt te 13 To complete the Direction Test follow these steps a Click wy to clear the present fault F048 if showing b Enter the desired reference For this quick start we ll use 30Hz and then click MOD c A speed reference acknowledgement window will appear to accept a parameter change Click Yes d By now the motor should be rotating at reference speed Verify that the motor direction of rotation is correct and then select the Yes radio button e You a
24. and select RS485 for Media p General Memory B Communication Forts Modbus RTU hal USB Port 9600 Date and Time Startup Faulks Modbus Mapping eee Embedded I O Plug In Modules 2080 SERIALISOL Z BD IF4 TIEF z M5G_MOCBUS_1 MSG MODBLS LocalCfq e MODBLISLOCPZ Targetcfg o MODBLISTARPZ LocalAddr MODBUSLOTAL a 4 Build the project 174 Cabling the Controller for a 900 TC Temperature Controller and Testing the Controller Program This section will show you how to configure and program the Micro830 controller with the 2080 SERIALISOL and the 900 TC temperature controller 1 For this section program the 900 TC as listed in the Simple Temperature Control Connected Components Building Block Publication CC QS005A and Temperature Controllers User Manual Publication 900 UMOO07D Follow the steps below for the 900 TC communication setup e Communication protocol Mad e Communications unit no 17 This parameter sets a unique unit number for each temperature controller letting the host identify the temperature controller during communication When two or more temperature controllers are used do not use the same unit number This building block uses unit numbers nodes 17 24 e Communication baud rate 4 6 kbps e Communications parity NaN e Send data wait time cH 175 176 2 Follow the basic wiring connections shown below select the appropriat
25. name Save as type Cancel E 10 To use the SIM FB in a future project create a new project and right click on Micro830 under Project Organizer select Import then Import Exchange File Project Organizer Mame Prajeck4 Open Build Download Upload online Change LB Import Exchange File 11 Click Browse navigate to the folder location select the file and click Open Import Export Select Import Exchange File E x Look in Co Lab Files Ow e E Controller MicroS3s0 Micro830 5IM_ FB 7z Caontraller Micra amp 30 Micra830 TRAFFIC CONTROLLER FB 7z Recent Deskto p My Documents hu Computer Se TUUS File name Controller Micro830 Micro830 5IM_FB 7z gt Places Files of type Exchange files 72 zip L ancel E 12 With SIM_FB checked click Import and verify in the Output window that the import was successful Import Export O lt mys sm F8 Show output From Import Export Start importing Importing pous SIM FB Import was successful Finish importing data 13 Click Cancel to close the Import Export screen Chapter 3 Creating a New Function Block Program Creating a New Function Block Programming This section will show you how to create a new function block program In this function block program the PID standard function block will be used A User Defined Function Block will be imported to simulate the pro
26. of 10 l xX Wizard Step w Ez Welcome Reset Parameters Motor Data Stop Brake Mode Direction T est Ramp Rates Speed Limits Speed Control Digital Inputs Relay Output Pending Changes The PowerFles 4 Startup Wizard assists in setting commonly used drive parameters kis recommended that the wizard steps be performed sequentially Tip Hovering the cursor over an icon d or test box on a wizard page Will display additional information as a tip message Wizard Revision 3 0 13 mm Nest Finish gt gt d 103 10 Click on Reset Parameters E PowerFlex 4 Startup Wizard 2 of 10 l X sues el sis Reset Parameters w Ez welcome wE Reset Parameters F Clicking the Reset Parameters button will cause parameters ta be changed immediately set to Motor Data EU defauts Stop 7 Brake Mode Direction Test Reset the parameters when using a drive that may have unwanted parameters set This will reset the drive Ramp Hates Speed Limits to default values based on the input supply selected and provides a known starting point all parameters Speed Control at default settings for future edits If you want to keep the existing parameter settings then this step can Digital Inputs be skipped by clicking Next gt Relay Output Pending Changes Reset Parameters Parameters Reset Unknown Cancel Back M ext gt Finish gt gt Me 10 Click Yes and then click Next Confirmation ued Reset
27. similar to this LocalAddr 2 is the process variable LocalAddr 3 is the lower status word LocalAddr 4 is the upper status word and LocalAddr 6 is the set point UntitledLD AR Microg30 UntitledLD POU Name Logical Value Physical Value Lock Initial Value Data Type gt et ge cue gt gt MEG MODBLS 1 i T TT MS MODBUS LocalCfg jid iii T MODBUSLOCPY TargetCfq TT T TC MODBLUSTARPE RETE o e TL PIN LEER Lacal ddr 1 n MIA WORD Local4dar 2 az MIA WORD Lacal amp ddr 3 758 MIA WORD Localdddr 4 24576 MIA WORD Lacal amp ddr 5 D MIA WORD Local amp ddr 6 75 N A WORD Lacal amp ddr 7 D MIA WORD 179 www rockwellautomation com Power Control and Information Solutions Headquarters Americas Rockwell Automation 1201 South Second Street Milwaukee WT 53204 USA Tel 1 414 382 2000 Fax 1 414 382 4444 Europe Middle East Africa Rockwell Automation Vorstlaan Boulevard du Souverain 36 1170 Brussels Belgium Tel 32 2 663 0600 Fax 32 2 663 0640 Asia Pacific Rockwell Automation Level 14 Core F Cyberport 3 100 Cyberport Road Hong Kong Tel 852 2887 4788 Fax 852 2508 1846 180
28. the Protocol Control properties with the following values oe EN If you are using RS485 you can set the Media property to RS485 and leave the remaining settings the same 4 You have completed configuring your serial port for Modbus Build and save your project and then download it to your controller Create an Offline PanelView Component Application 1 Add a PanelView Component device to your project From the Device Toolbox click and drag a PanelView Component device into your Project Organizer connected Components Workbench SE File Edit View Build Debug Tools Communications Window Help f Cycle Timing ms _ E itus BR id amp 8a O S A aX Zio gt SBR SES Device Toolbox Project Organizer Name ModbusRTU_HMI_E HH Micro830 Catalog N Controllers xogqjoo g xoqoo saad mem a DataTypes L m Function Blocks 4 E Output Ready A 68 2 Launch PanelView Component Design Station connected Components Workbench File Edit View Build Debug Tools Communication Hga dd 93a i amp 0 8 8 3 Project Organizer Mame ModbusRTU HMI E ATTI Micro830 m Programs i Global Variables i em j TT v DataTypes Loss m Function Blacks S PanelView Component Double click the PanelView Component icon in the Project Organizer The PanelView Component Design Station Startup pa
29. this group Drag an item onto this text to add it to the toolbox Project Organizer i gt P Device Toolbox Dione 12 The following program logic will be developed Average PID Function Function Block Block SIM_FB Function Block e The Average Function Block will be used as the sampling rate for the analog input simulation e The PID Function Block will be for producing a Control Value CV that results in the Process Value PV tracking the Setpoint Value SV e The SIM_FB is a simulator block using the concept of FIFO delaying the feedback to the PID function block 25 13 Double click on the Local Variables in the Project Organizer under the Process_ SIM Project Organizer 14 Enter the following variables into the Process_SIM VAR Tab Upon completion the variables table should be as follows Process SIM VAR F Process SIM POLI Name Data Type Dimension Alias Comment Initial Yalue pt gt br bet pt gt 15 e NEN EE CNN FE REAL E 0 0 F PIDi G GAIM PID PIDL_AT AT PARAM AUTO RUN BOL IMIT BOOL PID1 AT EXEC BOOL 15 Double click on the Process SIM the programming workspace will appear Project Organizer 16 Select Block from the Toolbox and drag into the Programming Workspace Toolbox 5 FBD M Painter variable Em Black Jump Return B Comment ali TN bt Arithmetic Tar Substraction of tw
30. variable tab to see the Initial Value column For ease of use you can move the Initial Value column by click and holding the top of the column and moving the column to where you want it These settings are based on the 900 TC settings used and found in Publication CC QS005A EN P Information on the message variables can be found in the CCW Help UntitledLD VAR Micros30 UntitledLO POU Name Initial alue Data Type Dimension Alias gt ot ge bri vat MSG MODBLIIS 1 TT MSG MODBLUS LocalCfg e MODBLISLOCPZ LacalcFg Channel 5 LIIMT LacalCFgq TriggerTvpe 0 USINT LacalCFg Cmd 3 LISIMT LocalCfg ElementCnt 10 LIIMT BE tarsetcta x MODBUSTARP TargetCFg Addr 1 LIDIMT Target CF Mode 17 LISIMT E ee ee NNI 29 Build and download the program Configuring the Embedded Serial Port on the Micro830 1 For the embedded serial port on the Micro830 click the Serial Port under Communication Ports and change the Driver to Modbus RTU If necessary change the other properties to match the screen shot Microd30 Properties General be Memory E Communication Ports Driver s Serial Port i USB Port Baud Rate ba Date and Time Interrupts Parity bs Starkup Faulls bs Modbus Mapping Unit Address Embedded 10 Plug In Modules Modbus Role 2OBO SERIALISOL 2080 IF4 Modbus RTU 9600 None c Modbus RTU Master 173 2 Open the Advanced settings
31. will show you how to add a PowerFlex 4 Class Drive to a CCW Project 1 Review the Getting Started Guide Pub 2080 QRO001B EN P to learn how to create a new project and add a controller Once that s done the screen should look like the following and click on Device Toolbox File Edit View Build Debug Tools Communications Window Help GV REN VR Mewes wT H gp E NR a Project Organizer AX Micro830 w x Device Toolbox 4 x Name Project2 x Proaram M Faul 1 Micro830 rogram ajor Fault Discover TIT Micro830 Run Controller Mode Connect a t taos O Ly Programs Fine 2080 LC30 16QWB DE e 3 Controllers x Global Variables C 9 ooooocooocoo ATT 2004 c10 122w DataTypes on Micro830 mam m Function Blocks at AN een 41 TIT 2080 LC10 12QBB TIT 2080 LC10 12QWB D TIT 2080 LC30 10QVB 2080 LC30 10QWB s 0020000000000 iH b TIT 2080 LC30 16AwWB Properties General X TIT 2080 LC30 16QVB Memory Vendor Name Allen Bradley m Communication Ports TIT 2080 LC30 16QWEB Serial Port Catalog ID 2080 LC30 16QWB USB Port TIT 2080 LC30 24QBB Date and Time Firmware OS Rev 1 3 i Interrupts TIT 2080 LC30 24QVB Startup Faults Name Modbus Mapping TIT 2080 LC30 24QWB Embedded I O Description i Plug In Modules TIT 2080 LC30 48AWB lt Empty gt 3 lt Empty gt Boot Revision 0 0 TIT 2080 LC30 48QB
32. 5IM FB PULI Mame Project For i 0 to 20 by 1 Do For j 1 to 420 BY 1 Di Butter J Butfer i Buffer i B IN PMicraa3 m Programs 1 a 3 g 5 6 8 3 pien END FOR e Global Variables END FOR B OUT Buffer 20 MEL Paral ypes IF i 21 THEN L 0 E m Function Blacks i lu 1 12 SIM FE 11j END IF 12 e Local Variables 5 Below SIM_FB double click on Local Variables and enter in the following B IM REAL WarInput B QLIT REAL WarQutpuk v DINT Mar j DINT War 2 F Buffer REAL Mar 1 20 aaa Build ra Download If you get any Build errors correct the errors and Build again until you succeed with no errors 7 Under Project Organizer right click on SIM FB select Export and then Export Program Project Organizer Mame Prajeckl ATTI PMicraa3t nnnnnnnnn m Programs ee c Global Variables dd Dn DiabaT BS EE DataTyp ATTA had B L i l d Download Upload online Change Open Parameters Import 9 Ex pa rE Pra gram 8 Click Export Import Export 9 Browse to the saving folder location and click Save Gave As Save in Co Lab Files Om e E Recent eskto p My Documents rm Fr hu Computer hy Network Places Controller MicroS30 Micro830 TRAFFIC CONTROLLER_FE 7z Controller Micrag3l MicraB30 SIM FB 2 Sever ip files 7z File
33. B TIT 2080 LC30 48QVB TIT 2080 LC30 48QWB m E ui Drives Output 4 xX Show output from M 3 MEL 1 a S SSS SSS SSS SSS E J Device Toolbox Be Toolbox k 94 2 Expand the Drives folder within Device Toolbox Device Toolbox PowerFlex 4 un 3 PowerFlex 40 m I PawerFlex 400 PowerFlex 40F Su PawerFlex 400P LE PawerFlex 400M PowerFlex 4IM 2 DataTypes m Function Blacks EI PowerFlex 4 1 Note The default name for the drive is PowerFlex4 1 to change this just right click on it and select rename to enter the desired name Also notice the asterisk next to the project name and the drive that indicates the project has been modified and needs to be saved Once the project is saved the asterisk will disappear 95 4 Double click on the PowerFlex 4 1 icon and you should see the Device Configuration screen Micras30 xX PowerFlex 4 e Connect Disconnected rt t ES e V al Download Upload Parameters Properties Wizards Manual Help E PowerFlex 4 1 1P 110M 25HP Sees A Revision 5 00 Status Feedback PowerFlex 4 Connect to a PowerFlex 4 Drive using a 1203 USB Device This section will show you how to add 1203 USB to the CCW project to be able to connect to the PowerFlex 4 Drive added in the previous section 1 Once you are on the PowerFlex 4 Device Configuration window c
34. D or USB storage devices 85 Configure the File Transfer as shown below and then click Transfer File Transfer Wizard From Internal Storage Pvc DesignStation File Application Modbus Example To My Computer Select file destination Browse to the root of your flash media and then click Save This will save the PVc application file CHA to your flash media ax Save in KINGSTON E F c m Desktop My Documents Sr My Computer File name Modbus E xample X Save N Save as type CHA Files cha Cancel LZ 4 Remove the flash media from your computer and insert into PanelView Component terminal 5 Copy the application from your flash media to your PanelView Component Click File Manager Allen Bradley PanelView C600 Communication Portugu s Francais Display Italiano Month Minute Deutsch Espa ol etz0 Year Second System ams Ee Information Reset Terminal 2011 26 Select USB or SD as your Source Then click Copy to copy the application to the PVc s internal memory Allen b vadiey PanelView C600 purce T RH vodbus Example A Set As Startup Copy Recipe Copy Alarm History Startup Application 87 Select Internal as your Source and you ll notice that your application has been copied to your terminal Allen Bradley PanelView C800 dE File Manager Source To Wodbus_ Example Co
35. Debug Toolbar 12 Then from the Micro830 tab click on Disconnect to go offline Micro830 Process SIM VAR V Process SIM POU SIM FB POU Program Major Faulk Mat Faulted 2 Micro830 EDU Connected Mode Run Controller Made Run Remote t 2 3 8 2080 LC30 16QWB Download variables Program Chapter 5 Using Connected Components Workbench with PanelView Component Using Connected Components Workbench with PanelView Component Before you begin you should already have a general knowledge of how to use the Connected Components Workbench software and how to create an application for you Micro800 controller If you do not have this knowledge please review the Micro800 and CCW Getting Started Guide Publication 2080 QRO001B EN P The recommended Modbus RTU network topology for a Micro800 and PanelView Component is to configure the Micro800 controller as a slave device and the PanelView Component as the master device Therefore that is the configuration that will be discussed and configured in this guide Mapping Variables to Modbus Registers The Micro800 supports the following Modbus registers Address Range DataType Access X Output Coils 000001 065536 Read Write Input Coils 100001 165536 Read Onl Input Registers 300001 365536 Word 16 bit Read Only Holding Registers 400001 465536 Word 16 bit Read Write 1 Create a new CCW project for your Mi
36. LASH and click Next ControlFL45H Untitled Control FLASH 9 00 015 Welcome ta Control FLASH the firmware update tool ControlFLASH needs the following information fram you before it can i begin updating a device Con ir al 1 The Catalog Number of the target device e The Network Configuration parameters optional 3 The Network Path to the target device 4 The Firmware Revision For this update View Lag 3 Select the catalog number of the Micro800 that you are going to update and click Next Catalog Number Enter the catalog number of the target device 20801 C1 0 1 20 E ZLUBU LUTU T 244 2U80 LO10 1 20D Control SEL ee mmm 2060 0 ALE 2080 L030 1 OQ VB 2080 L030 1 00E 2080 L030 1 BAW 2080 LC30 16QVB 2080 LC30 1 QW 2080 LC30 24QBB 2080 LC30 24QVB 2080 LC30 24QWwWB 2080 LC30 48 amp wB 2080 LC30 48QBB lt Back Cancel Help 4 Select the controller in the browse window and click OK ControlFLASH Untitled Select the 2080 LC10 120WB device to update and click OK v Autobrowse E Workstation ROckWELL D amp 04EF flo Linx Gateways Ethernet Ate L2PEMe10 30001 DFI NE ra MicroS10 2080 LC10 12Q0wEB 2080 LC10 rl AB VBP 1 1789 41774 Virtual Chassis Cancel 5 If you get the following screen Micro810 only leave the Slot Number at 0 and click OK Slot Number l You must specify a Slot Number corresponding to the selected device based on
37. Micro800 and Connected Components Workbench Application Guide Connected Components Workbench Rockwell j en Bradiley Rockwell Software Automation Table of Contents Chapter 1 Flash Updating Micro800 Firmware Chapter 2 Importing and Exporting User Defined Function Blocks Chapter 3 Creating a New Function Block Program Chapter 4 Creating a New Structured Text Program Chapter 5 Using CCW with PanelView Component Chapter 6 Using CCW with PowerFlex Drives Chapter 7 Using CCW with Temperature Controllers N Requirements Hardware Requirements Micro810 2080 LC10 12O0WB Micro830 2080 LC30 16QWB Micro830 Plug In 2080 SERIALISOL Standard USB Cable Software Requirements Connected Components Workbench CCW Release 1 0 RSLinx v 2 57 Chapter 1 Flash Updating Micro800 Firmware Flash Updating Micro800 Firmware This chapter will show you how to flash update the firmware in a Micro800 controller using ControlF LASH ControlFLASH is installed or updated with the latest Micro800 firmware when Connected Components Workbench software is installed on your computer 1 First verify successful RSLinx Classic communications with your Micro800 controller via USB using RSWho Micro810 12 pt uses the 12PtM810 xxxxx driver and the Micro830 uses the AB VBP x driver H xix Linx Gateways Ethernet E BE 12PEMBIO 30001 DFL 0 E AE LEW ESET Aas ft 16 Micro830 2080 LC30 160WE 2 Start ControlF
38. Motor Data Below iz a list of changes that have already been made w Ez Stop Brake Mode piso n w Ez Direction Test eters were rese v E Ramp Rates Speed Limits Te E Speed Control Direction Test completed successfully E Digital Inputs w Ez Relay Output w Ez Pending Changes Ma changes were made bu direction test Below is a list of changes that will be made if you click Finish Wizard Step Digital Inputs Change parameter 52 Digital Inz Sel value from Preset Freg to Mat Used Change parameter 51 Digital Ind Sel value from Preset Freg to Mat Used zu Clase Back Next gt Finish gt gt p 19 Save the project by clicking lal and the following window will appear Click Yes to upload the drive parameters Upload Online Devices X Do vau want to upload the Following devices PowerFlex 4 1 L9 ow 111 Configuring the Controller for Modbus Communication with a PowerFlex 4 This section will show you how to configure the Micro830 for Modbus communication using the Serial plug in module 1 To configure the controller plug ins double click on the Micro830 icon in the Project Organizer to bring up the following screen Micro830 PowerFlex 4_1 T X i Program Major Fault e Micro830 Remote Disconnected Mode C Run Controller Made wee 3 M 2080 LC30 16QWB a Download Upload Manuals Help I leeeeee
39. NK MHIL TIWAY Host Adapter UNILINK HIL Mitsubishi FX Mitsubishi FX Net RS232 Mitsubishi Siemens S5 Siemens amp 7 MPI Driver PanelViev Configure the Driver settings as shown below the default settings will work for RS232 If using RS485 change the Port settings to RS422 485 Half duplex RS232 Driver USB Ethemet Use Ethernet Encapsulation PanelView Component Settings Write Optimization Baud Rate lata Bits RS485 Driver EE I Ethernet Use Ethernet Encapsulation PanelView Component Settings Write Optimization Port RS422 485 Half Dupl 18200 E LP CnRn tone D ee 5 Inthe Controller Settings configure a controller with settings as shown below Everything can be left as default except for the first three settings Controller Settings Ascending Settings Micro800 6 Create tags addressed to the tags you created earlier in your Micro800 Refer to the section called Mapping Variables for Modbus Registers for details on how to create the Micro800 tags Click the Tags tab Pvc DesignStation Startup P c DesignStation PvcApplicationi Settings Communication Tags screens Security Alar Hi gt y gt BBxBae pen Memory System Global Connections Click Add Tag Create the following tags as shown below make sure to choose the correct data type External METTI System Global C
40. ORD ENO Output BOOL Enable out 154 Reading 03 Logic Status Data The PowerFlex 4 Logic Status data can be read via the network by sending Function Code 03 reads to register address 8448 Logic Status Logic Status Address Decimal Description O 1 Ready 0 Not Ready 1 41 Active Running 0 Not Active 1 Cmd Forward 0 Cmd Reverse 3 1 Rotating Forward 0 Rotating Reverse 1 Accelerating 0 Not Accelerating 5 i BDecelerating 0 Not Decelerating 6 1 Alarm 0 No Alarm in 1 Faulted 0 Not Faulted 8 AtReference 0 Not At Reference 9 1 Reference Controlled by Comm 1 Operation Cmd Controlled by Comm 1 Parameters have been locked Digital Input 1 Status Digital Input 2 Status Not Used Not Used 155 156 Writing 06 Logic Command Data The PowerFlex 4 drive can be controlled via the network by sending Function Code 06 writes to register address 8192 Logic Command P036 Start Source must be set to 5 RS485 DSI Port in order to accept the commands In addition to being written register address 8192 can be read using Function Code 03 Logic Command Address Decimal Description 8192 0 1 Stop O Not Stop 1 i Start 0 Not Start 2 1 4og 0 No Jog 1 Clear Faults 0 Not Clear Faults 00 No Command 01 Forward Command 10 Reverse Command 11 No Command 00 No Command 01 Accel Hate 1 Enable 10 Accel Rate 2 Enabl
41. Pulse Falling Edge Contact TF Block Gee 77770 There are no usable controls in this group puo ee ER OX IO EM DO 01 Device Toolbox 3j Toolbox 19 Build and download at this time Now you are ready to start debugging by clicking the P button on the top menu bar and the ladder should look as shown below Logic Status IO EM DO 06 n O Logic_Status 7 _10_EM_DO_0 141 20 Trigger Input 1 IO EM DI 01 as shown below and notice that the Modbus message will return the status WORD shown before to be 1037 Now it can be shown that at the bit level Logic Status 0 is true stating that the Drive is READY and showing this status by enabling Output 0 IO EM DO 00 J EM DO 01 Logic Status 142 Sending a Write Message to the Drive to Start Stop and Change Speed In this section you will change the Modbus message to write to the drive and be able to control the drive To do this you will need to add some additional ladder logic to be able to Start Stop and set a Speed on the drive This section of the quick start will modify the modbus message used in the previous section to read the drive s status 1 Start by double clicking on the LocalCfg input as shown O EM DI 01 TaraetCfd ocalcfa Anystructure l Target ocal 143 Once the Variable Selector displays change the Initial Value of the LocalCfg Cmd from a read value of 3 to a value of 16 for writing holding regi
42. RIT A ar annn manha This function block can be used to send a M 166 14 Here you will find the information on the inputs and outputs of the block Arguments Parameter Parameter Type Data Type Description Input If Rising Edge IN turns from FALSE to TRUE start the function block with the precondition that the last s oo has been completed Cancel cancel Input soo TRUE Cancel the execution of the function block LocalCfg Input MODBUSLOCPARA Define structure input local device See MODBUSLOCPARA Data Type TargetCfg Input MODBUSTARPARA Define structure input target device See MODBUSTARPARA Data Type Localaddr Input MODBUSLOCADDR Define local address 125 words Output BOOL TRUE MSG instruction is finished FALSE MSG instruction is not finished Error Output BOOL TRUE When error occurs FALSE No error ErrarID Output UINT Show the error code when message transfer failed See MSG MODBUS Error Codes 15 For the Cancel parameter click on the upper part of the blue box and double click on the input from the Micro830 you want to use in this case Input 0 LintitledLD VAR Micra amp 3 UntitledLD POU I0 EM DI 0D IO EM DI oo O EM DI on IO EM DI 02 IO EM DI 03 JO EM DI D4 NL 10 EM DI D5 IO EM DI O6 ID EM DI O7 IO EM DI DB 167 16 To create the other variables for the function bloc
43. bus Mapping z Embedded I O Modbus Role Modbus RTLI Master Er Plug In Modules Re 2 0aen SERTALISOL at Empty gt Advanced Settings Properties z Communication Parts Driver Modbus RTU i Serial Port m USB Port Baud Rate s600 m Date and Time Z Interrupts Parity None nd Protection H Startup Faults Unit Address 100 Modbus Mapping Advanced Settings 2Dan SERIALTSOL Embedded IJO El Plug In Modules B SERIALISOL Protocol Control i z Empty gt RTS Pre Delay dii Media R5465 7 RTS Post Delay n Data Bits Stop Bits Response Timer Broadcast Pause Inter Char Timeout 114 5 Right Click on Micro 830 then select Build Project Organizer Mame PwerFlex 4 Ls o fF LE ii Open Build Download Upload Online Change Import Export ut Copy Paste Delete Rename Properties 115 Programming the Controller for Modbus Communication with a PowerFlex 4 This section will show you how to program the Micro830 for Modbus messaging with a PowerFlex 4 1 Start by creating a new ladder diagram program by right clicking on Program Move the cursor over the Add tab and select New LD Ladder Diagram Micro830 PowerFlex 4 1 Micro830 Rei Ma j m Programs pm a i Global va Properties ocks I 42 UntitledLD Local var umts x Global Variable
44. cess value 1 Start the Connected Component Workbench from the Start Menu Start gt All Programs gt Rockwell Automation CCW gt Connected Components Workbench Accessories Games Documents Microsoft Office fa Rockwell Software Startup Search m Symantec Endpoint Protection Internet Explorer e pama Support e Windows Media Player EB adobe Reader 8 Fm Allen Bradley m FLASH Programming Tools Programs Settings Run Shut Dawn Rockwell Automation rm i amp Connected Components Workbench Connected Components Alternatively double click on the shortcut on the Desktop arkbench 20 2 Atthe Connected Component Workbench window drag 2080 LC30 16QWB from the Device Toolbox Catalog window into the Project Organizer window a new project will be created Device Toolbox Discover Catalog Project Organizer l x Put 2D080 LC30 100wWB Mame Projeckl pU 080 LC30 1 64 6 am m 2 B0 LC30 16QVB C Programs j O80 LC30 5C B Global variabl ee 2U80 LLS0 240BR EE z Daktalyoes P 2 BD LC30 24QVB PS Function Blacks NE m ER 2 80 Lo30 230 WB 1 l d J Device Toolbox 4 Toolbox 3 Inthe Name field within Project Organizer enter FBD Program Project Organizer Mame FED Program 4 Under Project Organizer right click on the Programs select Add and select New FBD Function Block
45. ck from the pull down menu E2 Instruction Block Selector N A Controller 2U80LC UT BG VV BA Substraction af two or mare Division of Ewa or mare inte i FA Multiplication of two or more ESI Ts i Addition of two or more inte ll gt alk SIN_LAEAL 26 The Instance SIM FB 1 will be created Ex Instruction Block Selector SIM FB Controller 2080L C 3015 wv BA Category SIM FB bei o SIM FB User defined me fo Parameters Hame DataType Dimension Alias 7 gf 7 pfi pE pel i DINT DINT Buffer HEAL 0 20 SE AL Instance 5IM FB 1 s Show Parameters Inputs Scope Process SIM 27 After completing Steps 15 26 the programming workspace should have 3 function blocks as shown below o Process_SIM POU 28 Select the Variable from the Toolbox and drag to the programming workspace Connect it to the SetPoint of IPIDCONTROLLER_1 Function Block as shown below Process SIM POU 29 Then select SV from the Local Variable Process_SIM to assign to the Setpoint of the IPIDCONTROLLER_1 Variable Selector Mame Global Scope Local Scope Type REAL rr MicroB30 v Process SIM User Global Variables Micra amp 30 Local Variables Process SIM System Variables Micro amp 30 1 0 Miera amp 30 Defined words Hame Data Type Dimension Alas Initial alue Attribute Comment String Size AUC EMEN SEHE f poo IUUDEBE EE NN FB REAL
46. ck on the Programs select Add and select New ST Structured Text Project Organizer Mame ST Project E New ST Structured Text WI Mew LD Ladder Diagram Mew FBD Function Black Diagram Properties 46 5 Right click on UntitledST and select Rename ATTI Microsa0 a siiis m Programs u da Upload 2 DataTypes 2 ie m Function Blocks d Open Import k Export k icut Copy Delete Rename 6 Type Selection and Enter 3 T Microso B m Programs 7 Double click on Selection within the Project Organizer to start editing the Structured Text program 8 Click at the Line no 1 at the Selection POU tab Selection POU 9 Enter the following sentence Simple Selection Program with CASE Statement then hit enter Selection POLl i Faini le Selection Frogramn vith CSE UEM Note For entering comments use comments 10 Click at Line no 2 at the Selection POU tab enter the following program Selection POu 1 Simple Selection Program with CASE Statement 2j CASE select no OF 3i 1 IO EM DO DO TRUE IO EM DO Oi FALSE 4j 2 IO EM DO O1 TRUE IO EM DO DD FALSE 5 ELSE 6 IO EM DO 00 FALSE 7 IO EM DO D1 FALSE ai END CASE Note All Structured Text Reserve word will be represented in magenta and comments will be represented in Green When entering the IO variable we are able to select from the
47. cro800 controller and create a Global Variable called DATA with data type INT and attribute ReadWrite l r MA l 1 YY ar gamd a OI x ana YYI IG SYSVA MAJ ERR HALT BOOL Read SYSVA ABORT CYCLE BOOL Read DATA INT Readwrite Double click Modbus Mapping from the Micro800 CX aaea Ar Fares Device Configuration tree jS CHIEN this will launch the Modbus USB Port Mapping table shown below Date and Time z Interrupts Startup Faulks z Modbus Mapping Embedded I O E Plug In Madules US0 SERTALTSOL os Empty gt Properties aa Variable Mame DataType Address Addresses Used 3 Adda Variable to the Mapping table by following the steps below Double click here to launch the Variable Selector window Properties variable Name DataType Address Addresses Used Select the User Global Variables tab Then click here to select the DATA variable EB variable Selecto EN lolx Mame Type foal Scope Local Scope ROOL d Micraa3t N A User Global Variables WMicro830 Local Vagatfes N A System Variables Micro830 1 0 Micro830 Defined Words Controller DATA INT Then click OK MM Me MM O 64 4 Map the DATA variable to register address 400001 Enter the register address in this field Properties Variable Mame Data Type Address Addresses Used 5 Repeat steps 3 and 4 for variable
48. des Download started Configuration Hicr gsl ee mem ntm Start Downloading Bezsource l dcmum Download 1 succeeded O failed O up to date O skipped 5 The following window will appear to change from Program Mode to Run Mode Click Yes to proceed Download Confirmation Download is Complete Do you want to change the controller back ta Remote Run 6 Click on the atthe Debug Toolbar the programming workspace will change from a white to beige background 41 7 To change the SV value of the IPIDCONTROLLER_1 double click on SV The following Variable Monitoring window will appear Variable Monitoring 10 0 10 0178 PIDI_G FID AT Variable Monitoring Global Variables Micro830 Local Variables Process SIM Sustem Vari Hame Logical alue PhysicalYalue Lock ott E Z8 fs ss UL FE 10 029 N A O PID1 G rm B Pbi 5T 9 Monitored the Output Value of the IPIDCONTROLLER_1 you will be able to see the value increase FeedBa AT Warn 0 Auto Qutiains False Initialize 10 To stop monitoring the variable click on at the Debug Toolbar 42 11 Then from the Micro830 tab click on Disconnect to go offline Micro830 Process SIM VAR Process SIM POL 5IM FB POLI i Program Major Fault Mot Faulted 2 Micros30 dad Connected BUE Run Controller Mode Run Remote TEDNE 4 t Ep E Download Upload va
49. ds Controller Name Data Type Dimension Alias Initial Y alue of Tee et Tee ee M88 MODBUS 1 MSG_MODBUS LocalCig MODBUSLOCPAR i TargetCtg M DBLUSTARPAH LocalAddr MODBUSLOCADD m 2 mm WORD onn nne RH 1 Local amp ddi WORD Local amp ddr 3 WORD Local amp ddr 4 WORD OF N Cancel cd 14 Now that the new rung is complete click on top of the direct contact to the left of the Modbus message and select the new variable created Run Fwd UntitledLD POU ELS twits _ 0_EM_DO_03 _ 0_EM_DO_04 _ 0_EM_DO_05 LocalAddr 149 150 15 Just as the previous rung add the two rungs shown below to trigger the reverse command Run_Rev and the stop command Stop 16 Also create two additional rungs that will trigger two preset frequencies as shown below This example uses pre set frequencies 1 and 2 as Freq and Freq2 respectively or as what can be consider a slow and fast speed for the drive depending on the application 17 Select drag and drop a branch under the Run_Fwd direct contact as shown below UntitledLD POU 4 Pulse Rising Edge Coil 8 Pulse Faling Edge Coil dk Direct Contact 4r Reverse Contact 4PH Pulse Rising Edge Contact 18 Now add a new Direct Contact to the newly added branch UntitledLD POU JP Pulse Rising Edge Contact 19 Once the Variable Selector displays select the variable Run_Rev Then click OK 2E ariabl
50. e 11 Hold Accel Selected 00 No Command 01 Decel Hate 1 Enable 10 Decel Hate 2 Enable 11 Hold Decel Rate Selected 000 No Command 001 Freg Source PQ36 Start Source 010 Freq Source Internal Freq 011 Freq Source Comms Addr 8193 100 A070 Preset Freg 0 107 A071 Preset Freq 1 110 A072 Preset Freq 2 111 A073 Preset Freq 3 LENT 11 10 Chapter 7 Using Connected Components Workbench with Temperature Controllers Hardware amp Software Versions Used e Temperature Controller 900 TC8 or 900 TC16 e Simple Temperature Control Connected Component Building Block Pub CC QS005A EN P e Appropriate communication module for the 900 TC per application o 900 TC8COM o 900 TC16NACCOM 158 Configuring and Programming the Controller for Modbus Communications to a 900 TC Temperature Controller This chapter will show you how to configure and program the Micro830 controller with the 2080 SERIALISOL and the 900 TC termperature controller 1 With the assumption you have the Micro830 controller selected in the project file you can now go to the controller window and select the 2080 SERIALISOL plug in card For more information on how to create a new Micro830 project review the Getting Started Guide Pub 2080 QRO001B EN P E umm PowerFlex 4 1 Micra83U Microg30 Remate Program Major Fault Mode m Run Controller Made t 2080 L Down
51. e Selector 151 20 Repeat steps 18 and 19 for Stop Freq and Freq 2 branches O EM DI 01 1g b IO EM DI 02 1c a 3 O EM DI 03 1g W a JO EM DI 04 r e O EM DI 05 Er 07 Freq 2 152 22 Now you are ready to start debugging Save build and download your project Click on the y button on the top menu bar Trigger input 4 IO EM DI 04 to write pre set frequency 1 Freq IO EM DI 05 23 Now that a frequency is set trigger input 1 IO EM DI 01 to enable the forward command in the drive as shown below This verifies the message is working as intended feel free to toggle the other bits to test Stop Run Rev and Freq 2 O EM DI 02 153 Appendix A 1Gain Description Directly links the input to output When used with a Boolean negation moves a copy of il to ol 1 yin Arguments Parameter Parameter Type Data Type Description EN Input BOOL Function enable When EN TRUE execute the direct link to an output computation When EN FALSE there is no computation i1 Input BOOL DINT Input and output must use the same format REAL TIME STRING SINT USINT INT UINT UDINT LINT ULINT DATE LREAL BYTE WORD DWORD LWORD o1 Output BOOL DINT Input and output must use the same format REAL TIME STRING SINT USINT INT UINT UDINT LINT ULINT DATE LREAL BYTE WORD DWORD LW
52. e drawings based on the 900 TC you are using When using the 2080 SERIALISOL module ground the shield drain to the chassis of the controller 900 TC8 amp 900 TC16 jae Shielded Cable 2080 SERIALISOL Controtier X 1 CHS GNI iode ter eer Terminator 12002 1 2 W 900 TC32 greet aa Shielded Cable 1 2080 SERIALISOL Controller X 1 wee ene a Ionen End i Terminator 1200 1 2 W Note If using the 1763 NCO1 cable wire the same for the 900 TC connect the following way a xt 1 900 TC8 amp 900 TC16 pe oeeuoo Shielded Cable 1763 meen Srk ee NE i j i Terminator 1200 1 2 W 900 TC32 po 777 Shielded Cable z i y i 1763 1 NCOI 1 I a m a Terminator 1200 1 2 W 177 178 H5 485 connector ZUM SHALE GHS GHO Note Grounding Your Analog Cable Use shielded communication cable such as the Belden 3105A The Belden 3105A cable has two signal wires White Blue Stripe and Blue White Stripe one drain wire and a foil shield The drain wire and foil shield must be grounded at end of cable 3 Assuming you have created the program from the previous sections starting in Chapter 7 built and downloaded the program on the Micro830 you can now proceed 4 Verify the program by running the debugger 5 View the variable tab Energize input 1 on the Micro830 You should get something
53. ect no of Simple Selection Program with CASE Statement 1 IO Embedded Digital Output D TRUE IO Embedded Digital Output 1 FALSE 2 IO Embedded Digital Output 1 TRUE IO Embedded Digital Output 0 FALSE Else IO Embedded Digital Output 0 FALSE i IO Embedded Digital Output 1 FALSE i END CASE i IF IO Embedded Digital Output THEN a atbte ELSE IF IO Embedded Digital Output 1 THEN AVERAGE 1 IO Embedded Digital_Output_1 a 3 j AVERAGE 1 XOUT END IF i END IF 7 To simulate the variable run over the and the following popup dialog box will appear Click on the dialog box to monitor CASE se lect ny OF 1 IO EM DO D0 TRUE 2 IO EM DO O1 TRUE ELSE IO EM DO OD IO EM DO O1 qe a ELSE CASE select no OF I0 EM TRUE 38 EM Click bo monitor it 57 8 The Variable Monitoring window will appear ES Variable Monitoring Global Variables Micro830 Local Variables Selection System Variable Hame Logical Yalue PhysicalValue Lock gt x gt T gt r at select na 1 M Aa Im 1 5 M A 20 N A Simulation for select no using the demo kit output indicators e Inthe demo kit Output O should be lit when the select no variable is 1 At the Logical Value of select no change to 2 Now Output 0 should turn off and Output 1 should lit e Change the value of select no variable to 0 or 3 both Output O0 and Output 1 sh
54. elect as shown and then click Next mf PowerFlex 4 Startup Wizard 6 of 10 v Ez Welcome w Ez Reset Parameters w Ez Motor Data Ez Stop Brake Mode w Ez Direction T est w Ez Speed Control Digital Inputs Relay Output Pending Changes 107 15 Select Comm Port and then click Next mf PowerFlex 4 Startup Wizard 7 of 10 w Ez Welcome w Ez Reset Parameters w Ez Matar Data EJ Stop Brake Made w Ez Direction Test E Ramp Rates Speed Limits w Ez Digital Inputs Relay Output Pending Charges 108 16 Set the Start Source to Comm Port to eventually trigger the Preset Freqs shown below Select as shown and then click Next a PowerFlex 4 Startup Wizard 3 of 10 w Ez Welcome v E Reset Parameters v Ez Matar Data Ramp CF 7 wie Stop 7 Brake Mode w Ez Direction Test Comm Port w Ez Ramp Rates Speed Limits Ez Speed Control v Ez Relay Output Pending Changes NotUsed E NotUsed 7T 109 17 Select as shown and then click Next P PowerFlex 4 Startup Wizard 9 of 10 v Welcome w Ez Reset Parameters w Ez Motor Data wiles Stop Brake Mode vE Direction Test w Ez Ramp Hates Speed Limits vE Speed Control e Ez Digital Inputs vE Relay Output Fending Changes 110 18 Click Finish E PowerFlex 4 Startup Wizard 10 of 10 xj Wizard Step Applied and Pending Changes w Ez Welcome w Ez Reset Parameters w Ez
55. filter as shown below to display the variables ioiai Name Type Global Scope Local Scope BOOL Micro830 UntitedLD User Global Variables Micro83g Local Variables UntitledLD System Variables Micro830 1 0 Micro830 Defined words Controller Name Data Type Dimension Alias Initial Y alue ik gt BOOL 7 ot 7 ot T gE Y 14 Select the Logic_Status variable created before 7 ee CTU 7 WORD 15 Go to the name field and type Logic Status 0 for the bit 0 of the Logic Status WORD Then click OK HA Variable Selector i 2iBl xl lame Global Scope Local Scope Logic Status D Micro830 UntitiedLD User Global Variables Microf30 Local Variables LIntitledLD System Variables MicraG30 10 Micro830 Defined words Cc d Name Data Type Dimension Alias Initial al z TE wae a E 139 16 Select drag and drop a Direct Coil to the end of the rung as shown below Z Deve Tooke Tono 17 In the Variable Selector NO Micro830 tab select IO EM DO_00 as the embedded output for this rung Then click OK E4 Variable Senet Bl xl Doseum mooo a refined 140 18 Repeat steps 11 17 from this quick start to add an additional Logic Status rung that will read bit 7 to determine whether the drive is faulted or not fi Pulse Falling Edge Coil 4 Direct Contact t Reverse Contact 4PH Pulse Rising Edge Contact n
56. for confirmation of the downloading if the controller is in RUN mode Click on Yes to proceed Download Confirmation The controller is in Remote Run mode Do vau wank to change to Remote Program mode In the completion of downloading the program the Output window will display Succeeded QUEGUE Show output From General zno E Start Downloading Resource 1 Download l succeeded O failed Tare we O up to date O skipped 5 The following window will appear to change from Program Mode to Run Mode Click on Yes to proceed Download Contirmation Download is Complete Do you want to change the controller back to Remote Run 6 Click on the atthe Debug Toolbar the programming workspace will change from white background to gray background Micro830 Selection VAR Selection POU 1i Simple Selection Program with CASE Statement CASE select no of 1 IO Embedded Digital Output 0 TRUE IO Embedded Digital Output 1 7 FALSE 2 IO Embedded Digital Output 1 TRUE IO Embedded Digital Output 0 FALSE IO Embedded Digital Output 0 FALSE _IO Embedded Digital_Output_1 FALSE END CASE 10 IF IO Embedded Digital_Output_0 THEN 11i i a b c 2 3 a 5i Else ei 3 8 12 ELSE IF IO Embedded Digital Output 1 THEN 13 AVERAGE 1 IO Embedded Digital Output 1 a 3 14 j AVERAGE_1 XOUT 15 END IF 16 END IF Selection VAR Selection POU 1j i CASE sel
57. itten to the drive Therefore toggling the bit in front of the 1 gain will determine if the controller sends a Start Stop or Speed change message Start by selecting dragging and dropping a Rung as shown below UntitledLD POU gt Jump T Branch Direct Coil Reverse Coil Set Coil Reset Coil 4 Pulse Rising Edge Coil Pulse Falling Edge Coil 4 Direct Contact t Reverse Contact 4P Pulse Rising Edge Contact 4h Pulse Falling Edge Contact TF Block Genera There are no usable controls in this group Drag an item onto this text to add it to the oolbox Jo Toobar 5 Select drag and drop a Block UntitledLD POU X Toolbox n x lk Pointer f Rung lt gt Return gt Jump T Branch Direct Coil Q Reverse Coil Set Coil amp Reset Coil Pulse Rising Edge Coil 48 Pulse Falling Edge Coil 4h Direct Contact t Reverse Contact JP Pulse Rising Edge Contact There are no usable controls in this group Drag an item onto this text to add it to the toolbox f Device Toolbox 3j Toolbox 145 6 Type 1 select the 1 gain function block and click OK Instruction Block Selector 1 gain Category Ji 1 gain i Arithmetic Iv EN PENG ok Cancel A 7 Select drag and drop a Direct Contact as shown below pesce Toso 32 Toobox 146 8 From the I O Micro830 tab select IO EM DI 01 Input1 Bl ariable Selector Data Type Dimensio
58. k double click on the bottom of the next blue box and open up the Local Variables User Global Variables Micro830 Local Variables UntitledL0 System Variables Micro830 LO Mir Dimension T gt Data Type T gt gf MODBUSL 17 We now need to create variables for use with the function blocks Click on the light blue box to the right of the asterick Type in LocalCfg Tab over to Data Type User Global Variables Microf30 Local Vanables UntitledLD System Data Type T gt MSG_MODBUS MSG_MODBUS_1 BOOL bea TH LocalCtg 18 Type in MODBUSLOCPARA See step 15 for where this data type assignment came from You will note as you begin typing the name will populate Pay attention to the last half of the word to ensure you have the correct data type Hit enter User Global Variables Microf30 Local Yanables UntitledLD System V Data Type il M 7 gt MSG_MODBUS_1 MSG MODBUS MODBUSLUCPAR Localltg 168 19 Type in TargetCfg in the light blue box to the right of the asterisk Type in MODBUSTARPARA under data type Hit enter User Global Variables Microf30 Local variables Untitled D System Varie Data Type MSG M DBLS 1 MSG _MODBUS Locallfg MODBUSLOCRAR Targetltg MODBUSTASARAR 20 Type in LocalAddr in the light blue box to the right of the asterisk Type in MODBUSOCADDR under data type Hit enter User Global Variables Microf30 Local
59. lick on the add tab PowerFlex 4 1 Micro83n at PowerFlex 4 fs Conner Disconnected 5 t Eg i Download Upload Parameters Properties Wizards Manual lt P IP 110V 25HP Seres A Revision 6 00 Status Feedback PowerFlex 4 E T Ps 2 Double click on the 1203 USB PowerFlex 4 1 PowerFlex 4 e Conme Disconnected DSI COMMs Single drive Omm D zz comm P 7 HE 22 LOMM E 1769 5M2 zz WIM Mx 22 lOMM C e227 OMM B 2 HIM 45 zz HIM A3 SER C PowerFlex 4 sdd 3 Click on the 1203 USB tab added on the bottom PawerFlex 4 1 T add 4 Before connecting to the Drive you must install the 1203 USB drivers and configure a new DF connection in RSLinx refer to publication DRIVES UMOO 1B EN P for more details Click the Connect button 5 PowerFlex 4 1 Microgan TX PowerFlex 4 Connecti Misconnected Al ib t ES e gm e Download Upload Parameters Properties Manual Help 1203 USB Seres A Revision 1 004 Status PowerFlex 1 1203 LI5B 5 Expand the DF1 connections and look for the 01 AB DSI representing the 1203 USB select it and then click OK inii W Autabrowse Workstation RCCKMWELL DS04EF Seen Linx Gateways Ethernet E AB DF1 1 Data Highway Plus Fes AB DF1 2 Data Highway Plus 0 El n0 workstation DF1 COMS a 01 AB DST E AB ETH 1 Ethern H AB ETHIP 1 Ethernet HHE AB VEP 1 1789 A17 A virtual Chassis
60. load Upload Micro83 zLat IFz UG0 IF4 0e0 OF2 0e0 Tle 080 R TD n General 2080 TRIMPOTE Mun MAN 2080 SERIALISOL E Communication Ports serii Pot 2080 MEMBAK RTC be USB Port Date and Time z Interrupts z Startup Faults z Modbus Mapping Embedded I O ee Plug In Modules lt Empty gt ie Empty gt 159 2 Click the down arrow and select Modbus RTU Micro830 Remote Program Major Fault g Moga Run Controller Mode Connect od Micro83ll i General Memory E Communication Ports ps Serial Pork 1 USB Port j uc Ra ter Modbus RTL Date and Time Ag ve shutdown Protection Lu GF arhi inl E ai ile 3 Change the rest of the parameters to the following listed below using the down arrows ModbusRTU m sc T None 0 7m Bo Modbus RTLI Master 160 4 Expand the Advanced Settings and change the Media to RS485 Leave the rest of the parameters as shown below Build Download Upload online Change Import Export ut 161 6 Right click on programs Move the cursor over the Add tab to New LD Ladder Diagram Connected Components Workbench Fie Edit view Build Debug Tools Communications window Help Sil ES Ed X T O 0 EAEE Project Organizer Micra83 0 Mame S DTC OS Micro830 Remote ATTI Micro amp 3n Mode g eM Iz DataT Properties 1
61. n g BODL E3 7 em 0 c3 I 3 al 4 4 A NEM a 4 04 E EM DI Ul IO EM DI 01 J Device Toolbox 3j Toolbox 147 10 Create a variable Run_Fwd as shown below Then click OK HE ariable Selector Bl xl Mame Type Global Scope Local Scope f BOL Micro830 Untitled D User Global Variables Micro 30 Local Variables UntitledLD System Variables Microg3n LO Micro amp 3n Defini r Hame Data Type Dimension Alias of ao et 7 of MSG_MODBUS_1 MSG_MODBUS Localltg MODBUSLOCPAR TargetChg MODBUSTARPAR Local ddr j Ir MODBUSLOCADD BOOL i 11 Now click on top of the input box for the 1 gain function block and type 18 as the WORD that will be copied to trigger the forward command Refer to Appendix A Writing 06 Logic Command Data to determine why when the forward command bit is high it equals decimal 18 18 STSV ABORT CYCLE a SrSvA LLESEL OS9TSV LTLLELNT eysa EYCLEDATE SYSVA KVBCERR SYSVA KVBPERR T SvYSVA MAJ ERR HALT SvYSVA REMOTE GYSVA RESMDDE 12 Double click on the output box 148 13 Once the Variable Selector displays select LocalAddr 1 Then click OK HE Variable Selector ini x Mame Global Scope Local Scope Locat amp ddrtt Micro830 UntitledLD User Global Variables Micrag30 Local Variables UntitledLD System Variables Micro830 D Mierae3n Defined Wor
62. ne will open as a new tab in the main project window Fie Edt View Baki Deug Took Communications Window Heb Diu A5 Tie b ew Compo Miri Mods TU HIE E PanelView Component z DakaTypes I nara st Hep S0 1 ai Pit then Diac E pue Application Dashboard 3 Applications Name Tersin Mode EE Fanminal Parere C TDOO Hen Appbcat n Paneliiny Component Design Staton 2 1 1 50 guae 251 ToC ER Enaisn Pomuguds Francais naano D uticn Espano Miti Boc Conme E 2010 Rack Autsrsalen ne At Rights Deserve c maT l Roady 69 3 Select the PanelView Component platform and create a new application P anelView Component Pc DesignStation Startup Click the Platform drop down and select 2711C T6T PanelVie Application Dashboard m Applications Name Version Mode Terminal Click the Create amp Edit button m New Application Par Platform 2711c T10C gt 2711C T10C 42711C T6C 12711C T6T 2711C T6M Create amp Edit Portugu s Francais ttaliano Deutsch Espa ol f Copyright 2010 Rockwell Automation Inc All Rights Reserved The application will launch in a new tab in the main project window and default to the Screens tab n onnected Components Workbench a fie Ed Vee Budd Debug Tons iommuniestens Window
63. o or more Arithmetic m Multiplication of two or more Arithmetic tar Division of two ar more inte Arithmetic Ed Addition of two or mare inte 18 Select the Average function block from the pull down menu aj Te A la Manipulation tar Running average over M sampl ASIN LREAL AT AM A AM LREAL 19 The instance AVERAGE 1 will be created click OK to proceed La Instruction Block Selector AVERAGE E The function block will appear in the workspace a EE 20 Select Block and drag another block into the program workspace Process SIM WAR Process SIM POLI B 21 Select IPIDCONTROLLER function block from the pull down menu EZ Instruction Block Selector N A Controller 2080LC301 BG V B INSERT INTEGRAL n IRFIDCONT ROLLER LEFT LIM_SLAM Multiplication of two or more Divizion of two or more inte Addition of two or more inte gt tar Substraction of two or more ff taf a 22 The Instance IPIDCONTROLLER 41 will be created La Instruction Block Selector IPIDCONTROLLER IPIDCD lett IPIDCUNTROLLE IPIDCONTROLLER I E Camel n a4 23 The function block will be shown in the programming workspace Process SIM VAR Process SIM PDU 24 Select Block and drag another block into the program workspace 25 Then select SIM_FB function blo
64. ocoocc ii Micro830 o iol Properties General Memory Er Communication Ports j Serial Port o SB Port Date and Time Interrupts Protection StarkupjFaulEs Madbus Mapping Embedded I O E Plug In Modules lt Empty gt IT Empty gt 112 2 Add an isolated serial plug in to slot 1 by right clicking on the graphic of the first plug in slot and selecting 2080 SERIALISOL omen p eoooooooQ ooge 080 IF 080 IF 0e0 OF2 0e0 TLe 20680 A TD 080 TRIMP OTE 2060 SERIALISOL 2080 MEMBAK R TC 3 The device configuration window will now look like this Micro amp 30 pPowerFlex 4 1 Micro830 Download Upload Microts3ll Communication Ports Serial Port h USB Port Date and Time Interrupts l Protection l Startup Faults Modbus Mapping Embedded I E Plug In Modules 2080 SERTIALISOL ind Empty Remote Mode t Properties Driver Baud Rate Parity e Program C Run 2080 LC30 16QWB coocoo Major Fault T Disconnected 9 Manuals Help Controller Mode e 2Dan SERIALISOL asci 19700 m None Advanced Settings 113 4 Double Click the 2080 SERIALISOL plug in and verify the settings are the same as shown below Properties 060 SERTALISOL Driver USB Port Baud Rate E Date and Time Interrupts Parity Protection Z Startup Faults Unit Address Mod
65. onnections Delete Tag s 16 bit Integer 7 Create a screen display with objects linked to the tags you just created From the main project window click on the Screens tab Panel iew Component Settings Communication Tags GWah Bx Oa ale Create a maintained pushbutton linked to tag Output O This is not typical practice as a direct output should not be turned on off directly but is done for demonstration purposes PVc DesignStation Startup P c DesignStation Modbus Example Settings Communication LELE Screens 2 B8xHBag e Screen 1 Screen_1 TE HL oe M i a T A Drag and drop a Maintained Pushbutton object to the w 6 ki EP S screen 1001 Diagnostics 1002 Alarm Banner E tup Screen Entry slats Screen A WE 1 1 Momentary Push Maintained Push Button Button Multistate Push Latched Push Button Button 74 Configure the pushbutton Y Appearance Current Displayed State Use Background Color for Border m Border Color Configure the color and text of the states as shown below then click OK Text ee I Fill Color states by selecting the States Edit Properties button from the pushbutton s Properties pane on the right hand side Properties Maintained Push Button k Appearance Configure the Connections Write Tag and Indicator Tag to
66. or N A Project d dadabc 4b b 43b5c be3e 3 83b35c8773 2080LC 3015 vw BA a 77 NN Bild be All L ustam Empty munication Send a madbus message all KR CX Ly 11 MSG MODBUS will now appear as one of the available instruction blocks E Instruction Block Selector N A Project_dOdadabe 4b b 435c bese 3U83b35c8 73 2060LC301 606A a NP 77 NN E MSG MODBUS Communications m Send a modbus message 12 Double click on MSG MODBUS and the following will appear UntitledLD POU 165 13 To use the block you need to configure it To find help on the instruction blocks in this case the MSG Modbus go to Help Search click on Local Help and enter MSG Modbus in the search box D MSG_MODBUS Online Help Microsoft Document Explorer File Edit view Tools Window Help G back amp X 2 amp AT E HowDaI Q Search cy Index d Contents x MSG MODBUS Search crede URL ms help CCW 10 Coll ISa5 acf lrsb I5a5j no filter Look For Connected Components Workbench msg modbus MSG MODBUS MSG MODBLIS Function black ERN multiplication operator Description MUS46 Function MUSSE Function naming conventions constants Function blocks Functions programs variables Neg operator nok equal operator MOT operator MOT MASE Function operators aain addition AND AMY TO BOOL AMY TO BYTE AMY TO DATE AMY TO DINT AMY TO DwoRD AMY TO IMT AR Trea T
67. ould turn off e The program logic is written so that if the value is not 1 or 2 both Output 0 and Output 1 should turn off 10 To simulate the mathematic calculation at the Variable Monitoring Window change the value of a b and c Variable Monitoring AVERABE 1 Simulation for the equation i a b c Initial values of a is 1 5 b is 3 142 and c is 2 0 change the values as shown below Variable Monitoring Name Logical Value PhysicalValue Lock DataType Dimension gf gf gf gf gf select na N A a M IS Er M IS REAL AVERAGE AVERABE 1 However we expected i to equal 720 0 We need to change the value of the select no to 1 to execute the equation i a b c ES Variable Monitoring 59 When the select no s value is changed to 1 the equation will be executed The value will be shown in the Variable Monitoring window ES Variable Monitoring Global Variables Microg30 Local Variables Selection System Variables Micro830 1 0 Microg3 n Mame meee PhysicalValue Lock Data Type TEE git gft 7 gf gf gt gf a NE OR LS RR RN HEAL ue HEAL INI M hs HEAL 720 0 N A HEAL zi M A HEAL AVERADE 1 AVERAGE Z The program is written in such IF IO EM DO 00 THEN a b c Therefore only when the Output 0 1 will the equation be executed 11 To stop the monitoring of the variable click on 4 atthe
68. pport Flash updates using this programming tool or Ehe target hardware revision is not compatible with Ehe selected Heo version of Firmware 9 When the flash update is complete you should get a status screen similar to the following Click OK to complete Update status Catalog Number 2080 L070 1 206 Seral Number FFFFFFFF Curent Revision 1 4 View Log Mew Revision 1 4 ER S Latus Chapter 2 Importing and Exporting User Defined Function Blocks Importing and Exporting User Defined Function Blocks This chapter will show you how to create and export a SIM_FB User Defined Function Block UDFB so that it can be imported into other projects 1 Create a new Micro830 project Project Organizer Mame Project m Programs i Global variables mien DiabaT esu z yp m Function Blacks 2 Under Project Organizer right click on Function Blocks select Add then New ST Structured Text Project Organizer Mame Projecti i Global Variables m m DataT le ataTypes Y Function Blacks Ladder Diagram r Mew FBD Function Black Diagram Properties 3 Right click on UntitledST select Rename and type in SIM FB UntitledsT ETETETT wy L a E E Build Download Upload Online Change Open Parameters Import Export Properties 4 Double click on SIM_FB and type in the following Project Organizer
69. pull down menu as shown Selection POU 1 2imple Selection Prag CASE select no OF 3i 1 JO EM DI 05 IO EM DI D6 JO EM DI 07 IO EM DI OS JO EM DI no gt IO _EM_DO_0O JO EM DO nl Oo EM Do n2 JO EM DO n3 IO EM DO n4 For Boolean expression True is 1 and False is 0 48 11 Double click on the Local Variables under the Selection programs to define a new variable ATTI Micraa3 m Programs Local Variables 12 Create an integer variable select_no as shown p Selection VAR Selection POL T4 select no 13 At the Project Organizer double click on the Global Variables to create the Alias for the outputs n Microga0 pus m Programs Global Variables 14 At Micro830 VAR tab enter Output O0 at Alias for IO EM DO 00 and Output 1 at Alias for O EM DO O1 Micro830 AR selection VAR Selection POLI T gt T gt Output O 50 15 Finally build and save the structured text programming Right click on the Micro830 icon in Project Organizer and select Build Project Organizer Mame ST Project Open Build G utpat ad output From Build ee eee Linking for SIMULATOR m MICR US3D erroris O warnindgiz CONTROLLER O erroris O warning Sa burrldgd End SS Build 1 succeeded failed O up to date O skipped Click on Save icon zi
70. put aa ould a ere eee eee Build resource MICBRO0830 Configuration MICRO0830 Compiling for Z080LC3016Q0WB SIM FE PROCESS SIM Linking for z S LCS3 lsuQgWBEA MICR O0S3 0 O erroris O warningiz Compiling for SIMULATOR SIM FE PROCESS SIM Linking for SIMULATOR HICROSs3O O erroris O warning CONTROLLER O erroris O warninmgiz icum eem Build End Build l1 succeeded O failed O up to date O skipped Click on Save icon zi to save your work 39 Testing the Function Block Program This section will show you how to test the Function Block Program created proceed with the steps shown below 1 In the Project Organizer right click on Micro830 and select Download Project Organizer Open Build Download Connection Browser Aubobrowse Refresh Workstation Rock WELL D804EF Aloe Linx Gateways Ethernet B 63 AB VBP 1 1789 41774 Virtual Chassis z El 00 Workstation R SLinx Server EE 16 Micro830 2080 LC30 160WE e USB ctr Fe 3 The following dialog box will appear for confirmation of the downloading if the controller is in RUN mode click Yes to proceed Download Confirmation The controller is in Remote Run mode Do you want to change bo Remote Program mode 40 4 Ifthe download is successful the Output window will display Succeeded Show output From General ee ee Jil 3j re
71. py Recipe Startup Application 6 You have completed transferring an offline application to your PVc terminal Cabling the Micro800 to a PanelView Component Hardware Used PanelView Component C600 2711C T6T RS232 Cable 1761 CBL xxxx or 2711 CBL PMxx RS485 Adapter 1763 NC01 il For RS232 communications you will need an 8 pin Mini DIN to 9 pin D shell null modem cable see table below for recommended cables 0 5 m 1 6 ft 1761 CBL APOO 2 m 6 6 ft 1761 CBL PM02 5 m 16 4 ft 2711 CBL PM05 10 m 32 8 ft 2711 CBL PM10 For RS485 communications you will need to use a 1763 NCO01 adapter and wire the recommended twisted pair shielded cable as shown below The recommended cable is Belden 3105A or equivalent two wire shielded twisted pair with drain Note Because both devices serial ports are non isolated connect the shield drain wire at one end only to prevent a ground loop MASTER SLAVE PanelView Component 1763 NC01 adapter to RS422 485 port Micro800 TERM ae Seas B COM SHLD S e shield drain CGND There is no need for terminating resistors The PanelView Component has an internal 121 ohm resistor across the R and R terminals and the Micro800 is terminated by jumpering TERM to A on the 1763 NCO01 adapter Connect cables and test the application RS232 Connect the serial cable from the 8 pin Mini DIN port on the Micro830 to the D shell connector on the PanelView Component terminal
72. re done with the direction test Click Next to continue E PowerFlex 4 Startup Wizard 5 of 10 X Wizard Step Direction Test wv Ez Welcome vE Reset Parameters w Ez Motor Data wiz Stop Brake Made wv E Direction Test T Ensure that Motor Data is correct before proceeding with this page Direction Test causes some equipment You should have an external safe method of stopping the motor nearby when using this Y Danger This test will cause the motor to rotate Misuse may result in death injury or damage to feature Ramp Rates Speed Limits parameters in the drive ta change immediately When you leave this page the device will be stopped Speed Control Digital Inputs When you leave this page the dive will be stopped Relay Output Fending Changes Set the Jog Reference to a positive value and JOG the dive The motor should rotate in the forward direction Verity that the direction of rotation is corect Digital Ins will be set to Notlsed during the test Reference 30 Hz ap AT Reference Jog Reference C 300 Hz 10 0 Hz ls the direction of motor rotation corect for the application Yes C No P Test Passed Close Back Next gt Finish Me Speed Reference X The Speed Reference is currently nat set to Ehe comm pork To use the reference velocity From this wizard page the Speed Reference parameter 38 must be set to 5 Do vou want it changed Yes Mo 106 14 S
73. riables Program 2080 LC30 T16QWB 43 Chapter 4 Creating a New Structured Text Program Creating a New Structured Text Program This chapter will show you how to create a new structured text program for creating menu selections and simple mathematical calculations 1 Start the Connected Component Workbench for the Start Menu Start gt All Programs gt Rockwell Automation CCW gt Connected Components Workbench Accessories m Games Documents FPR Microsoft Office m Rockwell Software Settings Startup Search fm Symantec Endpoint Protection E Internet Explorer Help and Support e Windows Media Player Adobe Reader 6 4llen Bradley m FLASH Programming Tools m Rockwell Automation m ty i amp Connected Components Workbench Programs Run Shut Dawn Connected Components Workbench Alternatively double click on the shortcut on the Desktop 2 Atthe Connected Component Workbench window drag 2080 LC30 16QWB from the Device Toolbox Catalog window into the Project Organizer window A new project will be created Device Toolbox Discover Catalog F Project Organizer ll xX Mame Projecti EH m Programs i Global variables DataTvpes m Function Blacks 2080 LC30 1606 Device Toolbox p Toolbox 3 At the Name field under the Project Organizer enter ST Program Project Organizer Mame ST Program 4 Under the Project Organizer right cli
74. s oe iz DataTvpes house m Function Blocks a PowerFlex 4 1 116 3 Double click on the new ladder icon Micro830 pe Programs Local var pum ac Global Variables Lg one 2 EE m Function Blocks PowerFlex 4 1 4 Open the Toolbox tab if it is not already open rco i Local Yar i ac Global Variables pee g DataTypes m Function Blocks PowerFlex 4 1 Show output from Pacis Pt ey 117 5 Drag and drop a Block on the rung The Instruction Block Selector will now open E Instruction Block Selector N A Category LU Arithmetic Arithmetic Arithmetic Arithmetic Substraction of two or more Multiplication of two or more Division of two or more inte 6 Type in MSG in the text box under Name and MSG_MODBUS will appear E Instruction Block Selector N A Se ee ETT H MSG MODBUS Communications Send a madbus message 118 7 Double click on the MSG_MODBUS and the following function block will appear 119 8 To use the block you need to configure it To find help on the instruction blocks in this case the MSG 120 Modbus go to Help Search click on Local Help and enter MSG Modbus in the search box MSG MODBUS Online Help Microsoft Document Explorer File Edit view Tools Window Help C9 Back o x Fy D AT 7i How Dol 3 Search cy Index d Contents x Filtered by no filter X Look For
75. s IO Embedded Digital Output 0 I O Micro830 tab __SYSVA_CYCLECNT System Variables Micro830 tab and SYSVA REMOTE System Variables Micro830 tab and map them to the register addresses as shown below Properties variable Mame Data Type Address Addresses Used DATA Int 400001 400001 TO Embedded Digital Output 0 Bool o00001 pogoni SS CYCLECHT Dink SO0001 SOO001 300002 SS REMOTE Bool 100001 LO0001 Notice that this variable uses two consecutive Modbus registers this is because it is a 32 bit variable 6 You have completed mapping variables to Modbus registers Save your project Configure Micro800 Serial Port You will be configuring your Micro800 controller as a Modbus RTU slave device The PanelView Component will be configured as the Modbus RTU Master 1 Open the Serial Port properties panel General From the Micro800 Device m Memory Configuration tree expand E Communication Forts Communication Ports and click LEMETEA Serial Port this will open the Serial L LISB Port Port Properties panel 2 Date and Time Interrupts z SEartup FaulEs z Modbus Mapping Embedded I O l Plug In Modules z USU SERTALTSOL m lt Empty gt 2 Configure the Serial Port Properties with the following values Properties Driver Baud Rate 19200 Parity None Unit Address fi Modbus Role Modbus RTU Slave 3 Expand Advanced Settings to configure
76. s Adapter 3 jeeepoeoeeococo BO 1968 Plug st AK U0 RJ45 TB2P 2 Connect the USB cable to the USB port shown below to establish communication between the PC and the Micro830 If this is the first time you connect to the controller refer to the Getting Started Guide Pub 2080 QRO001B EN P to establish communications between RSLinx and a Micro830 via USB Gra eoooocoooooooQ 1 e 131 Testing Modbus Communication with a PowerFlex 4 Class Drive In this section you will test the Modbus message created in the previous sections The rung below will trigger an input on the controller that will execute a Modbus read message 1 Start with the rung shown below For information on how to create this rung refer to the previous sections starting on Chapter 6 IO EM DI 01 TET l Target Locals 2 Build and download to the controller If you are not familiar with the download steps refer to the Getting Started Guide Pub 2080 QRO001B EN P 132 3 Once connection is established with the controller start debugging by pressing P in the top menu bar The following should show the Modbus message in debug mode r2 a ita Eo E 1 JO EM DL 01 4 Trigger Input IO EM DI 01 to read a Modbus message from the controller Notice that the function block input LocalAddr now is displaying a WORD value 133 5
77. sters The LocalCfg Channel should be set to 2 if you are using the embedded serial port otherwise enter the slot number of the serial port you are using ESI variable Selector B x Mame Global Scope Local Scope LocalCig Cmd Micro830 untitled D User Global Variables Micro830 Local Variables Untitled D System Variables Micro830 D Micro83 Defined wards Controller Name Data Type Intial alue Dimension Alias gil gt gt gf M DBLUSL LocalChg MODBUSLOCPAR LocalCfg Channel UINT 5 LocalCfg T rigaerT ype LISIMT O LocalCfg Crnd LocalCfg ElementCnit Type 3 Also Change the TargetCfg Addr to 8193 as shown below Remember that the Micro830 uses 1 based Modbus addressing therefore for writing logic command data Appendix A use 8192 1 8193 Reference Publication 22A UMO01I EN E ESI variable Selector alm x Mame Type Global Scope Local Scope JTargetCta MODBUSTARPARA f Micro830 f UntitedLD User Global Variables Micro amp 30 Local Variables UntitledLD System Variables Micra amp 3U D Micro830 Defined Words Controller Hame Data Type Inttal alue Dimension Alias EX g t MODBUS gt Target fa Addr Target Tg Made m DE Cancel Me 144 4 Now that the Modbus message will be writing to the drive create a rung that will trigger a 1 gain copy function block to hold the value that will be wr
78. t C600 2711C T6T This section will demonstrate how to transfer an offline PVc Application to a PVc terminal Transferring the file involves copying the application to a USB or SD flash media and then inserting it into the PVc terminal and copying it to the terminal 1 From your CCW project launch the PVc DesignStation Startup pane File Edit view Build Debug Tools Communication fgg H dd K 834 4 0 C 8 Double click the PanelView Component icon in the Project Organizer Project Organizer Mame ModbusRTU HMI E qt Micros30 A Programs i Global Variables y DataTypes The PanelView Component Design Station Startup pane will open as a new tab in the main project window l I Function Blocks Hie Transter Application Dashboard Panetview Component Design Staton 2 1 1 50 Enalien Portugu s Francais mano Deutsch Espanol PK paH Ceayrght 2010 Rochwel Autsmaten hc Al Rights Reserved 84 2 Insert either a USB flash drive or SD card into your computer 3 Setup a file transfer to copy the application to your USB SD flash media Click File Transfer 21View Component File Transfer Help Quit status Click New Transfer This will launch the File Transfer Wizard QUALITY File Tra mm Transfer files ta and from the terminal storage media al k Terminal Cleanup Delete File Permanently remove files from Internal S
79. tance When entering the instance the popup box will indicate the parameter needed for the Function block 10 IF IO EM DO 00 THEN 11 1 A b c p ELSE IF IO EM DO 01 THEN 13 AVERAGE 10 void AWERALGE 1 BOOL RUN REAL SIM DINT MJ Type AVERAGE Running average over M samples 7 Please end the parameter as shown AVERAGE_1 _lO_EM_DO_01 a 3 Where RUN _IO EM DO 01 XIN a N 3 8 Then assign the output of the AVERAGE to j as per shown Close the IF statement with END IF g 10 IF IO EM DO DO THEN 11 1 a b c i2 ELSE IF IO EM DO 01 THEN 13 AVERAGE 1 IO EM DO O1 a 3 14 j AVERAGE 1 XOUT 15 END IF 16 END IF Notes e he mathematical equation can be expressed by entering it as is If doing the calculation in ladder you might need a few function blocks to complete the equation Example i a b c or circumference 2 3 142 r with r is the variable or r circumference 2 3 142 e When using IF statement we must also close with an END F in the case if there is an ELSE IF statement used we must also close the ELSE IF statement with END IF 9 In completion of writing the program variables used must be created Double click on the Local Variables under the Selection programs to create variable ATTI Micraa3u E m Programs Selection The Selection VAR tab should look like the following Micra830 VAR Selection AR selection POU gf gf Wp 7 pE
80. to save your work Inserting a Function Block in a Structured Text Program This section will show you how to insert at function block in the existing Structured Text Program 1 Double click on the Selection to edit 2 At Line 10 of the Selection POU tab enter the following sentences g 10 IF _I0 EM Do oOo THEN ii 1 7 a h c 12 ELSE IF IO EM DO 1 THEN 3 At line 13 of the Selection POU tab enter AV and select AVERAGE from the pull down menu 13i Av fr sci 1 Eb ASIN ie ASIN LREAL ie ATAN ie ATAM LREAL Tu te 4 Then key in the following pull down menu will appear Select the Create New Instance 13 AVERAGE 14 15 5 The following dialog box will appear AVERAGE 1 is created S Instruction Block Selector AVERAGE Controller 2080LC301 60W B Category E ATAN Arithmetic Ts Arc tangent E A AM LAEAL Arithmetic Perform 64 bit real arctange AVERAGE Data Manipulation EH Hunning average over M sa AMA Communications fet wite a string with characte fil M Parameters Name Name Data Type Direction d Dimensic r gt T gt gt T E REAL Marlnput T DINT Marlnput HEAL Var 0 127 GIMT zu ed Instance AVERAGE 1 wv Show Parameters Inputs Scope Selection Note 3 Inputs are required for Average function block similar to Ladder Logic Representation RUN XIN N parameter will be required 6 Click OK to create an ins
Download Pdf Manuals
Related Search
Related Contents
Lenovo 04W3949 Kenwood HM-DV6MD User's Manual MD1018A Cercametalli MANUALE UTENTE 取扱説明書 - 株式会社日本 LED照明 HCE-C252RD HCE-C257FD Tecumseh AJA9484EXTXC Drawing Data Tutorial Development Kit for 32-bit ARM Microcontrollers with a the 48GII Quick Start Guide here Copyright © All rights reserved.
Failed to retrieve file