Home

71KB

image

Contents

1. Run Time Edits The DL205 CPUs allow you to make changes to the application program during Run Mode These edits are not bumpless Instead CPU scan is momentarily interrupted and the outputs are maintained in their current state until the program change is complete This means if the output is off it will remain off until the program change is complete If the output is on it will remain on WARNING Only authorized personnel fully familiar with all aspects of the application should make changes to the program Changes during Run Mode become effective immediately Make sure you thoroughly consider the impact of any changes to minimize the risk of personal injury or damage to equipment There are some important operations sequence changes during Run Time Edits 1 If there is a syntax error in the new instruction the CPU will not enter the Run Mode 2 If you delete an output coil reference and the output was on at the time the output will remain on until it is forced off with a programming device 3 Input point changes are not acknowledged during Run Time Edits So if you re using a high speed operation and a critical input comes on the CPU may not see the change wee me Not all instructions can be edited during a Run Time Edit session The following list shows the instructions that can be edited Timer OR ORN Or greater than or equal TMRF Fast timer or a than t tant TMRA Accumulating timer
2. C E E sa ant ADDD Add data double constant Courier SUBD Subtract data double constant Up Down counter SCENT ei Multiply constant cae Divide constant STR STRN Store Store not AND ANDN Add CMPD Compare accumulator constant No ANAND ANDD And accumulator constant OR ORN Or Or not om Or accumulator eonstanty STRE STRNE Store equal Store not equal XOR Exclusive or accumulator constant ANDE ANDNE And equal And not equal LDF Load discrete points to accumulator ORE ONE Orequal Or not equal Output accumulator to discrete points STR STRN Store greater than or equal p AND ANDN And greater than or equal SHFL Shift accumulator left And ess tnan NGON D amp o O OO cc oa 52 Faj ice Sk Oo c oO DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting 9 25 Use the program logic shown to describe how this process works In the example xO x1 Yo change XO to C10 Note the example as sumes you have already placed the CPU in Run Mode Go Use the MODE key to select Run Time Edits MODE CHANGE MODE NEXT NEXT ENT RUN TIME EDIT Press ENT to confirm the Run Time Edits Note the RUN LED on the DL205 MODE CHANGE ENT Handheld starts flashing to indicate RUNTIME EDITS Run Time Edits are enabled Find the instruction you want to change X0 xX A SH
3. you may want to force an input on even though it is really off This allows you to change the point status that was stored in the image register This value will be valid until the image register location is written to during the next scan This is primarily useful during testing situations when you need to force a bit on to trigger another event e Bit Override DL240 DL250 1 or DL260 Bit override can be enabled on a point by point basis by using AUX 59 from the Handheld Programmer or by a menu option in DirectSOFT32 You can use Bit Override with X Y C T CT and S data types Bit override basically disables any changes to the discrete point by the CPU For example if you enable bit override for X1 and X1 is off at the time the CPU will not change the state of X1 This means that even if X1 comes on the CPU will not acknowledge the change Therefore if you used X1 in the program it would always be evaluated as off in this case If X1 was on when the bit override was enabled then X1 would always be evaluated as on There is an advantage available when you use the bit override feature The regular forcing is not disabled because the bit override is enabled For example if you enabled the Bit Override for YO and it was off at the time the CPU would not change the state of YO However you can still use a programming device to change the status If you use the programming device to force YO on it will remain on and the C
4. 9 18 Maintenance and Troubleshooting Machine Startup and Program Troubleshooting D amp o O OO cc On 52 Fa ea ice Sk ke a oO Syntax Check The DL205 CPUs provide several features to help you debug your program before and during machine startup This section discusses the following topics which can be very helpful e Program Syntax Check e Duplicate Reference Check e Test Modes e Special Instructions e Run Time Edits e Forcing I O Points Even though the Handheld Programmer and DirectSOFT32 provide error checking during program entry you may want to check a modified program Both programming devices offer a way to check the program syntax For example you can use AUX 21 CHECK PROGRAM to check the program syntax from a Handheld Programmer or you can use the PLC Diagnostics menu option within DirectSOFT32 This check will find a wide variety of programming errors The following example shows how to use the syntax check with a Handheld Programmer Use AUX 21 to perform syntax check c B AUX 21 CHECK PRO CLR 2 1 AUX ENT 1 SYN 2 DUP REF Select syntax check default selection You may not get the busy display BUSY if the program is not very long One of two displays will appear Error Display example 00050 E401 MISSING END shows location in question Syntax OK display NO SYNTAX ERROR See the Error Codes Section for a comp
5. FT FD REF SHEL SET 0 FIND 00000 STR X0 Press the arrow key to move to the X Then enter the new contact C10 SHFT ENT a gt B A 7 RUNTIME EDIT STR C10 Press ENT to confirm the change ent Note once you press ENT the next address is displayed OR CO eoueualule v 2 a fa Cc oy D n 3 ae 5 Co DL205 User Manual 3rd Ed Rev A 08 03 EZS Maintenance and Troubleshooting Forcing I O Points There are many times especially during machine startup and troubleshooting D amp o oO OO cc On 52 Faj ge S gt ke a oO VA mD TNR where you need the capability to force an I O point to be either on or off Before you use a programming device to force any data type it is important to understand how the DL205 CPUs process the forcing requests WARNING Only authorized personnel fully familiar with all aspects of the application should make changes to the program Make sure you thoroughly consider the impact of any changes to minimize the risk of personal injury or damage to equipment There are two types of forcing available with the DL205 CPUs Chapter 3 provides a detailed description of how the CPU processes each type of forcing request e Regular Forcing This type of forcing can temporarily change the status of a discrete bit For example
6. PU will not change the state of YO If you then force YO off the CPU will maintain YO as off The CPU will never update the point with the results from the application program or from the I O update until the bit override is removed from the point DL205 User Manual 3rd Ed Rev A 08 03 9 27 Maintenance and Troubleshooting The following diagrams show how the bit override works for both input and output points The example uses a simple rung but the concepts are similar for any type of bit memory Program Rung Override holds XO YO previous state and disables A F U image register update by CPU XO override enabled XO at input module XO in image register YO in image register The following diagram shows how the bit override works for an output point Notice the bit override maintains the output in the current state If the output is on when the bit override is enabled then the output stays on If it is off then the output stays off Program Rung Override holds XO YO previous state and disables firii A Z 1 0uT image register update by CPU YO override enabled XO at input mdoule YO in image register YO at output module je The following diagram shows how you can use a programming dev
7. cation especially in programs l using the Stage instructions and or the OROUT instructions The Duplicate Reference check will find these outputs even though they may be used in an soueualule acceptable fashion i m a fe Cc 2 0 12 7 Co DL205 User Manual 3rd Ed Rev A 08 03 EZ Maintenance and Troubleshooting D amp o O OO cc On 52 Ka ihe Sk ke C fs TEST PGM and TEST RUN Modes Test Mode allows the CPU to start in TEST PGM mode enter TEST RUN mode run a fixed number of scans and return to TEST PGM mode You can select from 1 to 65 525 scans Test Mode also allows you to maintain output status while you switch between Test Program and Test Run Modes You can select Test Modes from either the Handheld Programmer by using the MODE key or from DirectSOFT32 via a PLC Modes menu option The primary benefit of using the TEST mode is to maintain certain outputs and other parameters when the CPU transitions back to Test program mode For example you can use AUX 58 from the DL205 Handheld Programmer to configure the individual outputs CRs etc to hold their output state Also the CPU will maintain timer and counter current values when it switches to TEST PGM mode NOTE You can only use DirectSOFT32 to specify the number of scans This feature is not supported on the Handheld Programmer However you can use the Handheld to switch betw
8. een Test Program and Test Run Modes With the Handheld the actual mode entered when you first select Test Mode depends on the mode of operation at the time you make the request If the CPU is in Run Mode mode then TEST RUN is available If the mode is Program then TEST PGM is available Once you ve selected TEST Mode you can easily switch between TEST RUN and TEST PGM DirectSOFT32 provides more flexibility in selecting the various modes with different menu options The following example shows how you can use the Handheld to select the Test Modes Use the MODE key to select TEST Modes example assumes Run Mode MODE CHANGE MODE NEXT ENT GO TO T RUN MODE Press ENT to confirm TEST RUN Mode evr Note the TEST LED on the DL205 MODE CHANGE Handheld indicates the CPU is in CPU T RUN TEST Mode You can return to Run Mode enter Program Mode or enter TEST PGM Mode by using the Mode Key MODE CHANGE CLR MODE NEXT NEXT ENT GO TO T PGM MODE Press ENT to confirm TEST PGM Mode ent Note the TEST LED on the DL205 MODE CHANGE Handheld indicates the CPU is in CPU T PGM TEST Mode DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting 9 21 Test Displays With the Handheld Programmer you also have a more detailed display when you use TEST Mode For some instructions the TEST RUN mode display i
9. ice in combination with the bit override to 2 change the status of the point Remember bit override only disables CPU changes You can still use a f z f z p ano programming device to force the status of the point Plus since bit override maintains the current status this Q 5 enables true forcing The example shown is for an output point but you can also use the other bit data types zo nD JJ Program Rung The force operation from the 88 XO YO programming device can still GUD change the point status E I YO override enabled XO at input mdoule YO force from programmer YO in image register YO at output module DL205 User Manual 3rd Ed Rev A 08 03 9 28 Maintenance and Troubleshooting D amp o O OO cc On 52 Fa e353 ice Sk ke a Cv Regular Forcing with Direct Access The following diagrams show a brief example of how you could use the DL205 xO Yo Handheld Programmer to force an I O OUT point Remember if you are using the Bit Override feature the CPU will retain the co forced value until you disable the Bit Override or until you remove the force The image register will not be updated with the status from the input module Also the solution from the application program will not be used to update the output image register The example as
10. lete listing of programming error codes If you get an error press CLR and the Handheld will display the instruction where the error occurred Correct the problem and continue running the Syntax check until the NO SYNTAX ERROR message appears DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting 9 19 Duplicate You can also check for multiple uses of the same output coil Both programming Reference Check devices offer a way to check for this condition For example you can AUX 21 CHECK PROGRAM to check for duplicate references from a Handheld Programmer or you can use the PLC Diagnostics menu option within DirectSOFT32 The following example shows how to perform the duplicate reference check with a Handheld Programmer Use AUX 21 to perform syntax check an e P om ee AUX 21 CHECK PRO 1 SYN 2 DUP REF Select duplicate reference check ent You may not get the busy BUSY display if the program is not very long One of two displays will appear Error Display example 00024 E471 DUP COIL REF shows location in question Syntax OK display NO DUP REFS If you get an error press CLR and the Handheld will display the instruction where the error occurred Correct the problem and continue running the Duplicate Reference check until no duplicate references are found oNN NOTE You can use the same coil in more than one lo
11. ndicates override bit is on Note at this point you can use the PREV and NEXT keys to move to adjacent memory locations and use the SHFT ON keys to set the override bit on From a clear display use the following keystrokes to turn off the override bit for Y10 Solid fill indicates point is on wal Ea o J AT Lins BIT FORCE RST Y 10 Small box is not present when override bit is off Like the example above you can use the PREV and NEXT keys to move to adjacent memory locations and use the SHFT OFF keys to set the override bit off Bit Override Override bit indicators are also shown on the handheld programmer status Indicators display Below are the keystrokes to call the status display for Y10 Y20 From a clear display use the following keystrokes to display the status of Y10 Y20 STAT ENT Next B i A a ENT Override bit is on Point is on fad 2 35 CO c3 co OD nD gt 0O O 0 Lae J to DL205 User Manual 3rd Ed Rev A 08 03
12. s more detailed than the status displays shown in RUN mode The following diagram shows an example of a Timer instruction display during TEST RUN mode RUN Mode TEST RUN Mode S TMR TO K1000 TMR TOA K1000 TO Contact S is off TO Contact S is off E is on Input to Timer Current Value E is on Holding Output States The ability to hold output states is very useful because it allows you to maintain key system I O points In some cases you may need to modify the program but you do not want certain operations to stop In normal Run Mode the outputs are turned off when you return to Program Mode In TEST RUN mode you can set each individual output to either turn off or to hold its last output state on the transition to TEST PGM mode You can use AUX 58 on the Handheld Programmer to select the action for each individual output This feature is also available via a menu option within DirectSOFT32 The following diagram shows the differences between RUN and TEST RUN modes RUN Mode to PGM Mode xo X2 Yo Cy X1 X3 X4 Outputs are 4 OFF Status on final scan X10 5 xo X2 ce X1 X3 X4 END v oJ 7 Iz X10 y1 S 3 CD TEST RUN to TEST PGM oe XO X2 YO es CG C 33 X1 X3 X4 Hold YO ON 2 a 4 X10 y1 Let Y1 turn ms 2 OFF eD Before you decide that Test Mode is the perfect choice remember the DL205 CPUs also allow yo
13. sumes you have already placed the CPU into Run Mode From a clear display use the following keystrokes 16P STATUS STAT ENT BIT REF X Use the PREV or NEXT keys to select the Y data type Once the Y appears press 0 to start at YO A Y 10 X 0 NEXT 0 ENT Use arrow keys to select point then use Y2 is now on ON and OFF to change the status 10 ON lt lt SHFT NS K m jo From a clear display use the following keystrokes to force Y10 ON Solid fill indicates point is on Y B A SHFT ON amy Lows Lo 0 INS BIT FORCE Y10 From a clear display use the following keystrokes to force Y10 OFF No fill indicates point is off Y B A SHFT OFF SMET MLS 1 0 DEL BIT FORCE Y10 DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting 9 29 Bit Override From a clear display use the following keystrokes to Forcing turn on the override bit for Y10 a o LIJIT Solid fill indicates point is on X B A ON 230 240 250 1 260 ser gt o SFT ON BTN TORCE SET Y 10 Small box i
14. u to edit the program during Run Mode The primary difference between the Test Modes and the Run Time Edit feature is you do not have to configure each individual I O point to hold the output status When you use Run Time Edits the CPU automatically maintains all outputs in their current states while the program is being updated DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting Special There are several instructions that can be used to help you debug your program Instructions during machine startup operations e END e PAUSE e STOP END Instruction If you need a way to quickly disable part of the program insert an END statement prior to the portion that should be disabled When the CPU encounters the END statement it assumes it is the end of the program The following diagram shows an example Normal Program New END disables X10 and Y1 XO X2 ae XO X2 YO C2 Ca X1 X3 X4 X1 X3 X4 1 1 1 X10 Y1 CD ED 7 X10 Y1 Eno co GD PAUSE Instruction This instruction provides a quick way to allow the inputs or other logic to operate while disabling selected outputs The output image register is still updated but the output status is not written to the modules For example you could make this conditional by adding an input contact or CR to control the instruction with a switch or a programming device Or you could add the instruction
15. without any conditions so the selected outputs would be disabled at all times Normal Program PAUSE disables YO and Y1 a XO X2 YO vN 2S a p Pause 22 X1 X3 X4 XO X2 yo SD CS ga v1 iS cD X10 x1 X3 X4 O a D 1 F XN 1 1 a X10 Y1 5 eD C GD DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting 9 23 STOP Instruction Sometimes during machine startup you need a way to quickly turn off all the outputs and return to Program Mode In addition to using the Test Modes and AUX 58 to configure each individual point you can also use the STOP instruction When this instruction is executed the CPU automatically exits Run Mode and enters Program Mode Remember all outputs are turned off during Program Mode The following diagram shows an example of a condition that returns the CPU to Program Mode Normal Program STOP puts CPU in Program Mode XO X2 a X20 es D ToP XI X3 nA XO x2 Yo X10 a Y1 z 2 x1 X3 X4 2 X10 Y1 Eno T GD In the example shown above you could trigger X20 which would execute the STOP instruction The CPU would enter Program Mode and all outputs would be turned off fad 2 i O S c3 co OD nD gt y 0O O0 aie to DL205 User Manual 3rd Ed Rev A 08 03 Maintenance and Troubleshooting

Download Pdf Manuals

image

Related Search

Related Contents

Operating Instructions - Band-It  ART-Human_Motion_Cap..  Formula SAE Safety Interlock Circuit & Indicator  POUR COMMANDER  Betriebsanweisung - ReinigungsBerater.de  Smeg FC310AL Instructions for Use  

Copyright © All rights reserved.
Failed to retrieve file