Home

Chapter 10 - AutomationDirect

image

Contents

1. 08 1 52 0 96 K1 010 een 2010 16 30 52 16 31 05 16 31 19 16 31 32 16 31 45 Looking at the above Trend View notice the following menu options at the top of the View controller elements that will be included in the Trend and to choose how those elements will be displayed on the Trend When this button is clicked the last pane that had focus will be selected highlighted when the Trend View Options menu comes up Ciel Toggle Historical Mode stops the real time live update of the trend Hist or Trend View Options opens the Trend View Options dialog to specify the Opt displays and adds a scroll bar to the bottom of the trend panel that allows the user to scroll backwards in time through all of the data that is currently stored for each of the data points on the displays The data gathering for each data point on the trend displays will continue while the Trend View is in historical mode When the Trend View is in historical mode the tab name will have the word HISTORICAL added to it Clicking the button again will re enable the real time live update of the trend displays and the trend graphs will be updated with all of the data that was gathered while the displays were in historical mode Y Export Range is used to export the values that are currently stored for Exp each data point on the trend All of the accumulated data points or only the data points between two user selected time stamps can be ex
2. DEBUGGING AND HAPTER MONITORING In This Chapter Monitor with Data View 10 2 Change Value Dialog 10 16 Using the Memory Editor 10 20 Test Mode Operations for Debugging 10 22 Trap Monitor 10 25 Stack Monitor DL440 Only 10 28 Trend View snek ee 10 29 Check DirectSOFT 6 File Revision 10 33 Chapter 10 Debugging and Monitoring Monitor with Data View Chapter 2 Quick Start described how to edit a program and go online with the PLC There was also a discussion on how to monitor the status of the program This chapter will discuss more monitoring and debugging features of DirectSOFT 6 Using Data View Using the Status to monitor a program is very useful The Data View window is more useful since you can do much more in one view The Data View window has more advantages such as e View status of elements e Read and write data values e Multiple Data Views can be open at the same time e Since they float they can be placed at convenient locations e Data View is also conveniently docked by default and can be set to auto hide by clicking on the push pin Multiple Data Views can be tabbed together as one dockable or floating window e Use Data View to monitor the program all views ladder stage 10 mnemonic on the same screen e The Data Vi
3. to any name to better identify it Enter the new name for the current Data View in the Title field The name entered can contain up to 32 characters Optians Data View Global Ladder Stage Display 1 Display 2 Doc Mode Documentation Title current view only Elements NewNamf i Nicknames Wiring Info Descriptions Cancel Help Apply Options Notice the three boxes next to the Apply options to circled in the above diagram These boxes are in view while the dialog is open Select the view the options are to be applied to when the OK button is pressed DirectSOFT 6 User Manual 1st Edition 10 7 Chapter 10 Debugging and Monitoring Data View Mode Options Next to the Doc tab is the Mode tab The mode selections will determine whether the data in the Status column will be Read Only no writes or Read Write A Data View can be setup for Read Only if changes to data will not be permitted by whoever is observing it Read Write should be selected for monitoring and debugging a program Leave Safety enabled so the write operation can be confirmed Options Data View Global Ladder Stage 5 Apply options to IM Current View New Views Display 1 Display 2 Doc Mode Safety CC Read Only no writes M Confirm Writes f Read Write Cancel Help Make Data View Entries The columns in a new Data View window are blank whenever it is first opened The entries are entered in the Elem
4. dialog 2 Snapshot at 12 09 13 16 33 14 359 Selected Time Last Change Element Value A Copy Contents to P ETE ge Er A EEO E ek RUSE PES Kw Weare Clipboard 12 09 13 16 33 14 359 12 09 13 16 18 04 628 V3001 W16 o 12 09 13 16 33 14 359 12 09 13 16 18 04 628 V3000 W16 398 12 09 13 16 33 14 359 12 09 13 16 33 14 335 CTAO W1 284 12 09 13 16 33 14 359 12 09 13 16 33 14 359 K45 D10 45 12 09 13 16 33 14 359 12 09 13 16 33 14 359 K90 D10 90 12 09 13 16 33 14 359 12 09 13 16 33 14 359 K180 D10 180 12 09 13 16 33 14 359 12 09 13 16 33 14 359 K270 D10 270 12 09 13 16 33 14 359 12 09 13 16 33 14 359 K360 D10 360 12 09 13 16 33 14 359 12 09 13 16 18 04 628 V3010 R 0 32 12 09 13 16 33 14 359 12 09 13 16 18 04 628 V3006 R n eS 12 09 13 16 33 14 359 12 09 13 16 18 04 628 V3004 R 1 8 12 09 13 16 33 14 359 12 09 13 16 33 14 310 V3002 R ga 12 09 13 16 33 14 359 12 09 13 16 33 14 359 K1 D10 x 12 09 13 16 33 14 359 12 09 13 16 21 52 986 C100 B o 12 09 13 16 33 14 359 12 09 13 16 21 51 899 C101 B 0 12 09 13 16 33 14 359 12 09 13 16 22 04 940 C102 B 0 12 09 13 16 33 14 359 12 09 13 16 22 08 597 C103 B 0 Clicking the Copy Contents to Clipboard button will copy the data displayed on the snapshot dialog to the Windows clipboard which can then be pasted into any other Windows application for further processing 10 30 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring tli Ae OT ees Time Scale 1 Min 2 08
5. have a memory location Change Value The Curent Value Current field will display the i data in memory Format Size The data types 5 Decimal i are displayed C Binary C Signed Dec 2 Bytes here a Octal C Exp C 4 Bytes BCDVHex Real DirectSOFT 6 User Manual 1st Edition 10 17 Chapter 10 Debugging and Monitoring ae Enter a New Value To change the state value of a bit data type such as a control relay enter the reference or nickname The example diagram below has C1 entered in the Element field To change it from Off to On simply click the On under New Like Data View the new state will not be written to the PLC until it is told to Do this by pressing the Write to PLC button The Current Value will change to read On Change Value Element cl Value Press the Write Curent to PLC button OFF Hew C Off On Format ii Bit Decimal C Binary C Signed Dec C Octal C Exp C BCD Hes C Real Change Value Element 1 Value Current ON Hew C Off On Format it Bit Decimal C Binary C Signed Dec C Octal i Exp C BCD Hes C Real 10 18 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring eae To write to a V memory location type the memory location in the Element field The value in memory will appear in the current value view To change the value enter it in the New field then press the Write to PLC button
6. set the Pause Bit for an output click on the respective pause button letter P Click on the blank button to turn the pause feature Off When in the Off mode the Pause Bit is not set and the output will turn off on the transition to Test Program The letter P in the Status column indicates the Pause Bit is set for that output Ef Oi Start Switch on OFF Reset on orr CTAQ Start ON OFF Y2 oN OFF 10 14 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring eae Use Override Bits to Control I O DL05 06 240 250 1 260 350 450 Only lf your PLC supports Override Bits they can be set for each input and output using Data View Setting these bits allows the status of the input or output to be controlled by a programming device instead of the field device wired to the I O module It is similar to forcing an I O ON or OFF To use the Override Bits they must be enabled in the Data View Options dialog Select Override Bits just like the Pause Bits were selected Click on the Select Mode button at the top of the Data View window to view the Override Bits buttons Expand the Data View window if necessary so the buttons will show f st AD J om Jerr mamm Select on forr oe Mode button ki aoe I eI sa Ka 1 Override Buttons To set an Override Bit for an I O point click on the respective Override button with the letter O Clicking on th
7. tool if you wish to look at some ladder logic in the Test Run mode An example might be to check a math routine to see if it is working properly To use the Trap Monitor either press the Trap button located on the Debug toolbar if it is displayed or use Debug gt Trap Monitor on the Menu bar The Trap Monitor can only by used in the Test Run Mode If the PLC is not in Test Run a message will appear to ask you if it is safe to switch the PLC to Test Run mode Select the Switch to button Another dialog will appear and ask if you are sure it s okay to switch to Test Run Once the PLC is placed in Test Run the dialog shown below will appear A definition of the basic components will be helpful before using the Trap Monitor This is the address of the trapped element not the rung number Trap Monitor Enable trap push Trap pins shown in At Address The elenjent disabled position FL Element x1 trapped at the above address Element Value This area is read only and will display the data for the Power Flow trapped element Accumulator Press this button to change the format of the Master Control Element Value to be read Trapped The Trap Monitor can be used as shown above by entering the element address and the element reference to read the data in the read only area of the dialog The address can be left alone while the element reference is being ch
8. Minutes 7 Minutes 10 Minutes 30 Minutes _10 le The Time Scale value is set by the following methods e Clicking on the Time Scale icon at the desired interval location e Clicking on the Time Scale icon at the desired location then use the arrow keys or the mouse scroll wheel to decrease or increase the value e Clicking and holding the slider and dragging left to decrease and right to increase the value 10 32 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring eee Check DirectSOFT 6 File Revision DirectSOFT 6 has a quick and easy method of looking at the various versions of the files which comprise the software This feature may never be used however this may be useful in the future as additional features are added in upgrade packages new products etc Open the Version Browser by double clicking on Version located under Utilities on the DSLaunch menu tree D DSLaunch File Viev Help gst DirectSOFT on the Web Ef Applications J 9 EZ DirectSOFT 6 Programming 4 0 j N 3 5 Utilities EXE DLL Version Browser for DirectSOFT 6 products LJ Visit AutomationDirect LA Visit Host Engineering Additional Info A Host Forum FAQs Downloads if CTRIO WB 2 DirectLogic PLC i CTRIO WB 2 EBC WinPLC HA CTRIO WB 2 PBC HA CTRIO WB 2 Offline i ERM Work Double click Sal DBWin32 Lo 1 DNL
9. Start YE PLC is in the Run Mode and Status is selected Also they will be disabled NOTE The buttons in the Edits column will only be displayed when the for DirectNET links DirectSOFT 6 User Manual 1st Edition 10 5 Chapter 10 Debugging and Monitoring ae Click on the bit button to be changed and a selection window for that button will appear as shown in the diagram below Make a selection such as the light bulb by clicking on it The indicator will appear in the button and also on the Data View Options Data View eT J mi Global Ladder Stage Clickon a M Newvia Status On button to Mode change the Bit Display Settings indicator On if Status Bits Pause Bits P Override Bits o _ Indicator selection window OF Cancel Help Status On IM Show Column Headers M Show Grid Lines Swap byhes for text display Start Switch Reset CTA Start el I CL EL 10 6 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring eae Data View Documentation Options Next to the Display 2 tab is the Doc tab Select this tab to set up the documentation to be displayed on the Data View window Whatever documentation Elements Nicknames etc is to be displayed in the Element column is enabled or disabled here The current Data View window can also be renamed from Data Data2 Data3 etc
10. The new value is written to the V Change Value E lement 2000 Al Data will be Value dynamically Current displayed 103 here Mew 250 Format Size C Decimal E C Binary C Signed Dec f 2 Butes C Octal C Exp C 4 Bytes BCO Hes C Real memory location The value in the memory location will be displayed under Current Value When an I O reference or a memory location is entered in the Element field the status or value will be displayed in the New value field as well as under the Current Value By clicking on the Read from PLC button the Current Value and the New field will be updated with the current status or data DirectSOFT 6 User Manual 1st Edition 10 19 Chapter 10 Debugging and Monitoring Using the Memory Editor program elements or data values Changes made while the PLC is in Run Mode become effective immediately Thoroughly consider the impact of making changes in order to minimize the risk of personal injury or damage to equipment WARNING Only authorized personnel should make changes to the Another debugging tool which DirectSOFT 6 features is the Memory Editor The Memory Editor can be used to view and change data in a multiple of memory locations This is especially helpful for e Entering or changing values in V memory or Data Registers for use as constants timer counter presets etc e Entering text strings into a block of V memory or Data Registers E
11. ange will display the alias CTAO The alias could have also been entered Notice the Format area where the default BCD Hex has been automatically selected This is the proper format for the actual counter value If the user wishes to view it in a different format simply click on one of the formats shown to change the default Also the data size can be selected in the same manner How the data is viewed is strictly up to the user Any one of the sixteen data fields can be selected to enter data Once new data is entered in the data field press the Write to PLC button to update the PLC The Memory Editor will not update the data being viewed automatically To view data being updated press the Read from PLC button Press this button each time you wish to view data being updated There may be times when a block of memory will be need to be setup with data and saved for use during debugging Simply enter the data in each data field to be written to the PLC After entering the data press the Write to Disk button to save the data Use the Read from Disk to re enter the data in memory Read from Disk and Write to Disk buttons Memory Editor Format Data Size C Binay BCD Hex Word Octal Real C Double C Decimal Text Read from PLC and Write to PLC buttons r CTATO cTao I C cia C CTA2 C CTA3 i C CTA4 C CTAS C CTAB C CTA7 DirectSOFT 6 User Manual 1st Edit
12. anged if it is necessary to read the Element Value at that address Or the Address can be incremented or decremented leaving the Element Value alone to check the data at different addresses DirectSOFT 6 User Manual 1st Edition 10 25 Chapter 10 Debugging and Monitoring a Another way to use the Trap Monitor is to enable the two Trap push pins When the pins are enabled the Address can be incremented or decremented while observing the Element located at the new Address The read only data will also change Trap Monitor Trap AtAddess 2 Element E Element Value Accumulator Power Flow Master Control Trapped If you want to step through a program area to check the data in V memory locations just leave the Trap Monitor dialog as shown above then place the ladder program cursor over the element box with the memory reference in it You can then read the data in the read only area TE DirectSOFT 6 Programming UNTITLED Ladder View File Edit Search View Tools PLC Debug Window Help e Write Disk New Open oak Status Data ae 3 All Status No Status Open Data XRef View mal s Value Trend _1Second Trap Monitor X Trap Element Value OFF Accumulator 9 Power Flow No Master Control Yes Trapped Yes e At Address 6 4 e Element FirstScan E a Saat o frm n For Help press F1 For Hel
13. ble click on the element to change The following dialog will appear Change Value Element Value Current OFF Hew C Of On Format it Bit f Decimal f Binary C Signed Dec C Octal f Exp C BCD Hex Real The dialog will open with either a default reference or the reference that was double clicked on showing in the Element window 10 16 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring eae Specify an Element Reference or Nickname Since nicknames and element references are used when editing a program they can also be used with the Change Value dialog If an element with a nickname is enabled in the program when the dialog is opened the nickname will appear in the Element field An element does not need to be enabled to open the Change Value dialog If the default reference CO is displayed when the dialog is Specify the Change Value element reference or the nickname Element Value Current OFF Hew The element f Off amp On type will be Format displayed here G Bit Decimal C C Binary C Signed Dec i C Octal C Exp C BCD Hes Real opened either type in the element reference or the nickname that is to be changed The dialog will always open with the Current Value displayed The displayed element will either be On or Off The Current Value can also be a memory location see below The Element field can
14. e blank button will turn the Override feature Off The letter O in the status column indicates the Override Bit is set for that I O point NOTE Override bits clear out on a Program to Run transition DirectSOFT 6 User Manual 1st Edition 10 15 Chapter 10 Debugging and Monitoring Change Value Dialog WARNING Only authorized personnel should make changes to the program elements or data values Changes made while the PLC is in N Run Mode become effective immediately Throughly consider the impact of making changes in order to minimize the risk of personal injury or damage to equipment The Data View window can be used to make dynamic changes to I O and change data values stored in memory The status of an I O point is performed by using the dynamic edit buttons and the data values are changed by typing new values in the Edit column Both types of edit take effect only when they are written to the PLC Use the Change Value Dialog Turning On Off I O points only with Override bits set and writing data values to memory locations can also be accomplished by using the Change Value dialog When using this dialog it is not necessary to have Status on to make changes to the PLC but it is a good idea to be able to see the changes when they are made 10 To open the Change Value dialog either press the Change Value button located on the Online toolbar use Ctrl Shift F2 or with Status on and not in the Edit mode dou
15. ents column The type of entries that can be made are element references memory addresses or nicknames For example control relay C1 or Test Output 1 are valid E DirectSOFT 6 Programming UNTITLED Ladder View entries Also ROOO File Edit Search View Tools PLC Debug Window Help P a E for a data register Wi 2 y of V1 200 for a V Write Disk Edit Mode r a memory location Status Data Value Trend Mode Info Check x Da NX EF Ladder View can be entered M eect m Start Switch 3 Element The example here shows elements and a memory location which have been entered while Online with Status F enabled Reset E J 10 8 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring aa It really doesn t matter if entries are made in the Element column with the PLC Online or Offline Status On or Status Off Entries can be made with the PLC Offline then it can be placed Online later to monitor the program Whenever a Data View window is opened it appears to the left of the Ladder View see the example on the facing page Keep in mind that the Data View can be repositioned and resized to make room for a larger Ladder View like the example below The Data View position in the example may be radical but it may be more convenient for the user EF DirectSOFT 6 Programming UNTITLED Ladder View File Edit Search View Tools PLC Debug Win m P N E
16. eration will overwrite any field that has been selected prior to the paste Consequently it is preferred to paste the data into an empty field Elements can be deleted from a Data View at any time Select the item by clicking on it then either use the Delete key Edit gt Delete the Delete button on the Edit toolbar or right clicking on the element then select Delete in the pop up menu The deleted elements are not placed on the clipboard therefore lost 10 12 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring eta An editing feature that can be useful is the ability to select more than one item in Data View by using the method used to select rungs in the Ladder View Select the first item in the group then use the Shift Arrow keys to mark a range of items either horizontally or vertically A more simple way to mark items is to click on the first item in the range and hold the button and drag the mouse arrow over the rest of the last item to mark The marked items can then either be deleted cut copied or you can change the Data Format or Data Size of the selected items all to the same format or size Save the Data View Window Once the Data View window has been setup for debugging and monitoring a program it is a good idea to save it so it can be opened and used later If the Debug toobar is displayed click on the Save button and the Save dialog will open The Data View can be named something else ins
17. ew window can be saved by name e Data View windows are independent of projects and can be used for multiple projects Open a New Data View Window A new Data View window can be opened in any one of three ways the menu bar Debug gt Data View gt New the keyboard shortcut Ctrl Shift F3 or the Data button on the Online toolbar By default the Data Sata View windows are Data View Global Ladder Stage assigned names Apply options to IM Current View 1 New Views Data1 Data2 etc Display 1 Display 2 Doc Mode consecutively This Documentation Title current view only name can be changed IT Elements New Name for the current view a Reticle i i Wiring Info using the Options Descriptions dialog 10 2 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring ee The following diagram is an example of a newly opened Data View For Help press Fl A Closer Look Clear Edits Write All ee at Oy fl Element Status Edits Start Switch OFF Reset OFF on orr CTAO 0 Edits Column Write Current Edit to PLC Pam Lau Kea KA Oyo awry A A closer look at Data View will show the basic components e Select Edits Mode enables disables the Edits column When the column is enabled Edits can be written to the PLC The Edits column is not available when disabled e Data Format change the format bit bina
18. ion 10 21 Chapter 10 Debugging and Monitoring Test Mode Operations for Debugging Select Test Mode DirectLOGIC PLCs support most Test Mode operations which DirectSOFT 6 features only the DL440 and DL450 support all Test Mode operations Test Mode operations can be a useful tool for debugging programs Have Status on when using the Test Mode feature to assist with debugging your program Enter the Test Mode from either the Run Mode or Program Mode by either pressing the Mode button on the Online toolbar using PLC gt PLC Modes on the Menu bar or using the keyboard shortcut Ctrl Shift R The PLC Modes window shown below will appear Select Test then OK PLE Modes Current PLC Mode TEST RUN New PLC Mode Run f Program Test Cancel Help If the PLC is in the Run Mode when Test is selected the CPU will still be scanning the program and Test RUN will be displayed in the PLC Mode Indicator at the bottom of the program display window Test Operations Mode Test Run Stop PLC Scan button To use the Test Operations open the Test Operations window by selecting the Test button from the Debug toolbar The PLC must be in the Test Program Mode The PLC can be placed in the Test Program Mode from the above window by clicking on the Stop PLC Scan button which will be the only button highlighted in the window when in Test Run The Test Program Mode can also be entered from the Program Mode by openi
19. ither press the Memory Editor Memory button located on the Tools toolbar use Tools gt Memory Editor on the Menu bar or use the keyboard shortcut Ctrl Y The following diagaram is an example of the Memory Editor A lo Memory Editor Format Data Size a C Binay BCD Hex Word Sei e Find C Octal C Real C Double C Decimal Text 8 32 V Use Nicknames From DISK G TAO C TAI C TA2 C TAS C TA C TAS C TAG C TA oe FO OA AX ANA AOA Lae Lee Lae lee Lae lae Lade lele e A D te te my SN RS GS A ol ol ol ol ol ol ol o Lel Le Lie Le Lade lie lae Lee Select the Locations to View To use the Memory Editor first use the Find button located in the upper right hand corner of the editor A dialog will appear for the entry of the memory address to begin the range to be viewed or edited and press OK se NOTE The Memory Editor cannot be used to access bit registers I O as registers or V memory For example R600 is entered to access Timer 600 in a DL305 system or V1000 to access Counter 0 actual value in a DLOS PLC 10 20 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring Memory Editor Format Data Size C Binay BCD Hex Word C Octal CC Real C Double Enter memory address for D A start of range to view Cancel Find Element Entering V1000 for the memory r
20. lement Status aj BDS i Write Disk New Open i OnTheWeb Help E e g Status Data Value Tren E Ladder View 1b x z Start Switch Edit Mode X100 t I For Help press Fl _1Second Start SP Y1 i J IP _FirstScan JIH SPO Ctrl F2 RST Reset X101 J J For Help press Fl_ DirectSOFT 6 User Manual 1st Edition 10 9 Chapter 10 Debugging and Monitoring OO Data Format and Size There are two small fields located in the top left hand corner of the Data View window The one on the left is the Data Format field which displays the element type when it is selected in the Element column If the selected element is a bit type then Bit will be displayed in the field If desired Bit can be changed to Binary by ie if Dek Ta Status Edis Start Switch Reset clicking on the down arrow next to the field A dialog will drop down with the available selections to chose The field to the right of the Format field is the Data Format Size field The size refers to the data length As an example Bit is equal to 1 and Word is equal to 16 bits The selection of the Data Format and Size is left up to the programmer monitoring the program Datal Eal D fworo O e E Bit Octal BCD Hex Decimal Text Bit changed to Perdana Binary 16 bits 64 10 10 DirectSOFT 6 User Manual 1st Edition Chapte
21. n returns the PLC to Test Halt mode Use Breakpoint only in the test mode BREAK Instruction this instruction changes the operational mode of the CPU from Run to the Test Program mode The Break instruction allows V memory and image register data to be retained where it would normally be cleared with the STOP instruction or a normal Run to Program transition see the DL405 User Manual DirectSOFT 6 User Manual 1st Edition 10 23 Chapter 10 Debugging and Monitoring a The Test Operations Window When in one of the Test Modes the Test Operations window can be opened with the Test button located on the Debug toolbar or by using Debug gt Test Mode Operations from the Menu bar and the following window will appear The window has six buttons to be used for Test Operations mentioned on the previous page The buttons available for each test mode will be highlighted Only one button Stop PLC Scan is available in Test Run and two buttons are only available for use with the DL440 450 PLCs Single Step and Breakpoint Breakpoint Start PLC Scan Test Operations 10 24 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring Trap Monitor Access the Trap Monitor The DLO6 DL250 1 DL260 and DL450 uses an additional diagnostic tool called a Trap Monitor The Trap Monitor is used to trap capture element data at a specific address rather than after a scan The Trap Monitor can be a useful
22. nes and displaying the data in graphical form as seen below tal eln II Opt Hist Exp Syne Rec LILIN DADA NAN Time Scale 1 Min Im 1621214 DirectSOFT 6 User Manual 1st Edition 10 29 Chapter 10 Debugging and Monitoring Some things to be aware of when using Trend Views e Discrete points integer values and real values are placed in separate panes e Variables are graphed using solid lines e Constants are graphed using dotted horizontal lines e Red vertical lines indicate a loss of communication e Blue vertical lines indicate communication is re established The Crosshair Cursor The crosshair cursor is displayed anytime the mouse cursor moves over any of the panes in a Trend View The crosshair provides a visual reference when comparing values displayed on the Panes of a Trend If there are multiple Panes in the Trend View the vertical bar of the crosshair will extend through all of them Using the CTRL key and the scroll wheel on the mouse will put the Trend View into Historical Mode and zoom into or out of the area under the center of the crosshair as follows e CTRL scolling upward will zoom into the area by decreasing the Time Scale e CTRL scrolling downward will zoom out of the area by increasing the Time Scale Left clicking the mouse will take a snapshot of all the values on all the Panes on the Trend at the time where the crosshair was located then present the data on a snapshot
23. ng the Override A harm to personnel and equipment DirectSOFT 6 User Manual 1st Edition 10 11 Chapter 10 Debugging and Monitoring ae Auto increment Auto increment is a feature that can be used to enter elements sequentially For instance if a group of control relays C10 C11 C12 and C13 are to be monitored enter C10 then click on it again and then hold down Ctrl Enter and control relays will be entered until the Enter key is released If there is an element that has been entered previously in Data View click on the element nickname or reference then use the Ctrl Enter keys as mentioned above The elements will be entered in sequence below the starting point and any elements that were below the start point will be pushed down below that point Po a BIE ER SES SsTEn Start Switch DFF a Click on an Reset OFF on orr element then C10 OFF om orr OM OF press Ctrl Enter C11 OFF to make sequential C12 OFF entries C13 OFF C14 OFF C15 OFF C16 OFF 7 Mes 2 B E 2 B x BIE in A A 7 Editing Entries Editing the entries can only be accomplished by using the standard keyboard shortcuts Click on the element to be edited then use either Ctrl C or Ctrl X to copy or cut the element Ctrl V is used to paste the element WARNING Because Data View follows the conventions of spreadsheet A pasting be aware that the pasting op
24. ng the PLC Modes window and selecting Test 10 22 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring ee Test Program Operations There are four operations available for all DirectLOGIC PLCs in the Test mode only 1 Start PLC Scan this places the PLC into the Test Run mode and will start the execution of the PLC The PLC will continue executing until the Stop PLC Scan button is pressed 2 Stop PLC Scan this places the PLC into the Test Program mode which will stop the execution of the PLC 3 Single Scan will start the execution of the PLC program for one scan and then stop execution of the program 4 Multiple Scans is used to execute the PLC program for a given number of scans Use this when in the Test mode Enter the number of scans in the entry field of the pop up window and press OK The PLC will change to Test Run mode until the given number of scans have been executed at which time the PLC will change to Test Program mode This item is only available when the PLC is in the Test mode Two additional Test Operations are only available for the DL440 and DL450 PLCs they are Breakpoint specify an instruction address at which to stop the PLC Pressing OK will execute the program until it reaches the address and then the PLC is placed into Halt Mode Use this in the Test Program mode Breakpoint will place the PLC into Test Run mode until the specified address is executed the
25. oader here A DirectSOFT 6 Version Browser E NetEdit 3 File Help i Calculato Applications App Information 72 Version a DirectSOFT Downloader E DS600 ini DirectSOFT 6 Communications Serve File Name DSPUpdate exe EE Wind Network Control Panel DirectSOFT 6 Element Server 2a a a Ci ag pa aaan DirectSOFT 6 Programming Version 6 0 0 300 a D M Phere gt Version Browser Description Application Software update download ay Windows Device Manager obal Modules ili a Windows Services B Projects Modul Module Informati O cAusers desktop new folder test prj oaa matan Sg Comm Links File Name Version Type Target App App Vers F TIP A simple way to check the DirectSOFT 6 version is to open a project program and select Help About DirectSOFT 6 User Manual 1st Edition 10 33 Chapter 10 Debugging and Monitoring e Notes 10 34 DirectSOFT 6 User Manual 1st Edition
26. p press F1 Mode Info c heck Open Trend Ladder View 1b x Start Switch 1Second SP4 Y _FirstScan SP0 4 is D 10 26 DirectSOFT 6 User Manual 1st Edition z LJ ie a Edit Mode al 0003 002 001 Chapter 10 Debugging and Monitoring eT Use with Data View The Trap Monitor is normally used in combination with one or more Data Views so the inputs and outputs of the Ladder Logic or Stage program can be controlled The Trap Monitor is useful to look at math operations in a program The format for the values being read can be specified Decimal Hex or Octal Press the button in the lower right hand corner of the dialog to open another dialog to set the format Set Trap Monitor Form iim Display Format C Decimal i Hex Cancel C Octal NOTE The Trap Monitor feature is not available to use with the DLOS DirectSOFT 6 User Manual 1st Edition 10 27 Chapter 10 Debugging and Monitoring a Stack Monitor DL440 Only Access the Stack Monitor The Stack Monitor monitors PLC accumulator and data stack Either use the Debug gt Test Mode Operations gt Breakpoint dialog or the BREAK instruction to monitor the PLC accumulator and data stack at a specific address Access the Stack Monitor by either pressing the Stack button located on the Debug toolbar or by selecting Debug gt Stack Monitor from the Menu bar This feature is used most frequently
27. ported E Synchronize with Other Trend Views is used to synchronize the time Sync frame and the starting time stamp of multiple Trend Views so that all synchronized views will display the same start time and the same amount of time Click the Sync button to display a list of the available Trend Views Select the Views from the list that are to be synchronized with the current view then click the Synchronize button ea Begin Recording click this button to begin the recording session The S button face will change from a red circle to a black square with Stop as its new name and the word RECORDING will be displayed in the dialog s tab Clicking this button again will stop the recording and a Save As dialog will prompt for the filename in which to save the recorded data DirectSOFT 6 User Manual 1st Edition 10 31 Chapter 10 Debugging and Monitoring ae il Pause Recording stops recording data while the button is depressed Pse The button will appear depressed and the word RECORDING PAUSED will be displayed in the dialog s tab Click the button again to continue recording data or click the Cancel button to stop the recording session completely ae ae en Time Scale sets the overall amount of time to be Ta Hu Meast n displayed in all of the panes The Time Scale can be set to the following 500ms 1 Second 5 Seconds 10 Seconds 20 Seconds 30 Seconds 45 Seconds 1 Minute default 2 Minutes 5
28. r 10 Debugging and Monitoring Write the Edits Debugging a program is not beneficial unless the user can change an element or enter data in a memory location Changes edits are made in the Edits column All of the edits are placed in a buffer prior to writing them to the PLC There are three buttons located at the top of the Data View window which are associated with the Edits column These buttons are pointed out in the example below The Clear Edits button will clear everything out of the Edits buffer so new edits can be entered Single edits can be entered into memory such as a counter setpoint value Simply enter the value in the Edits column in the counter row A single edit can also turn on a control relay by clicking on the ON button for the relay Once both types of entries edits are made click on the button with the single arrow pointing to the PLC Write to PLC Multiple values or control relays can also be written to the PLC The entries or ON buttons are selected as for the single edit After the edits are made click on the button with four arrows pointing down at the PLC The edits will be written to the PLC one at a time Write Write Multiple Values to PLC E Current Value to PLC Clear Edits zif z O mia i Element Status Start Switch Reset on orr CTAD buttons Caution must be taken when forcing I O to prevent accidental WARNING I O points can be turned on by usi
29. ry Octal decimal etc displayed in the Status column for a selected row e Format Size choose the selected Data Format displayed in the Status column 1 16 32 WORD etc e Clear Edits this will clear all data entries from the Edits column DirectSOFT 6 User Manual 1st Edition 10 3 Chapter 10 Debugging and Monitoring OO e Write Current Edit to PLC the data value for one element can be entered in the Edits column and written to the PLC with this button e Write All Edits to PLC multiple data values can be entered in the Edits column and written to the PLC Data View Options Options Global Ladder Stage 5 Apply options to iv Curent View New Views Display 1 Display 2 Doc Mode General Settings Bit Display Settings Col 1 shows display format On Off W Status On lw Status Bits W Show Toolbar P M Show Status Line Pause Bits Le _ i Show Column Headers Override Bits lo L M Show Grid Lines Swap bytes for test display Cancel Help The Data View window can be customized for a particular user or users To customize Data View click on the Data View window then use View gt Options on the menu bar press the Options button on the Offline toolbar or right click in the Data View and choose Options The Options dialog will open with the Data View tab in view as shown above The dialog will open with default selections checked in the General Settings in the Display 1
30. tab More settings are continued in the Display 2 tab Checking Col 1 shows display format may be beneficial at times This will show the display format to the right of the element in the first column Not all requirements are the same and experimenting with the General Settings will determine what works best for you 10 4 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring ea Select Bits for Display The Bit Display Settings area to the right of the General Settings is only available under the Display 1 tab There are three selections for controlling or monitoring bits with the PLC in the Run Mode either one two all three or none can be selected enabled e Status Bits when this is enabled the status of the element will be shown in the Status column if Status On is enabled e Pause Bits enabling this will allow inputs or other logic to operate while disabling selected outputs e Override Bits selected I O points in Data View can be turned ON OFF if this is enabled The diagram below shows what a Data View can look like when all three Bit Display Settings are enabled Notice that the outputs are the only elements to have all three sets of data bit buttons in the Edits column Each group of bit setting buttons can have the displayed indicator changed from the default to any one of twenty selections 10 E GI i o Element Status Edits gt Star Switch Reset CT AO
31. tead of the default Data1 Data2 etc then save the Data View to the Projects folder by clicking on the Save button The Save dialog can also be opened by using Debug gt Data View gt Save from the Menu bar If a duplicate Data View is needed either use the Save As button on the Debug toolbar or Debug gt Data View gt Save As from the Menu bar DirectSOFT 6 User Manual 1st Edition 10 13 Chapter 10 Debugging and Monitoring OO Using Pause Bits A Pause Bit can be set for each output in the Data View window By setting the Pause Bit the output status can be controlled when the PLC transitions from Test Run to Test Program The ability to hold output states is useful since it allows key system I O points to be maintained The Pause Bit is set to maintain the output status and the Pause Bit is turned off to allow the PLC to turn off the output on the transition to Test Program mode The Pause Bit option is selected for outputs in the Data View Options tab as seen below The On Off Pause buttons will then show on the Data View Global Ladder Stage D Apply options to IM Current View New Views Display 1 Display 2 Doc Mode General Settings Bit Display Settings Col 1 shows display format On Off MM Status On M Status Bits eN orf IM Show Toolbar IM Show Status Line IM Show Column Headers M Override Bits 29 IM Show Grid Lines Swap bytes for text display Pause Bits P To
32. with segments of programming which require debugging math operations 10 28 DirectSOFT 6 User Manual 1st Edition Chapter 10 Debugging and Monitoring Trend View As mentioned in Chapter 7 Trend View is used to visually monitor the values of DL controller data elements over time The Trend View can monitor any readable numeric location or any readable bit location or any constant value The Trend View logs the values of the controller elements on each pane of the Trend Those values are displayed on a moving graph The Trend View also provides a historical mode which lets the programmer view all of the data that is currently stored for each of the data points on the display The logged data values can also be exported to a CSV file for importing into a third party application for further research A new empty Trend View can be created by selecting Debug gt Trend View gt New from the Menu or clicking the Trend button on the Online toolbar Enter the number of Panes in the Number of Panes field or use the Up or Down arrow to set the value Click the OK button to accept or the Cancel button to abort I NOTE Refer to the DirectSOFT 6 help file for more information on configuration options and features of Trend View Using the Trend View Once a Trend View has been created and its display options have been configured the Trend will begin collecting data for each of the controller elements on each of the pa

Download Pdf Manuals

image

Related Search

Chapter 10 AutomationDirect

Related Contents

EDK_II_Build_v1_22 - Firmware Encoding Index  Stages Side-car  Touchstone TG862AS Telephony Gateway User's Guide  BG 41 - Service Consommateurs De`Longhi  Documentation spécifique du programme  Stratagy DK Voice Mail  Acoustic Research HC6 Speaker System User Manual  Flygt Monitoring & Controls Alarm Distribution  Télécharger en PDF  ( , ACHATS GROUPÉS  

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.