Home

Training Manual for Cscape and NX / LX

image

Contents

1. 49 006066 61 545 450 16 606 6666 ed sao eee ao uana aa s a 49 din ad dis uius a 51 O VEV OV au ie 51 Part 1 5 TON Timers oerte eere 51 Part 2 Retentive TON Timers 6666 6 E E 53 3 TOE Has d kastid Ete te A ele e rece E Ete ovdi eod 54 Counters OVeEVIe Wood A ons tae eode ertet dat Er ed de DATE ates oe 55 Part 4 C TU COUnters rn eat wenn hs eee 55 nose E cL 56 alamaid eee octo etes ast avati jadal Re 57 58 59 61 Dc OE OR EAS 61 63 Pait 2 Block MOVE MS tito dte et et ideis 63 Part3 WORD ciao SUA te Bir MI M o pU Dial 64 Part 4 Constant and Indirect Moves sess eene nennen 64 Extra Creditt t a 65 sss Ee 66 NOUS Istudes en Khan E SI 68 JP yg 69 ESCAN Basic Netwo
2. s View Window Help 5 gt e wialo x Boolean Elements epe Ts oli wl em elel 45 orto er n ro ESE ESE Ara TEEME KAPS ESPE A B c D F H 1 J K N 9 5 T 0800 05 17 2007 19 Lab 1 Basic OCS Programming and Configuration Step 3 gt Save the untitled1 program with a new name Click on the File menu and select Save As 1 Cscape untitled1 B Edt Program Controller Debug Tools Screens View dow Help ces pmimiR malol B r ass zs iol E So 5 lt gt lt Export To CompactFlash G H 4 K Project Alt Summary Info print Ctrl P Print Previe Q4 Print Setup Firmware Update Wizard test csp 5 N Save the active program file with a new name User NONE 5000 5210 lt Model Unknown Locali Target 12 Type your program name such as NX251 csp in the File Name dialog box and click the Save button Jess eile AO A Blea Ol amp Boolean Elements AHA Hle e er e Koli aml eml al nes e 72 Cscape untitled1 EIE mejor
3. RS H vx exe 818821 95459 lt gt 1402 1 B c D E F H 1 J K L M o R 5 1 1 2 3 Save in Examples z e ek E3 alarm test csp j i data log csp 8 4 ja 5 barco char rep 6 Filename NX251 csp 7 Save as type Contro 8 9 1 12 lt gt Ready User NONE JHE5000CS210 CsCAN Model Unknown _ Local Target 1 17 Feb 2007 PAGE 20 MAN0800 05 Lab 1 Basic OCS Programming and Configuration Step 4 gt Configure the OCS Controller Click on the Controller menu and select I O Configure Cscape NX251 csp gt File Edit Program 18 c amp 3 I O Configure Boolean Elemenis E 1 Set Target Network ID Set Network Baud Rate Debug Tools Screens View Window Help Set Local Network ID Data Watch Status Diagnostics View Set Clock Clear Memory Idle Stop Run Monitor If you are online with the OCS use the Auto Config System button Clicking it will automatically configure the controller and any attached I O if you are connected to the OCS properly Otherwise to do it manually 1 Double click on the controller picture or click the Config button next to it 2 Select NX251 from the list and click OK Select the Main tab at the top of the I O configuration screen 1 0 Configuration CPU Slots Main Base 2 Base 3 Base 4 Base 5 Base 6 Network 1 0 Nxzs1cscan
4. The first type of Move is the Move Word or MOV It is used to copy a single byte word or double word from one location to another The count is locked at 1 In the case of the example to the left the value in R1 is copied into R101 This only happens when the ladder rung receives power The value in R101 is NOT taken back out when power is lost to the rung The IN can be either a register or a constant value The next type of Move is the Move Data Block or BMV It is used to copy a group of bytes words or double words to another location The count N determines how many registers are to be copied In the example to the left R1 R5 are copied into R101 R105 Again this only happens when the ladder rung receives power The IN must be a register reference and constant values are not allowed The next type of Move is the Fill WORD or Fill It is used to copy the contents of a single register or value into multiple other registers thus filling that one value into a group of registers The count N determines how many registers to fill that single value into In the example to the left the value in R1 is copied into R101 R105 so that R101 R105 all will have the same value in them This can be used to zero out a group of registers The IN can be either a register or a constant value 17 Feb 2007 PAGE 61 Confused yet PAGE 62 4 4 Li Li
5. gt el Li 4 4 4 Lab 5 Move Operations Skipping to the Constant Move or CST MOV it is used to move a group of constant values into a group of consecutive registers If for example you want to move the values 1 2 3 4 and 5 into R101 R102 R103 R104 and R105 respectively then you can use the Constant Move function The count N is automatically determined by how many constant values you enter into the configuration for this function The source data can ONLY be constant data and cannot be register references Moving back one to the Indirect Move or IMV it is used to move data from variable positions or to variable positions or both It functions for the most part like the Block Move function If specified as Indirect the IN and or the Q are used as pointers to where in the R registers to get data from or put data to When looking at the ladder logic the symbol will appear next to the IN or Q address if it is specified as Indirect This function can and most likely will get hairy to the uninitiated It is most handy though when data logging to register memory Indirect Move Examples In this example the IN is specified as Indirect This means the controller will look at R1 and see a value within it If R1 has value of 501 in it the controller will go to R501 to get the source data 5 registers will then be moved from R501 R505 to R101 R105 In this
6. 13 Compare the operation of R2 15 or Enabled to the operation of the F1 key They should be the same 14 Compare the operation of R2 16 Off or Power to M1 They should be the same You can use R2 16 in place of M1 in programming 15 Watch the value in R1 to see the accumulated time when F1 is pressed Letting go of F1 before the 3 seconds is up will cause the timer to automatically reset to 0 Part 2 Retentive TON Timers 1 To the above program add a timer that times and keeps track of how long the F2 key has been pressed After the total has reached 5 seconds the timer should pass power unless the F10 key is pressed to reset the accumulated time Configure the Timer for 10ms resolution HINT Since this timer is set for 10ms resolution 5 seconds is equal to a Pt of 500 500 10ms pulses equals 5 seconds HINT Remember each Timer or Counter takes 2 word length R registers The timer from Part 1 takes up R1 and R2 Don t overlap this timer with that one 2 Configure a text table on the screen to show Off or On depending on the state of the Timer Passing Power status bit You may have to start a new screen HINT Since you have already created a text table for R2 16 with and Power you can link this timer s status bit to the same text table Two different registers can use the same text table 3 Configure a numeric data field that displays how mu
7. Configure for 1 bit 17 Feb 2007 MAN0800 05 Lab 1 Basic OCS Programming and Configuration F2 KEY F3 KEY F4 KEY F5 KEY FB KEY F7 KEY F8 KEY F3 KEY F10 KEY F1 KEY F12 KEY FST_SCN PAUSING_SCN RESUMED_SCN K0001 ET bit J MAN0800 05 17 Feb 2007 PAGE 23 Lab 1 Basic OCS Programming and Configuration Step 7 gt Program the following rung A B c D E F 2 3 T i i 29 20 mm 27 5 727 1 Select and drop the three normally open contacts 2 Select and drop the normally closed contact 3 Add the vertical connecting lines 4 Select and drop two normally open coils Step 8 gt Add the element names 1 2 E STOP Sum STOP Force Screen 2 1 210001 Em K0002 200001 3 00001 1 Double click each element the rung 2 Select the name or address from the drop down list Name the last coil D2 and specify it as a Force Screen 3 Click OK Step 9 gt Add words to screen 2 1 Double click the screen in the ladder logic 2 Click Edit Screen 3 Insert Static Text at the top center of the screen Edit the text to display MACHINE PAGE 24 17 Feb 2007 MAN0800 05 Lab 1 Basic OCS Programming and Configuration 4 Insert Static Text in the center of the screen just below the text insert above This Static Text should indicate RUNNING 5 Note thatthe size of the box will need to be stretched and the font sized should be increased fr
8. PAGE 82 17 Feb 2007 MANO800 05 Lab 7 Color Touch Screen Configuration Extra Credit Change your trend screen similar to the following Machine Speed and Hz Machine Setting This screen adds Start and Stop capabilities to this screen The Start and Stop Static Text legends on the above screen are only that legends for the function keys next to them The user must press F4 to activate the Start Functionality and F5 to activate the Stop functionality Use the same Start M1 and Stop M2 bits previously assigned More Extra Credit Make the Start legend visible only when the run circuit is off Make the Stop legend visible only when the run circuit is on Use the dynamic display properties accessed through the Attributes button when configuring the Static Text legends Check the Visible box under the Dynamic heading and specify an Override Register When the first bit of the override register is turned on this legend will be visible MAN0800 05 17 Feb 2007 PAGE 83 Lab 7 Color Touch Screen Configuration Notes PAGE 84 17 Feb 2007 MAN0800 05 LAB 8 Graphic Alarms MAN0800 05 17 Feb 2007 PAGE 85 Lab 8 Graphic Alarms PAGE 86 17 Feb 2007 MAN0800 05 Lab 8 Graphic Alarms Objective Understand the powerful Alarm capabilities of the LX Procedure Build off of your program from the previous lab Remember that the Smart Stix needs to be configured for
9. Smart sisininin tackm Ethemet 300 Ethernet Auto Config System Cancel MAN0800 05 17 Feb 2007 PAGE 21 gt 8 9 11 Click OK Lab 1 Basic OCS Programming and Configuration Double click on the first I O module slot or click the Config button next to it Select the Mixed Digital tab Select DIQ611 from the list Click OK To delete or replace a module right click on the module Double click on the second I O module slot Select the Analog In tab 10 Select the THM100 12 Double click on the third I O module slot 13 Select the Analog Out tab 14 Select the DAC101 15 Click OK 16 Click OK again to exit the I O configuration Step 5 gt Save the program Click on the File menu and select Save Step 6 gt Name some 1 0 points Click on the Program menu and select I O Names Add points by clicking the Add button and filling in the information Edit an existing I O point by finding it in the list and double clicking it Add or edit the following points 101 K1 K2 Q1 D 1 D2 PAGE 22 E STOP Configure for 1 bit START 1 is named F1_KEY by default so it will need to be edited instead of added Configure for 1 bit STOP 2 is named F2_KEY by default so it will need to be edited instead of added Configure for 1 bit RUN Configure for 1 bit Stopped_Screen Configure for 1 bit Running_Screen
10. BBE 5 File 2 4 t Memow vale Type Name 1 10001 R0001 348 INT 00001 10001 OFF BOOL New Rung New Comment Delete Rung Insert 1 Blank Line 4 Insert Blank Lines gt Start OEM Section End OEM Section i Running User NONE HE5000CS250 CsCAN Model Not Equal Local 1 Target 1 R no force The status bar has many useful features 3 points to the status bar 2 7 1 User The User field indicates which user is currently logged into the program via use of the Security features If security is not configured or if no one is currently logged in this will indicate NONE as it does in the illustration 2 7 2 Model This will let the programmer know which unit the program is configured for and whether the configured model is equal to the model that the PC is connected to 2 7 3 Program Equality This is the box to the right of the Model box This will let the user know if the program in the unit and the program in Cscape are equal If the status indicates Unknown the user might need to perform a verify between the controller and the software 2 7 4 Local and Target The Local ID indicates the node ID of the controller that the PC is directly connected to while the Target ID indicates the node ID of the controller that Cscape is trying to talk to The Target ID does not need to match the local id If programming is to be performed across the CsCAN Bus then the Target will be the n
11. M1 M5 Write a line of code that uses a NET_GET instruction configured for discrete from id 2 Network Get Words Network Data 44 Name 5 Format Global Data Data Digital WodOfhetn Analog Destination Data Address M0001 Name Num Words 1 Cancel 2 Write additional rungs of logic that will turn on Q1 Q5 when M1 M5 M1 will turn on Q1 M2 will turn on Q2 etc is active This can either be done through contacts and coils or via a move command PAGE 74 17 Feb 2007 0800 05 Lab 6 Basic CsCAN Networking Step 3 gt Verify the program s functionality When F1 of the LX300 is pressed LED 1 of the panel LED 1 that is connected to the NX251 output card will illuminate gt Part 2 Solution ALW ON 250007 2 9 060001 LX300 Program Addition ALW_ON ALW ON Net Get word 50007 50007 2 9 0001 24060001 IN 9 0001 1 ALW ON MOV H 1 word M0001 2010001 50007 0001 8 00001 0002 00002 4 0003 Q0003 Mi 2 0004 200004 Be 0005 00005 Option 1 Option 2 251 Program Addition 0800 05 17 2007 75 Lab 6 Basic CsCAN Networking Part 3 Smart Stix Step 1 gt Modify the NX251 Program 1 Configure theNX251 for Smart Stix I O This is done via the Network I O tab located in the configuration C
12. and Marketing Ext 2 apgsales heapg com Ken Jannotta Sr VP of Sales and Marketing Office 434 973 9245 Cell 434 825 7550 kensr jannotta heapg com Roy Lowery Business Development Manager 317 492 9078 Cell 317 40 7 9506 roy lowery heapg com Chuck Ridgeway Product Manager 317 492 9081 chuck ridgeway heapg com Bill Giebel Business Development Manager 317 492 9079 Cell 317 407 7937 bill giebel heapg com Tom Filipek Business Development Manager Office 651 426 2282 Cell 612 840 6653 tom filipek heapg com Eric Broyer Technical Support Manager 317 492 9102 eric broyer heapg com Nate Beachey System Design Engineer 317 492 9118 nathan beache MAN0800 05 17 Feb 2007 heapg com PAGE 105 PAGE 106 17 Feb 2007 0800 05
13. are configuring the coil you can click the Screen gt button and choose the screen to associate the coil with from the thumbnails shown The D address will automatically fill in this way 5 Add ladder logic so that the F3 key will FORCE screen 3 OO a Force Screen 3 1 a D LU B r LU is 1 1 D 4 4 4 4 4 4 6 Save and download the program to the controller Screen 1 should display after the program is downloaded Press the F2 key and note how the switch screen works Press F1 to switch back to screen 1 Press F3 and watch how screen 3 will be on only for as long as you hold down the button When you PAGE 40 17 Feb 2007 0800 05 Lab 3 Screen Manipulation let go the screen you were previously viewing will come back up Try pressing F3 from both screen 1 and screen 2 to see this Open a datawatch window in Cscape and add SR1 and SR2 as INT values to watch the system registers and what they do when the buttons are pressed Part 2 Changing the System Registers Another way of displaying a screen is to directly move a value into one of the screen system registers Using a simple Move function Move functions are gone over in detail in an upcoming lab a value representing the screen number be moved to S
14. information should now appear in the R11 data 10 Every time that the T1 button is pressed the value in R1 will be stored So to read different values that have been stored change the value in R201 by 10 This can be done through data watch or by placing an editable field on the screen for R201 PAGE 94 R201 0 First write done to the DATA csv file R201 10 Second write done to the DATA csv file 17 Feb 2007 MAN0800 05 Lab 9 Removable Media Functions The next page contains a ladder example of the solution CompactFlash File Naming The OCS NX CF function blocks support the flash with a DOS Windows standard FAT16 file system All names must be limited to the eight dot three 8 3 format where the filename contains a maximum of eight characters a period and an extension with a maximum of three characters The entire filename including any path must be less than or equal to 147 characters in length When creating filenames and directories it is sometimes desirable to include parts of the current date or time There are six special symbols that can be entered into a filename that are replaced by the OCS with current time and date information Symbol Description Example Y Substitutes the current 2 digit year 2004 04 M Substitutes the current month with a 2 digit code March 03 D Substitutes the current day 22nd 22 h Substitutes the current hour in 24 hour format 4PM 16 m Substitutes the current
15. is the ability to load an OCS NX XLE with a program from a RM card instead of through Cscape The programmer saves the Cscape program as a special file type with a pgm extension by clicking the File menu and selecting Export to Removable Media It can be exported directly to a Media writer connected to the computer or to anywhere else on the computer to be transferred to RM later The user will then insert the RM card into the OCS and through the System Menu select Removable Media to find the correct file to load The screen shot below illustrates where in Cscape the write to Removable Media is done Cscape untitled1 5 File Edit Program Controller Debug Tools Screens View Window Help 1 New Ctrl N 4 Open Ctl 0 Close Save Ctrl 5 Save As Import Export Program Export To CompactFlash Project Alt J Summary Info Print Ctrl P Print Preview Print Setup Firmware Update Wizard TE Training lab8p1 csp 2 C WIND WS XTEMP OCSS551 csp 3 CNWINDOWSS STANDARD HA csp 4 CAWINDOWS TEMPtest csp Exit RM Screen Captures The SVGA ColorTouch OCS NX XLE units have the ability to capture a displayed screen to RM as a JPEG or Bitmap file These images can then be recalled on the unit through the RM manager or viewed on a computer with a graphics viewer PAGE 98 17 Feb 2007 0800 05 Lab 9 Removable Media Functions Configuring the Screen Cap
16. manufactured by HE APG is free from defects in material and workmanship under normal use and service The obligation of HE APG under this warranty shall be limited to the repair or exchange of any part or parts which may prove defective under normal use and service within two 2 years from the date of manufacture or eighteen 18 months from the date of installation by the original purchaser whichever occurs first such defect to be disclosed to the satisfaction of HE APG after examination by HE APG of the allegedly defective part or parts THIS WARRANTY IS EXPRESSLY IN LIEU OF ALL OTHER WARRANTIES EXPRESSED OR IMPLIED INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR USE AND OF ALL OTHER OBLIGATIONS OR LIABILITIES AND HE APG NEITHER ASSUMES NOR AUTHORIZES ANY OTHER PERSON TO ASSUME FOR HE APG ANY OTHER LIABILITY IN CONNECTION WITH THE SALE OF THIS Cscape Software THIS WARRANTY SHALL NOT APPLY TO THIS Cscape Software OR ANY PART THEREOF WHICH HAS BEEN SUBJECT TO ACCIDENT NEGLIGENCE ALTERATION ABUSE OR MISUSE HE APG MAKES NO WARRANTY WHATSOEVER IN RESPECT TO ACCESSORIES OR PARTS NOT SUPPLIED BY HE APG THE TERM ORIGINAL PURCHASER AS USED IN THIS WARRANTY SHALL BE DEEMED TO MEAN THAT PERSON FOR WHOM THE Cscape Software IS ORIGINALLY INSTALLED THIS WARRANTY SHALL APPLY ONLY WITHIN THE BOUNDARIES OF THE CONTINENTAL UNITED STATES In no event whether as a result of breach of contract warranty tort including negligence or otherwise sh
17. minute s Substitutes the current second p Substitutes the currently displayed 4 digit screen number 53 0053 1 1023 Intended mainly for screen capture Note that all the symbols start with the dollar sign character Date symbols are in upper case time symbols are in lower case The following are examples of the substituted time date filenames If the current date and time March 1 2004 3 45 34 PM Data M D csv Data0301 csv Year Y Month M aa D_ h csv Year04 Month03 aa01_15 csv Month_ M Day_ D h_ m_ s csv Month_03 Day_01 15_45_34 csv MAN0800 05 17 Feb 2007 PAGE 95 PAGE 96 Lab 9 Removable Media Functions RIM READ RM READ R 70002 10002 DATA csv R0201 10 Dest R0011 Status 0100 AM WRITE Write RM csv RM WRITE INT 270001 New Apnd 10001 DATA csv 0001 10 10 Status 40102 17 Feb 2007 MAN0800 05 Lab 9 Removable Media Functions CompactFlash File Counters Another tool available for use in naming Removable Media files is the Filename Counter There are four available Filename Counters that can be separately configured Configuration is done through the Graphics Editor by clicking Config and selecting Filename Counters Each Filename Counter requires a 32 bit register regardless of the maximum values that the counter will see A maximum value is specified for each counter and also the options to auto increment and wrap the counter value The auto increment function causes t
18. of the Training Manual for Cscape and LX contains the following revisions additions and deletions 1 Added a new Lab 3 and re numbered the subsequent labs accordingly 2 Made minor corrections throughout the document as needed TABLE OF CONTENTS Introd chon to CSCODE SA 9 Quick Start Guide 9 11 Egurpiment Neededos must uus als 11 aS TORN OA 16 IE 17 Basic OCS Programming and Configuration eee ee eene seen sese se een 17 Bouche CM RR sade 19 are tem e E e SEAE ROR 19 beoe teal na 28 TAB AREAS 29 Text A TT TSD 29 ODJECU VE RENNEN 31 PROCECUIE UU UIT 31 NOLSS IH nC 35 LAB 3 nai Nana eei e eai NE 37 Screen Manipulation o Re E NEIN SPESE MS INI ISERNIA D NENNEN 37 Bou cc P usb ah S 29 SCTESMMOVEL VI CW eae ce mad maa aaa net mida a 39 Part 1 Switching and BOreme a oodo etes pieta ee 39 Part 2 Changing the System Registers ak ar MH 41 Part Screen JUS s vat Seeland aule 41 Extra Credit eai itid aged 44 Extra Credit 3125 uo eet TS manner TS 45 8 E M ER 45 Nos RC E TE 47
19. on the Demo Panel Switch 1 is connected to the first digital input on the 010611 I O card which is addressed to 101 E STOP 8 STOP should be red PAGE 26 17 Feb 2007 MAN0800 05 Lab 1 Basic OCS Programming and Configuration The screen should show MACHINE STOPPED Push the F1 key START should turn red until you release the F1 key The RUN coil and contact should both turn red The screen should change to MACHINE RUNNING Output 1 should turn ON Push F2 or open switch 1 The output should turn OFF The screen should show MACHINE STOPPED CONGRATULATIONS You have finished your first OCS program Now move on to LAB 2 and learn additional skills MAN0800 05 17 Feb 2007 PAGE 27 Lab 1 Basic OCS Programming and Configuration Notes PAGE 28 17 Feb 2007 0800 05 LAB 2 Text Tables MAN0800 05 17 Feb 2007 PAGE 29 Lab 2 Text Tables PAGE 30 17 Feb 2007 MAN0800 05 Lab 2 Text Tables Objective Add a variable field to screen 1 containing a Text Table and eliminate screen 2 This lab is a continuation of LAB 1 Procedure Step 1 gt Delete screen 2 from the program Cscape NX251 csp File Edit Program Controller Debug Tools Screens View Window Help jew 121 ejgr B O B xe Boolean Elements ir veo epe eere 1 s OLI ale ejm aee 5 B c D E F G H J K L M N 3 STOP START STOP RUN Force Screen 2 OA E 1 4 1_
20. the I O used in this lab From the Graphics Editor click on the Config menu and select Alarm Configure Alarms as following a Alarm Trigger M1601 Max Number of Alarms 32 Name the first 4 alarms as follows by double clicking them in the list a Alarm 1 Group 1 Low speed Warning a Alarm 2 Group 1 High speed Warning a Alarm 3 Group 1 Motor Overload Trip a Alarm 4 Group 1 E stop Trip Exit the Alarm configuration and the graphics editor Add to your logic to trigger Alarm 1 M1601 whenever R7 is less than 15 and the machine is running Add to your logic to trigger Alarm 2 M1602 whenever R7 is greater than 90 Add to your logic to trigger Alarm M1603 whenever 11 is on Add a normally closed l1 to your run circuit so that the circuit will not run if l1 is on Add to your logic to trigger Alarm 4 M1604 whenever 12 is on Add a normally closed l2 to your run circuit so that the circuit will not run if l2 is on Back in the graphics editor add an Alarm Indicator Button to the Control Panel Screen as well as to the Trend Screen An example is shown in Figure 1 The Alarm Indicators should display an Alarm Summary when pressed for all Alarm groups Create a new screen that is called whenever F3 is pressed This screen should contain an Alarm Summary Object and an Alarm History Object An example is also shown in Figure 2 For help in changing to a different screen consult the screen manipulatio
21. the screen with the Block Move information and so on CONGRATULATIONS YOU VE FINISHED THE LAB ON MOVE FUNCTIONS MAN0800 05 17 Feb 2007 PAGE 65 Lab 5 Move Operations Solutions PAGE 66 17 Feb 2007 MANO800 05 Lab 5 Move Operations MAN0800 05 17 Feb 2007 PAGE 67 Lab 5 Move Operations Notes PAGE 68 17 Feb 2007 MAN0800 05 LAB 6 CsCAN Basic Networking MAN0800 05 17 Feb 2007 PAGE 69 Lab 6 Basic CsCAN Networking PAGE 70 17 Feb 2007 MAN0800 05 Lab 6 Basic CsCAN Networking Objective Review and Understand global data transfer from OCS to OCS over CsCAN Procedure Part 1 Analog Data Over CSCAN Step 1 gt Create new NX program 1 Title the NX program NX CsCAN 2 Set the target to node id 1 Verify through the system menu of the NX251 that the node address is set to 1 and that the baud rate is 125K 3 Configure the NX251 Reference Lab 1 for correct procedure 4 Write a ladder program to increment a counter every 1 second Assign the counter to R1 The counter should be configured to count to 200 Use the 16 bit of the second word of the counter R2 16 to reset the counter upon the counter reaching the preset value Remember that the counter will occupy 2 registers so the counter will consume R1 R2 HINT S5 is a system register that pules every second 5 Write a line of code to place the accumulated value of the counter out onto the network allowing other nodes o
22. 0 05 2 5 2 6 MAN0800 05 Intro to Cscape Quick Start Guide 2 4 2 Configure the controller from the Auto Configure option Keep in mind on existing programs that Auto Configure will erase I O configurations that deviate from the default parameters An example of this would be in an application with a High Speed 170 Configuration FI CPU Slots Base 1 Base 2 Base 3 Base 4 Base 5 Base 6 Base 7 HESDOOCS300 CsCAN Config TAA Cancel Counter that uses an option other than option 1 or any analog modules that have the ability to change the input or the output type Configuring the I O is done from the same place as configuring a controller I O is never automatically configured without the user telling it to happen unlike the controller that will automatically configure if the PC is connected to it when Cscape is opened 2 5 1 2 5 2 If the Auto Configuration option is used the I O will be recognized when you Auto Config On OCS units utilizing the FOX system the I O will appear on the base where the I O is connected On the OCS250 and below the I O will appear on the stack with the controller The one exception is for Ethernet cards which will always be connected directly to the controller regardless of controller type If the I O is manually configured go to the position that the module is to be configured and click on the Config button or double click on the position The screen shown belo
23. 2007 PAGE 89 Lab 8 Graphic Alarms Notes PAGE 90 17 Feb 2007 MAN0800 05 LAB 9 CompactFlash Functions MAN0800 05 17 Feb 2007 PAGE 91 Lab 9 Removable Media Functions PAGE 92 17 Feb 2007 MAN0800 05 Lab 9 Removable Media Functions Objective Understand the functionality of the Removable Media RM on controllers that support it CompactFlash Data Files The following controllers support compact flash OCS451 551 651 NX22X 25X XLE This gives the program the ability to store information to the RM card and also read information back into the program Since the information is stored in a Comma Separated Value CSV format the RM card can be removed from the unit and then read into a spreadsheet Conversely a CSV file could be created from a PC stored to the flash and then read into the OCS RM ladder functions are found in the Special Operations toolbar Write RM csv INT New Apnd DATA File Name R0201 Offset 10 Num 10 Dest R0011 10 Status 70100 Status A0102 1 Open Cscape and create a ladder program that will write 10 registers of information starting at R1 when triggered by T1 Use the Write RM function configured for Create Append to perform this action and call the file Data csv Place a rest coil after the Write RM function with the address of T1 2 Create a line of code that will read the information from the Data csv file and store the information in R11 when T2 is trigge
24. 210001 0001 0002 00001 4 Cancel Selection Cut 00001 Paste Element Properties Delete Edit Screen Where Used Add To Watch 7 8 Right click on screen 2 in the rung Then click Delete Step 2 gt Edit screen 1 Click on Screens select View Edit Screens Step 3 gt Delete the Static Text 1 Delete both Static Text Fields on screen 1 2 Delete both Static Text Fields on screen 2 Hint CTRL A Select All then delete the elements MANO800 05 17 Feb 2007 PAGE 31 Lab 2 Text Tables Step 4 gt Add afield 1 Place the Text Table Object on screen 1 Remember that the field will need to be stretch to size and the parameters will need to be configured View Edit Graphic Pages Edit Grouping Screens Config Language View Tools Help aja HH TESI TIERE e EI Text Table Data Step 5 gt Edit the field 1 Double Click on the field 2 Change Address to Q1 In Data Format verify Register Width 1 bit 7 Digits Editable is not checked and Font San Serif 15 Text Table Data Properties Controller Register Address 200007 Register Width Name RUN Data Format Justification Font C Left Center Right SanSeif15 v Digits Text Table Number 7 Text Table gt gt gt Editable Display Properties Attributes gt gt gt Background Color gt gt gt ES Lege
25. 6 and put in another Screen Jump Double click on it to configure it and check the Simulate ESC box This is all that is needed for this jump 10 Exit the screen editor and save the program 11 Download the program to the controller Screen 1 should display after the program is downloaded Press the Screen Jump to go to screen 2 then to screen 4 and back to screen 1 On any of those screens press the Screen Jump to go to screen 6 When screen 6 is displayed pressing the ESC key on the keypad or the pushbutton on the touch screen controllers will return to the screen that screen 6 was called from Part 4 Menu Object On XLE controllers the display is limited to 2 soft keys on each side of the display thus limiting the size and the number of items placed on the screen To overcome this obstacle the Menu Object can be used The Menu Object has many features but for our lab we will be using it for screen manipulation 1 Connect to the XLE using the DB9 to RJ45 cable The cable will be connected to MJ1 port located on the right side of the XLE 2 Open Cscape and start a new program 3 Change the Target ID to 4 in Cscape This done by pressing the Bulls Eye at the top of the tool bar or by selecting Controller from the menu and then selecting Set Network Target ID 4 Configure the Controller and the I O like in the previous labs 5 Open the Graphics Editor and configure screens 1 6 to indicate SCREEN using th
26. 8 Config Size High 59 60 Reserved 19 Net Config Size Low 61 Num Ids 20 Net Config Size High 62 174 Reserved 21 Security Data Size Low 175 CF Status 22 Security Data Size High 176 CF Free Low 23 Ladder CRC 177 CF Free High 24 User Text CRC 178 CF Total Low 25 System Text CRC 179 CF Total High 26 Config CRC 180 Reserved 27 Net Config CRC 181 Alarms Unacknowledged 28 Security Data CRC 182 Alarms Active 29 Network ID Low 1 253 183 System Beep 0 1 30 Network Baud Rate 0 3 184 User Beep 0 1 31 Network Required 0 1 185 Screen Saver 0 1 32 LCD Contrast 1 255 186 Screen Saver Time 5 1200 33 Key Toggle Mode 0 1 187 Network Usage Avg 0 1000 34 Serial Protocol 188 Network Usage Min 0 1000 35 Serial Number Low 189 Network Usage Max 0 1000 36 Serial Number High 190 Network TX Use Avg 0 1000 37 Model Number 191 Network TX Use Min 0 1000 38 Engine Version 192 Network TX Use Max 0 1000 Maximum User Alarm and System screens vary from model to model Max 200 for MiniOCS OCS1x0 OCS2x0 Max 1023 for NX2xx OCS3xx OCS4 5 651 For Details on the functionality of the different SR registers consult the Cscape help file MAN0800 05 17 Feb 2007 PAGE 103 PAGE 104 17 Feb 2007 MAN0800 05 HORNER APG HORNER APG CONTACTS Phil Horner President 317 492 9080 hil horner heapg com Technical Support Ext 3 techsppt heapg com Customer Service Ext 1 APGCustomerService heapg com Sales
27. E 39 Lab 3 Screen Manipulation When forcing a screen the screen will be forced to display for as long as the coil has power The screen number of the screen being forced is also reflected in SR2 Ifa screen is forced the value in SR1 is not affected and stays the same as it was When the screen is no longer forced the controller will return to the screen reflected in SR1 For example if screen 51 is being displayed and an alarm occurs that forces screen 20 SR1 will have a value of 51 and SR2 will have a value of 20 When screen 20 is released from its force SR1 will still have a value of 51 and SR2 will have a value of 0 When switching a screen the screen specified by the D register will be switched to and will stay there even after power to the coil has been lost This change is reflected in SR1 For example if screen 51 is being displayed and the screen is switched to screen 30 SR1 will change from 51 to 30 1 Create a new program for the NX Configure the I O as shown in Lab 1 2 Using the screen editor Screens menu View Edit Screens or click m on the toolbar put a Static Text label on screen 1 that says Screen 1 Do the same for Screen 2 and Screen 3 with Static Text labels that say Screen 2 and Screen 3 3 Exitthe screen editor and save the file 4 Add ladder logic so that the F1 key will SWITCH to Screen 1 and the F2 key will SWITCH to Screen 2 Note that when you
28. HORNER APG Training Manual for Cscape and NX LX 17Feb 2007 MAN0800 05 PREFACE This manual provides introductory level training for Cscape Software users using NX LX Copyright C 2006 Horner APG LLC 59 South State Street Indianapolis Indiana 46201 All rights reserved No part of this publication may be reproduced transmitted transcribed stored in a retrieval system or translated into any language or computer language in any form by any means electronic mechanical magnetic optical chemical manual or otherwise without the prior agreement and written permission of Horner APG Inc All software described in this document or media is also copyrighted material subject to the terms and conditions of the Horner Software License Agreement Information in this document is subject to change without notice and does not represent a commitment on the part of Horner APG Cscape SmartStack SmartStix and CsCAN are trademarks of Horner APG DeviceNet is a trademark of the Open DeviceNet Vendor Association OVDA Inc Ethernet is a trademark of Xerox Corporation CompactFlash is a registered trademark of SanDisk Corporation For user manual updates contact Technical Support North America 317 916 4274 www heapg com email techsppt heapg com Europe 353 21 4321 266 www horner apg com email techsupport hornerirl ie Horner APG LLC HE APG warrants to the original purchaser that the Cscape Software
29. Note that the push buttons slider bar and the lamp indicators are placed on top of round rectangles The round rectangles have the fill color modified from the default of none to give the effect shown above D 0 0 0 D D UD 0800 05 17 2007 81 Lab 7 Color Touch Screen Configuration Create a simple Start Stop circuit in Ladder with Q1 Run as the Coil Create a simple rung in Ladder using an Integer Scale Function look under the Advanced Math blocks The scale function is always on and should scale input R7 0 to 100 to output R5 0 to 60 Run the Ladder Logic making sure that the logic runs as desired Now change your ladder so that the Run circuit will not be enabled unless the LX is in Automatic mode Hint Automatic Mode is selected when R10 2 Create a new screen similar to the following Machine Speed and Hz Time sec Trigger Off Machine Setting a Trend Type 50mS Continuous Scope a Trend Trigger Assign to T1 a Trend Pens Pen 1 R7 scale 0 100 Pen 2 R5 scale 0 60 Don t forget to Enable Pen 2 Pushbutton Trigger Assign to T1 Configure the Pushbutton for Toggle Mode a Scale Assign to R7 scaled 0 100 Add logic to your ladder that uses F1 to call up the control panel screen and F2 to display the trend screen This should work regardless of which screen is currently being displayed Download and test the program
30. Point A 32 bit value Values are stored and operated on in IEEE single precision six digit format Values range from 3 40282E 38 to 3 40282E 38 STRING String A variable length succession of characters Each character is represented by one byte Register Types Type Description and example of what might use the type Format Retentive Available l Discrete Inputs from the field prox sensors panel buttons etc BOOL YES 2048 Q Discrete Outputs to the field relays indicator lamps etc BOOL NO 2048 Al Analog Inputs from the field Thermocouples 4 20mA inputs WORD YES 512 AQ Analog Outputs to the field 0 10VDC or 4 20mA outputs WORD NO 512 Global Discrete Inputs from the in from other OCS BOOL YES 64 per node QG Global Discrete Outputs to the CAN out to other OCS BOOL NO 64 per node AIG Global Analog Inputs from the CAN in from other OCS WORD YES 32 per node AQG Global Analog Outputs to the CAN out to other OCS WORD NO 32 per node T Internal Temporary bits use for contacts and coils BOOL NO 2048 M Internal Temporary bits use for contacts and coils BOOL YES 2048 R Internal Registers use for Timers and Counters and other data WORD YES 2048 9999 K Keypad bits reflect Function Key status BOOL NO 5 12 D Display bits control screens or indicate screen on off BOOL NO 200 1023 S Internal System Bits See System Registers BOOL SR Internal System Register
31. R1 to switch the screen Cscape programming does not allow the user to write a value to SR2 to change the screen To turn on Alarm Screens SR2 either the D coil for that screen will need to be specified as an Alarm Screen and forced on or the logic Alarm handler can be used Part 3 Screen Jumps A way of letting a user change screens from the screen itself without involving any ladder logic is to use Screen Jumps This is an object that is placed on the screen just like any other object or data field on the screen A screen number is specified as the screen to jump to One advantage to using Screen Jumps in addition to not having to program ladder logic to do it is that a menu structure can be simulated When configuring a Jump Screen there is an option to Allow ESC to Return With this option checked using the jump keeps the last page on a stack so that it can be recalled Pressing the ESC key on the NX will recall the page from which the current page was jumped to On the LX and other touch screen controllers that don t have an ESC key built in a screen jump is configured and the option to Simulate ESC is checked Up to 16 layers can be recalled in order to back up through a menu system Adding to the program from Parts 1 and 2 1 Add screen 6 with a Static Text label as done with the other screens 2 Go to screen 1 and add a Screen Jump al On NX controllers this will be linked to the nearest softkey The
32. STE 103 HORNER APG CONTACTS ee nee ae en 105 Introduction to Cscape Quick Start Guide MAN0800 05 17Feb 2007 PAGE 9 Intro to Cscape Quick Start Guide PAGE 10 17 Feb 2007 MAN0800 05 Intro to Cscape Quick Start Guide Objective The objective of this Quick Start Guide is to familiarize yourself with some of the features and functionality of the Cscape programming software Equipment Needed A PC with Cscape loaded 10 Help File 1 1 Open the help file The help file is located under Help from the main tool bar 1 2 Select Contents to access the file 1 3 first screen has a lot of useful information that is listed below 1 3 1 What s New in Version X XX This section will include all of the additions that were added to that particular release of Cscape 1 3 2 Cscape Reference Manual This section allows the user to navigate to all of the information in the help file 1 3 3 The User Interface This describes some of the user features of Cscape and how to navigate through the software 1 3 4 Creating and Editing Ladder Programs This section does a multitude of things from the different ladder elements to clearing out an old program 1 3 5 Creating and Editing Text Screens This discusses how to create and manipulate the HMI portion of an OCS program 1 3 6 Networking and Communication This section discusses the different aspects of the CsCan network and serial communication
33. a value of 6 in SR1 to wrap around careful when pressing the Up key from screen 6 you ll have to put a value of 1 in SR1 to wrap around If you want to skip any screens in between 1 and 6 you ll have to program that in too And one last warning Math Operations will take place on every scan if they are powered Positive Transition 1 shot coils will have to be thrown into the mix Solutions Label 4 Extra Credit 1 0800 05 17 2007 45 Screen Manipulation Lab 3 E o B ul 0800 05 17 Feb 2007 46 Lab 3 Screen Manipulation Notes MAN0800 05 17 Feb 2007 PAGE 47 Lab 3 Screen Manipulation Notes PAGE 48 17 Feb 2007 MAN0800 05 LAB 4 Timers and Counters MAN0800 05 17 Feb 2007 PAGE 49 Lab 4 Timers and Counters PAGE 50 17 Feb 2007 MAN0800 05 Lab 4 Timers and Counters Objective Review and understand Timers and Counters Timers Overview The purpose of the Timers portion of this lab is to show how each type of Timer operates and what the difference is between them Also using built in status bits in the Timer registers can be useful in many cases instead of using additional coils in the ladder logic Note You will almost ALWAYS use R registers for Timers and Counters Also Timers and Counters always use 2 consecutive word length registers REMEMBER If a timer is addressed to R1 then R2 15 will indicate whether th
34. al Real Time Clock It contains a value of 1 7 depending on what day it is Linking a text table directly to SR50 and configuring the text table as shown would display the days of the week instead of just a number enables Value Text Sunday Table Number Monday Tuesday Wednesday Thursday Friday Saturday Edit EH HE Remove Bytes Used 93 OK PAGE 34 17 Feb 2007 0800 05 Lab 2 Text Tables Notes MAN0800 05 17 Feb 2007 PAGE 35 Lab 2 Text Tables Notes PAGE 36 17 Feb 2007 MAN0800 05 LAB 3 Screen Manipulation MAN0800 05 17 Feb 2007 PAGE 37 Lab 3 Screen Manipulation PAGE 38 17 Feb 2007 MAN0800 05 Lab 3 Screen Manipulation Objective The objective of this lab is to demonstrate several different methods to manipulate screens through ladder logic and through the Screen Jump object in the graphics editor Screen Overview When using Horner APG graphics based controllers you have 1023 screens to use in your program There is not a built in way of scrolling through these screens in graphics based controllers so screen manipulation must be done either through ladder logic or through the Screen Jump object in the graphics editor or through a combination of both When writing a program planning is needed to determine what screens need to be seen and when they need to be seen Many times a dedicated alarm screen is used so that when the alarm occu
35. all HE APG or its suppliers be liable of any special consequential incidental or penal damages including but not limited to loss of profit or revenues loss of use of the products or any associated equipment damage to associated equipment cost of capital cost of substitute products facilities services or replacement power down time costs or claims of original purchaser s customers for such damages To obtain warranty service return the product to your distributor with a description of the problem proof of purchase post paid insured and in a suitable package ABOUT PROGRAMMING EXAMPLES Any example programs and program segments in this manual or provided on accompanying diskettes are included solely for illustrative purposes Due to the many variables and requirements associated with any particular installation Horner APG cannot assume responsibility or liability for actual use based on the examples and diagrams It is the sole responsibility of the system designer utilizing Cscape Software to appropriately design the end system to appropriately integrate the Cscape and to make safety provisions for the end equipment as is usual and customary in industrial applications as defined in any codes or standards which apply Note The programming examples shown in this manual are for illustrative purposes only Proper machine operation is the sole responsibility of the system integrator Revisions to this Manual This version MAN0800 04
36. ch time has accumulated in the timer Configure the numeric field for un editable 3 digits and 2 decimal places 4 Label each field using the legend so that you can tell them apart Your screen might look something like this daaa aala MAN0800 05 17 Feb 2007 PAGE 53 Lab 4 Timers and Counters If the screen information is on a screen other than Screen 1 add more logic or a Screen Jump to switch to the appropriate screen Download the program to your controller and make sure it is in RUN mode Press the F2 key and watch the time increment Let go before the 5 seconds is up and the time should stay where it is Pressing F2 again will resume where it left off You will have to press F10 to get the timer to restart at again Part 3 TOF Timers 1 To the above program add a timer that will immediately pass power when the F3 key is pressed and will keep passing power for 5 seconds after the F3 key is released Configure this timer for 100ms resolution HINT Remember not to overlap the timers Use the Timer Status bit to determine when the timer is passing power 2 Configure a text table on the screen to show or Power depending on the state of the timer s status bits to show when the timer is passing power You may have to start a new screen and remember you can re use the text table you already have for and Power Label everything 4 Add logic or a Screen Jump to switch t
37. change the highlighted selection and pressing the Enter Key The ESC key will allow you to navigate back to the Menu Screen Extra Credit 1 On NX or XLE controllers pressing the up and down arrows simultaneously gets into the system menu LX controllers have a System key on the keypad Add ladder logic to either your NX program or your XLE program to lock out the System key on the controller SR3 contains a number reflecting the system screen currently displayed If none is shown SR3 contains a 0 You can monitor SR3 for a non zero value and if it is non zero move a zero back into it Use a compare function to compare the value to zero Compare functions will pass power to the rest of the rung if they are true This feature can be used to limit access to the parameters of the System Menu like placing the controller in Stop Changing the ID Changing the Network Baud Rate etc PAGE 44 17 Feb 2007 MAN0800 05 Lab 3 Screen Manipulation Extra Credit 2 Create ladder logic to scroll through the screens on the NX controller using the up and down arrow keys on the keypad SR56 is the Last Key register and reflects a value unique to the button being pressed The Up key is a value of 30 and the down key is a value of 31 If SR56 is equal to 30 increment SR1 by 1 using an ADD Math Operation If it is 31 decrement it by 1 using a SUB Math Operation Be careful when pressing the Down key from screen 1 you ll have to put
38. d 2 1 2 2 2 3 2 4 PAGE 10 There are 2 ways to create a new program A new program will have a name of Untitled until the program is saved as its file name 2 1 1 Create a program under the File selection on the main menu 2 1 2 Create a new program by pressing the New File from the Tool Bar at the top of the screen There are 2 ways to save program All programs will be saved as the filename csp 2 2 1 Save a program under the File selection on the main menu 2 2 2 Save a program from the shortcut on the Tool Bar at the top of the screen There are 3 ways to open a program 2 3 1 Open the program under the File selection on the main menu 2 3 2 Open a program from the shortcut on the Tool Bar at the top of the screen 2 3 3 The program will automatically open if the program is double clicked on in the location where it is stored on your PC Configuring a controller is done be clicking the Controller menu and selecting I O Configuration This will bring up the screen below If no controller is attached to the PC the controller will default to the OCS300 If there is a controller attached to the PC and the target ID matches the local ID the controller will match what the PC is attached to There are 2 ways to configure the controller 2 4 1 Manually configure the controller by pressing the Config button next to the controller and then select the controller from the pull down list 17 Feb 2007 080
39. e timer is receiving power for Counters and TON Timers only R2 16 will indicate whether the timer is passing power to the rest of the rung In the same way if addressed to R846 then R847 15 and R847 16 are those status bits Part 1 TON Timers 1 Create a new NX program Title the program Timers csp Setthe target ID to match the NX you are going to program Configure the NX Reference Lab 1 for correct procedure a A Configure a timer at R1 that will pass power to a coil M1 when the F1 key is pressed and held for 3 seconds or more Configure the timer for 100ms resolution HINT Since the timer is set for 100ms resolution 3 seconds is equal to a Pt of 30 30 100ms pulses equals 3 seconds 6 Configure a text table on the screen to show Off or On depending on the state of M1 7 Configure a second text table to show Off or Enabled depending on the state of R2 15 R2 15 will reflect whether or not the Timer is currently enabled HINT There are up to 200 text tables to use By default every new text table field you make references text table 1 You will have to make new text tables and point the new text table to the appropriate table number 8 Configure a third text table to show Off or Power depending on the state of R2 16 R2 16 will reflect whether or not the Timer is currently passing power to the rest of the ladder rung It will pass power w
40. e Static Text like before will indicate the number of the screen that is being configured so replace with a 1 on screen 1 2 on screen 2 and so on 6 Now configure screen 7 for a menu object The Menu Object is the eight object form the left in the second row of the tool bar 7 Stretch this to cover the entire screen 8 Open the Menu Object and click on Configure Menu Pages 9 Press Add MAN0800 05 17 Feb 2007 PAGE 43 Lab 3 Screen Manipulation 10 In the Prompt Text type Goto Screen 1 select Screen Jump in the Item Type under the Item Attributes put a 1 in the Address Number check the Allow ESC to Return and press OK The picture below is what the configuration should look like Menu Item Configuration Item Information Prompt Text Goto Screen 1 Type Screen Jump Justifyto Left Center Right Item Attributes Jump to Screen Number Address Number 1 BI 5 11 Go back to the Main Menu of the Menu object and repeat the steps for screens 2 6 12 Configure screen 7 as the initial screen by clicking on the Screens Menu of the graphics editor and selecting Set Initial Screen and putting a 7 into the First Screen to display box 13 Change the Legend of the Menu Object to reflect Screen Manipulation 14 done close the graphics editor and download the program to the XLE 15 Once done downloading the program test the program by using the up and down arrow keys on the XLE to
41. ed to the Smart Stack module on the back of the NX251 96117 9424 are wired to the Smart Stix at the top right of the demo box MAN0800 05 17 Feb 2007 PAGE 77 Lab 6 Basic CsCAN Networking Notes PAGE 78 17 Feb 2007 MAN0800 05 LAB 7 Color Touch Lab Screen Creation MAN0800 05 17 Feb 2007 PAGE 79 Lab 7 Color Touch Screen Configuration PAGE 80 17 Feb 2007 MAN0800 05 Lab 7 Color Touch Screen Configuration Objective Practice building screens for the LX300 Connect the serial port of your PC to the LX300 From Cscape configure the controller using the Auto Config function Remember that the ID of the LX300 is 2 Create an application screen similar to the following KM seme Rutomatic Configure the LX300 I O for the Smart Stix module This configuration will be similar to the configuration used in the previous lab except use starting addresses as I1 for the inputs and Q1 for the outputs You will need to change the I O configuration for the NX251 Only 1 controller can write to the outputs of the Stix at a time so delete the Stix from I O configuration used for the NX251 in the last lab and download the change to the NX251 Start Pushbutton Assign to M1 Stop Pushbutton Assign to M2 Run Indicator Assign to Q1 Off Manual Auto Selector Assign to R10 Speed Feedback Hz Indicator Assign to R5 Speed Slider Map to R7 scale 0 to 100 Speed Data Box Assign to R7
42. example the Q is specified as Indirect This means the controller will look at R101 and see a value within it If R101 has a value of 851 the controller will take the data in R1 R5 and move it into R851 R855 In this example the Mother of All Confusion both the IN and the Q are specified as Indirect This means the controller will look at R1 and see a value Let s say itis 241 The controller also looks at the value in R101 Let s say it is 341 The controller will then take the values in R241 R248 and move them into R341 R348 Good let s get on with the lab 17 Feb 2007 0800 05 Lab 5 Move Operations Part 1 Move 1 Start a new program for the controller you are connected to and call it whatever you want Configure the controller and I O as you have done before 2 Move the value in R1 to R101 when the F1 key is pressed 3 Move the value of 0 into R101 when the F2 key is pressed 4 Create a screen with numeric data fields that show R1 and R101 and label the fields Be sure to make the R1 data field editable 5 Add logic or a Screen Jump to switch to this screen if needed 6 Download the program and make sure the controller is in RUN mode 7 Edit the value in R1 to whatever you like by pressing the Enter key when the field is outlined typing in a value on the NX keypad and then pressing Enter again 8 Press the F1 key to move the value you just edited into R101 9 Press the F2 ke
43. he counter to be automatically incremented by a value of 1 each time the Filename Counter is accessed The wrap counter function causes the counter to start over at 0 when the maximum value is exceeded If the wrap counter function is not activated and the counter reaches the maximum value the counter will no longer automatically increment and the value will remain at the maximum setting Accessing the counters is done similarly to the date and time symbols The format to access any of them is as follows counter number u of digits 1 8 For example using counter 1 for a screen capture if the counter has a Max value of 59 the current value is 35 and the Auto Increment is checked 1u4 0035 The next time the screen is captured the value will be 0036 then 0037 etc This can be implemented into the filename as follows Given Current date and time March 1 2004 3 45 34 PM Counter 3 Auto Incrementing Max of 59 currently at 58 Wrap turned ON Captures Chan3 M D Y h m 3u2 bmp Captures Chan3 03 01 04 1545 58 bmp Next screen capture assuming same time and date Captures Chan3 03 01 04 1545 59 bmp Next screen capture assuming same time and date Captures Chan3 03 01 04 1545 00 bmp Note You MUST specify the filename extension in all cases It is never automatically added MAN0800 05 17 Feb 2007 PAGE 97 Lab 9 Removable Media Functions RM Program Downloads One feature of the Removable Media functionality
44. hen the timer is done timing 9 Configure a Numeric data field that displays how much time has elapsed in the timer This will be the accumulated value of the timer R1 Configure the data field to be un editable and displaying a length of 5 with 1 decimal place MAN0800 05 17 Feb 2007 PAGE 51 Lab 4 Timers and Counters 10 Label each field on the screen so you can tell them apart This can be done by modifying the legend for each of the objects placed on the screen Your screen might look something like this in the graphics editor gt gt AE arts E 11 If this data is on a screen other than screen 1 you will need to add ladder logic or a Screen Jump to switch to this screen or back to it once you have switched away from it e Adda normally open contact addressed to the F1 key K1 e Use it to fire a Switch Screen addressed to the screen above Place a normally open coil and double click on it to configure it Click the Screen gt button and choose this screen from the thumbnails Address xag v Screen Name Cancel e Once the screen is chosen make sure to specify the Switch Screen option and click OK Address 00001 v Screen gt Name Edit Screen Force Screen SR2 Cancel PAGE 52 17 Feb 2007 0800 05 Lab 4 Timers and Counters 12 Download the program to your controller and make sure it is in RUN mode
45. n lab Download and execute the application Practice triggering alarms acknowledging them and clearing them Note the differences between what is displayed in the Summary log and what is displayed in the History log MAN0800 05 17 Feb 2007 PAGE 87 Lab 8 Graphic Alarms Use the Alarm Indicator button on the first two screens as a means of viewing the Alarm Summary Note the conditions that will cause the Alarm Indicator buttons to change color Extra Credit Create a screen showing a simple graphical diagram of a house Place an alarm indicator button on the Basement Group 1 First Floor Group 2 Second Floor Group 3 and Garage Group 4 Add new alarms to the Alarm Configuration a couple each for groups 2 3 and 4 Trigger those new alarms with unused switches on the I O Simulator 13 18 Note how groups are great way to segment alarms into manageable groups that can be monitored in separate alarm summary and history logs as well as larger groups See Figure 3 Figure 1 PAGE 88 17 Feb 2007 MAN0800 05 Lab 8 Graphic Alarms Figure 2 Alarm Summary Active and Unacked dd HH cr HH mm RTN Description HH mm RTN Description mm Description mm dd HH mm ACK Description mm dd HH mm Description 99 HH mm Description mm dd Description tam dd mm Description HH mm Description HH mm Description Figure 3 SYSTEM MAN0800 05 17 Feb
46. n the network to read the information To perform this task use an ALW_ON contact S7 with a NET PUT instruction block Network Put Words Network Data Name g KA Directed Data Remote 1 0 ss Word f Analog Source Data Address 0001 Name deem Send on Change of State Send 70001 Name dem This register will force a transmission ignoring change of state NumWords 32 Cancel 6 Configure a screen to display the accumulated value of the counter Consult the previous labs for help with this task 7 Save the program to the PC and then download the program to the NX251 0800 05 17 2007 71 Lab 6 Basic CsCAN Networking Step 2 gt Create new LX300 program 1 Title the LX300 program LX CsCAN 2 Set the target to node id 2 Verify through the system menu of the LX300 that the node address is set to 2 and that the baud rate is 125K 3 Configure the LX300 Reference Lab 1 for correct procedure 4 Configure the network to read the information from node 1 into R1 This will be achieved by using the NET_GET instruction block Network Get Words Network Data 101 deem Format Global Data Data LS Word Offset g Analog Destination Data Address 280001 Name KA Num Words 32 Cancel 5 Configure Screen 1 to display Incoming Data from the NX251 6 Save the program a
47. nd gt gt gt Line Color gt gt gt EEH Data Color gt gt gt Ei Cancel 3 Click on Text Table 4 Click on Add 5 For Value 0 add String STOPPED 6 Click OK 7 Click on Add PAGE 32 17 Feb 2007 MAN0800 05 Lab 2 Text Tables 8 For Value 1 add String RUNNING Edit View Text Tables XI Value Text STOPPED Table Number 1 RUNNING 1 Edit Remove Bytes Used 32 OK 9 Click OK 10 Click Legend 11 Change the Legend to MACHINE 12 Change the Legend Font to San Serif 15 13 Click OK 14 Click Attributes 15 Uncheck Border 16 Click OK 17 Click OK gt c ad gt 7 PFs 51 Fio Ny 18 Close the Graphics editor 0800 05 17 Feb 2007 PAGE 33 Lab 2 Text Tables Step 6 gt Save the program Click on File and select Save Step 7 gt Download to the NX Click on Program and select Download Step 8 gt Check the program operation The program should operate exactly the same as it did before The screen should look and act the same as before This shows some of the flexibility of the Horner controllers and how easy it is to configure some of the screen features Text tables can often be used in place of an entirely new screen or simply to associate text with a number to make it easier to decipher that number Take for example the system register SR50 This registers represents the Day of the Week for the controller s intern
48. nd then download the program to the NX251 Step 3 gt Verify the program s functionality The LX300 should display the same value that the NX251 is displaying on the screen PAGE 72 17 Feb 2007 0800 05 Lab 6 Basic CsCAN Networking gt Part 1 Solution T_SEC 1 50005 ALW ON Ho 250007 ALW ON Ho 250007 0800 05 h CTU lt R0001 R0002 16 R CNT 1 450001 8 000001 10001 SEND NX251 Ladder 1 44QGO001 0280001 LX300 Ladder 17 Feb 2007 PAGE 73 Lab 6 Basic CsCAN Networking Part 2 Digital Data Over CSCAN Step 1 gt Modify LX300 Program 1 Broadcast the function keys K1 K5 onto the CsCAN network This will require a NET_PUT instruction block The instruction block will be configured for node id 2 digital and the source will be K1 with the number of words equal to 1 Network Put Words Network Data 10 2 Format Name X Global Data C Directed Data Remote 1 0 Data gui Word Offset f Analog Source Data Address zK0001 X Name Send on Change of State Send 270001 Name This register will force transmission ignoring change of state Num words 1 Cancel 2 Save the program and then download the program to the LX300 Step 2 gt Modify the NX251 Program 1 with the destination of M1 Configure the 251 to read 1 K5 from node id 2 into
49. o this screen if needed 5 Download and make sure the controller is in RUN mode 6 Notice how this timer shows 5 0 seconds in its accumulated time when it is inactive 9 but the status bit shows because power is not being passed Notice how the accumulated time goes to 0 0 when you press the F3 key and the status bit shows Power immediately Notice how the accumulated time then starts counting when you let go of the F3 key and how the status bit still shows Power to the rest of the ladder rung even though power to the rung has been interrupted Notice how power is discontinued when the timer reaches its 5 seconds PAGE 54 17 Feb 2007 0800 05 Lab 4 Timers and Counters Counters Overview The purpose of the Counters portion of the lab is to demonstrate how Counters work and what the difference is between a Count Up CTU Counter and a Count Down CTD Counter Count Up counters reset to 0 and count up from there passing power when they reach their preset value PV Count Down counters reset to their preset value PV and count down from there passing power when they reach 0 Status bits in the Counter s second register work the same way as the Timer s status bits Counters increment or decrement only once every time they see power come on from the ladder rung This is what the little triangle at the counter input means Part 4 CTU Counters 1 To your program add a counter that
50. ode that will receive the download The R indicates that the controller is in RUN mode 1 indicates that the controller is in STOP or IDLE mode and D indicates that the controller is in state is shown it means the 17 Feb 2007 MAN0800 05 2 8 2 9 MAN0800 05 Intro to Cscape Quick Start Guide controller is Busy because another computer is trying to talk to it at that moment Starting a New Rung of logic can be done in either of two different ways 2 8 1 Placing a contact A new rung can be started by dropping a contact on to the screen The user needs to drop the contact in A column for this to occur To verify that a new rung has been started look at the left margin If there is a screw head in the margin a new rung has been started See 5 in the picture on the previous page Another thing to consider when programming a parallel contact is that placing the parallel contact in the A column will start a new rung To get around this place the branches first 2 8 2 Right clicking in the margin right clicking in the left hand margin and selecting New Rung can also create a new rung See 4 in the picture on the previous page Data Watch enables the user to monitor and or change values in a table 6 is what Data Watch looks like Data Watch is selected from the magnifying glass on the Toolbar or through selecting it from the Controller menu New fields are added to Data Watch by clicking Add and then ke
51. om the default 6 Close the graphics editor 7 Click OK Step 10 gt Add Screen 1 1 Click on the Screens menu and select View Edit Screens 2 Repeat steps 3 6 from above Step 11 gt Save the program MAN0800 05 17 Feb 2007 PAGE 25 Lab 1 Basic OCS Programming and Configuration Step 12 gt Download the program to the NX251 1 Select the Program menu and click Download 2 Use the SmartLoad function when the Download dialog box appears 3 Click OK Cscape NX251 csp File Edit Controller Debug Tools Screens View Window Help ro OA Talola Protocol Config a ow Helene mS e ee ss Boolean Eleme 1 Names Element Usage Setpoints 1 Error Check Upload estop STOP RUN LK download Options 2 1 210001 0002 00001 4 00001 Once downloaded make sure the is in Run mode the green traffic light on the toolbar Step 13 gt Debug your program Cscape NX251 csp File Edit Program Controller Be Tools Screens View Window Help 8169 a Debug All Boolean Elements an Debug n S OF im H 1 N Forcing Overrides gt 1 2 ESTOP START STOP RUN 1 210001 K0001 K0002 00001 4 200001 Click the Debug and select Debug Monitor Close switch 1
52. onfiguration CPU Slots Main Base 2 Base 3 Base 4 Base 5 Base 6 Network NetID Description Inputs Outputs SmartStix Digital 16 in 16 out 10017 10032 Q0017 Q0032 R0100 2 Press Add and select Smart Stix Digital 16in 1604 3 Configure the Stix as illustrated in the picture below Configure Digital Network I O Network Network ID 9 Hex 09 1 0 Mapping Start Digital In 10017 0 16 Start Digital Out 90017 16 Status Register R0100 aem Input Update Method Update on Change of State Update Periodically Time mSec 100 mS to 25 5 Sec Timeout 4000 mSec 200 mS to 25 5 Sec Maximum time 120 or controller will wait to indicate act on a communication timeout Output Defaults Cancel 4 Press OK 5 Press OK PAGE 76 17 Feb 2007 MAN0800 05 Lab 6 Basic CsCAN Networking 6 Modify the NX251 program to turn on Q17 Q25 when the function keys of the LX300 are pressed Depending on which option you chose in part 2 it will require either changing the address of the coils or changing the destination of the move command 7 Save program and download changes to the NX251 Step 2 gt Verify functionality Press the F1 key on the LX300 the first LED on the Smart Stix should turn on Step 3 gt Modify the NX251 Program Add lines of code that will turn on Q1 Q8 when 94117 96124 is active Q1 9608 are wired to the LED s on the demo box The LED s are wir
53. red The offset should be configured for R201 Place a rest coil after the Read RM function with the address of T2 3 Create a line of code that Fills 0 into R201 R202 on a first scan 0800 05 17 Feb 2007 93 Lab 9 Removable Media Functions 4 Now configure a screen 1 with a Menu Object 5 Download the program to the XLE Remember that the controller will need to Configure the Legend for RM Functions Configure the first Menu Item for the following Prompt Text Write Data Numeric and configured for R1 editable Configure the second Menu Item for the following Prompt Text Read Data Type Numeric and configured for R11 un check editable Configure the third Menu Item for the following Prompt Text Goto RM Manager Type Screen Jump to screen 2 with ESC to Return checked Configure the fourth Menu Item for the following Prompt Text RM Actions Type Screen Jump to screen 3 with ESC to Return checked Configure Screen 2 with a RM Manager on the screen configured for the option to delete files Configure Screen 3 with 2 switches configured one for T1 and the other for T2 with the action as on for both be configured properly Use the Menu to navigate through the steps below Change the value in R1 field on the screen Press the T1 button The information in R1 is now stored to the RM Press the T2 button The
54. rking usa la 69 Bou 71 Proced re 71 Part k Anal Data Over CSCAN EN 71 Part 2 Digital ne aa re Dehio 74 Part3 na aaa etie C UN T 76 ISTE 78 I EN HD 79 Color Touch Lab Screen 79 ODJECUVE a TER 81 Notes satin cE DEI T E e E REDDERET ROSE 84 ERE ETT 85 Graphic ser a een ee een erreiche pai 85 ODJECUVE e a 87 Proced ren Nee td 87 Re E MS Es 90 acess 91 CompactFlash e vua eie uv 91 ODJECUVE e ted M aM 93 ConmpactETash Hle Namins an 95 Symbol Description Example esse sk 95 CompactFlash File Counters si nennen bean EE GEE kipud eakad 97 Filename Counters a hi N 97 CH Program DownloadS alal es eather 98 CE Screen Captures sun lie kenn in 98 NOES ann sound 100 CHEAT SHEET REP 102 Data Types an lid aa 102 Register Types et em 102 Systems atkal alal t al 103 System RESI
55. rs the alarm screen can be forced on Or perhaps there is a main menu screen that has links to configuration or data monitoring screens There are dedicated D bit length registers that are numbered the same as the screen they represent D1 is for screen 1 D312 is for screen 312 and so on There are also three system registers that reflect exactly what the display is currently doing These registers are the SR1 User Screen register the SR2 Alarm Screen register and the SR3 System Screen register The numbers in these registers reflect the number of the screen currently displaying SR2 takes priority over SR1 and SR3 takes priority over SR2 Part 1 Switching and Forcing D registers can be used as a contact that indicates a screen being on or off They can also be used as coils to control screens When using them as coils simply place a normally open coil in your ladder logic and then configure it for a D register Once a coil is configured for a D register the configuration box changes to account for some additional options 700 Point Address fail gt Screen gt Name Y Edit Screen Force Screen SR2 Switch Screen 581 Cancel From this configuration box there is the added ability to click the Edit Screen button and go directly to the screen editor for the screen specified There is also an option of using this coil to Force the screen or Switch the screen MANO800 05 17 Feb 2007 PAG
56. s 1 Using the Constant Move add programming that will move the values of 2201 2210 into registers R201 R210 on First Scan HINT On your Cheat Sheet find the S register that is the system coil for First Scan PAGE 64 17 Feb 2007 0800 05 Lab 5 Move Operations Moye Constance Var Source Destination Starting reg zR0201 Address A0201 Editing reg 7 R0211 INT Ending reg R0210 Number of Items 10 Cancel 2 Add an Indirect Move to your program that is powered with an Always On system contact HINT Use the Cheat Sheet to find the Always On contact 3 Use the value in R50 as the from address or pointer This means you will have to check the Indirect option in the Source area Use R51 as the destination register Do NOT check the Indirect option for the Destination 4 Create a screen with data fields showing R50 editable and R51 5 Add logic or a Screen Jump to switch to this screen if needed 6 Download the program and make sure the controller is in RUN mode 7 Edit the value in R50 to equal something between 201 and 210 You will be able to see the values in R201 R210 moved with your Constant Move function in R51 based on the value in R50 Extra Credit Use a Move Word function and the F1 F2 F3 and F4 keys to change between your screens in the program F1 should change to the screen with the Move Word information F2 should change to
57. s 1 3 7 and CPU Configuration This section covers how to configure a controller and a quick reference to a few of the I O cards like the High Speed Counter Stepper Module and more 1 3 8 Debugging This section covers the aspects of running the debug option in the software 1 3 9 Inside the Controller This section covers the system resources of the controller updating the firmware cabling and other features 1 3 10 Project Management This covers how to build a CsCan project for more than 1 node system 1 3 11 How Do 1 This is a quick start guide on how to get started on certain task 1 3 12 Additional Technical Support This covers information on how to contact Horner APG MAN0800 05 17 Feb 2007 PAGE 11 1 4 1 5 Intro to Cscape Quick Start Guide Searches can be done through selecting Find from the top of the screen 1 4 1 Upon opening the Find portion of the help file type in Contacts and the following will be shown on the screen Help Topics CScape Help File Contents Index Find 1 Type the word s you want to find Contacts Clear 2 Select some matching words to narrow your search Options amema Eind News 3 Click a topic then click Display How to Change NO to NC whats new 4 50 3 Topics Found All words Begin Auto Pause The programmer also has the ability to open the help file by pressing F1 on the keyboard of the PC 2 0 Getting Starte
58. s However make sure the numeric data field for the accumulated count is set up for 6 digits and make sure it is set up for a Signed Decimal display format elc EEE St 3 Add logic or a Screen Jump to switch to this screen if needed 4 Download and make sure the controller is in RUN mode 5 Make sure the counter is reset by pressing the F9 key Notice how it resets to the preset value 6 Press the F5 key and watch the count value decrement When the count reaches 0 power will be passed 7 Notice how the counter will continue to decrement past 0 Depending on how you have your data field set up it will either show 1 2 3 etc Signed Decimal display format or it will show 65535 65534 65533 etc Decimal display format also known as Unsigned Decimal CONGRATULATIONS YOU VE FINISHED TIMERS AND COUNTERS PAGE 56 17 Feb 2007 0800 05 Lab 4 Timers and Counters Solutions Label Lab4_Part1 4 1 1 MAN0800 05 17 Feb 2007 PAGE 57 Lab 4 Timers and Counters Notes PAGE 58 17 Feb 2007 MAN0800 05 LAB 5 Move Operations MAN0800 05 17 Feb 2007 PAGE 59 Lab 5 Move Operations PAGE 60 17 Feb 2007 MAN0800 05 Objective Lab 5 Move Operations Review and understand Move Operations Overview There are several types of Move functions available for use for several types of different occasions The Move Operations toolbar appears as follows MAN0800 05 AB
59. s See System Registers WORD PAGE 102 17 Feb 2007 0800 05 Cheat Sheet System Bits Point Name Function Point Name Function S01 FST_SCN Indicates First Scan S07 ALW_ON Always ON S02 NET_OK Network is OK S08 ALW_OFF Always OFF S03 T_10MS 10mS pulse 96809 PAUSING SCN Pause n Load soon 96804 100MS 100mS pulse 96810 RESUMED SCN Pause n load done 96805 T 1SEC 1 second pulse 96811 FORCE being forced S06 OK is OK 96812 FORCE EN Forcing is enabled System Registers Name SR Name Min Max 1 User Screen Number 0 200 39 BIOS Version 2 Alarm Screen Number 0 200 40 FPGA Version 3 System Screen Number 0 10 41 LCD Columns 4 Self Test Result 42 LCD Rows 5 Controller Mode RUN 0 2 43 Keypad Type 6 Scan Rate Avg 44 RTC Seconds 0 59 7 Reserved 45 RTC Minutes 0 59 8 Reserved 46 RTC Hours 0 23 9 Edit Buffer Low 47 RTC Day of Month 1 31 10 Edit Buffer High 48 RTC Month 1 12 11 Ladder Size Low 49 RTC Year 1996 2095 12 Ladder Size High 50 RTC Day of Week 1 7 13 User Text Size Low 51 Network Error Count 14 User Text Size High 52 55 Reserved 15 System Text Size Low 56 Last Key 16 System Text Size High 57 LCD Backlight 17 I O Config Size Low 58 User Leds 1
60. softkeys are the buttons on the side of the screen with arrows on them gt They be linked to on screen objects On LX controllers the Screen Jump will be a pushbutton on the touch screen 3 Double click the Screen Jump and configure it to jump to screen 6 Check the Allow ESC to Return box Change the Legend to something meaningful MAN0800 05 17 Feb 2007 PAGE 41 Lab 3 Screen Manipulation Screen Jump Properties amp Jump to Screen Number Keypress Source Address Number 2 nearest ER C Register 6 EH Address m Name E C Cursor Selectable Allow ESC to Return Display Properties Attributes gt gt gt Background Color gt gt gt Legend gt gt gt Line Color gt gt gt Ei Cancel 4 Add another Screen Jump to go to screen 2 Do NOT check the Allow ESC to Return option Change the Legend Your screen might look something like this PAGE 42 17 Feb 2007 0800 05 Lab 3 Screen Manipulation 5 On screen 2 configure the same Screen Jump to screen 6 copy and paste it from screen 1 if desired Make sure Allow ESC to Return is checked 6 Add another Screen Jump to go to screen 4 Again do NOT check Allow ESC to Return for this jump 7 Repeat step 5 and 6 for screen 4 Make the second Screen Jump go to screen 1 8 If using the NX controller skip to step 10 9 For the LX controller go to screen
61. te A string of 8 consecutive bits Byte format is used more where the value of the data is not as important as the bit patterns shifts and rotates WORD Word A string of 16 consecutive bits Word format is used more where the value of the data is not as important as the bit patterns shifts and rotates DWORD Double Word A string of 32 consecutive bits DWORD format is used where the value of the data is not as important as the bit patterns shifts and rotates INT Integer A 16 bit signed value Integers are used where the value of the data is expected to be in the range of 32 768 to 32 767 SINT Short Integer An 8 bit signed value Short Integers are used where the value of the data is expected to be in the range of 128 to 127 DINT Double Integer A 32 bit signed value Double Integers are used where the value of the data is expected to be in the range of 2 147 483 648 to 2 147 483 647 UINT Unsigned Integer value of the data is expected to be in the range of 0 zero to 65 535 A 16 bit unsigned value Unsigned Integers are used where the USINT Unsigned Short Integer An 8 bit unsigned value Unsigned Short Integers are used where the value of the data is expected to be in the range of 0 zero to 255 UDINT Unsigned Double Integer A 32 bit unsigned value Unsigned Double Integers are used where the value of the data is expected to be in the range of 0 zero to 4 294 967 296 REAL Floating
62. ture function is done through the Graphics Editor by clicking the Config menu and selecting Screen Capture A 1 bit register must be configured as a trigger and a filename for the captured graphic file must be specified The filename date functions and filename counters can be used for this The OCS provides feedback that the screen capture is done by resetting the 1 bit register to an OFF state 1 Add a rung of logic that when pressed K10 will turn on T3 Inthe Graphics Editor Configure the Screen Capture to trigger off of T3 and specify a filename Download to the XLE Press the F10 Key Press the Menu to go to the RM Manager and then find the captured graphic o oc Open the file that was just saved to the RM Note the dotted edge around the displayed graphic that indicates it is not a live updating screen View Edit Graphic Pages Edit Grouping Screens Config Language View Tools Help Alarm Vid ideo Screen Capture Filename Counters Screen Capture Configuration XI Control Register optional Register 510003 Name MAN0800 05 17 Feb 2007 PAGE 99 Lab 9 Removable Media Functions Notes PAGE 100 17 Feb 2007 MAN0800 05 Lab 9 Removable Media Functions Notes MAN0800 05 17 Feb 2007 PAGE 101 CHEAT SHEET Data Types BOOL Boolean A single bit It can contain only the values 0 or 1 a k a FALSE or TRUE BYTE By
63. w will appear Select the appropriate module for the slot For FOX I O systems select the tab corresponding to the FOX base address Toolbars are used to place Ladder elements and functions 2 6 1 2 6 2 Selector Tool This allows the programmer to select between the different tool bars with 1 shown on the screen at a time This is achieved through the pull down menu at the top of the screen 1 in the picture below illustrates the location of the pull down selection Menu Toolbar Selection The user can setup Cscape to display multiple Toolbars at a time This is done through selecting multiple Toolbars under View and Toolbars 2 in the picture below illustrates this The toolbars can be left floating over the main 17 Feb 2007 PAGE 13 2 7 10 Intro to Cscape Quick Start Guide Cscape program or can be dragged and docked to the top or left side of the screen File Program Controller Debug Tools Screens View Window Help 3 z e ETE EUER E vt KS alel Boolean Elements E Wels He DEM Sectio oolbars v Standard Comments v General Editing 1 Zoom Selector Tool Ensslin Simple Elements 2 Boolean Elements Timer Counter Operations 2 Bitwise Operations 3 Move Operations Math Operations Compare Operations Convert Operations Advanced Math Special Operations Comm Operations String Operations Watch untitled4 1
64. will count the number of times the F4 key has been pressed If F4 is pressed a total of 4 times or more power should be passed to the rest of the rung HINT Just like Timers Counters also take up 2 word length R registers Don t step on any of your timers 2 Make the F10 key reset the counter 3 Create another screen with a numeric data field and a text table to show the counter s accumulated count and its status bit to let you know whether or not it is passing power Your screen might look something like this 4 Add logic or a Screen Jump to switch to this screen if needed 0800 05 17 Feb 2007 55 Lab 4 Timers and Counters 5 Download and make sure the controller is in RUN mode 6 Press the F4 key and watch the count increment When it reaches 4 power should be passed Pressing F10 will reset the counter regardless of where it is in the count 7 Notice how the counter continues to count past its preset value if you keep pushing the F4 key It will continue to count and will also pass power until it is reset 8 Notice how the counter s status bit acts the same as the timer status bit Part 5 CTD Counters 1 To your program add another counter that will count the number of times the F5 key is pressed However use a CTD counter to count down from 4 Use the F9 key to reset the counter 2 Create another screen to monitor this counter just like you have for all the other timers and counter
65. y to move a value of 0 into R101 Part 2 Block Move 1 Add programming to move the values in R11 R13 to R111 R113 when the F3 key is pressed 2 Create another screen with data fields to show the registers Be sure to make the R11 R12 and R13 data fields editable 3 Add logic or a Screen Jump to switch to this screen if needed MAN0800 05 17 Feb 2007 PAGE 63 Lab 5 Move Operations 4 Download the program and make sure the controller is in RUN mode 5 Edit the values in R11 R13 to whatever you like Use the arrow keys to select a field press the Enter key when the field is outlined type in a value on the NX keypad and then press Enter again 6 Press the F3 key to move all the values you just edited in R11 R13 to R111 R113 Part 3 Fill WORD 1 Add programming to fill the value contained in R3 into all the registers from R121 R123 when the F4 key is pressed 2 Fill those same registers with a value of 0 when the F5 key is pressed 3 Create another screen with data fields to show the registers Be sure to make the R3 data field editable Add logic or a Screen Jump to switch to this screen if needed Download the program and make sure the controller is in RUN mode Edit the value in R3 to whatever you like Press the F4 key to fill the value you just edited into R121 R123 Press the F5 key to zero out the values in R121 R123 sl s Part 4 Constant and Indirect Move
66. ying in the register and the type Ranges of addresses can be added at one time by using the notation r15 25 which will add 11 registers from R15 through R25 17 Feb 2007 PAGE 15 Intro to Cscape Quick Start Guide Notes PAGE 10 17 Feb 2007 MAN0800 05 LAB 1 Basic OCS Programming and Configuration MAN0800 05 17 Feb 2007 PAGE 17 Lab 1 Basic OCS Programming and Configuration PAGE 18 17 Feb 2007 0800 05 Lab 1 Basic OCS Programming and Configuration Objective The objective of this lab is to give you the knowledge to use Cscape to create a program including hardware configuration logic design and screen development This foundation will then be used to help you expand your skills in the use of Cscape and the OCS Procedure Step 1 Connectthe Demo Case to your PC Connectthe serial cable provided to the NX 9 pin programming port and the 9 pin serial port on your PC Step 2 Powerupthe OCS and start Cscape on your PC Connect the power supply to the NX Open the Cscape program on your PC A new blank program called untitled1 is automatically opened and should be automatically configured for your NX if the serial cable is properly connected NOTE Only the controller is automatically configured as described above Any I O will still have to be configured as described later in this lab Cscape untitled1 File Edit Program Controller Debug Tools Screen

Download Pdf Manuals

image

Related Search

Related Contents

  Samsung B2230HN 用户手册    KP User Guide 6 production.vp  RET 3275 Elektrický kultivátor    Descargar  Highpoint RocketRAID 2224  fichier 2  取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file