CX-Programmer User Manual (986752), страница 8
Текст из файла (страница 8)
To drag a section to the top of the list, it must be dropped on theprogram item itself.A section may be moved to another program, or just within the same program, inwhich case it changes the execution sequence of the sections.(b) When using the keyboard the 'Move Up' or 'Move Down' commands from thecontext menu of a section in the project workspace are used. Each commandwill move the selected section up or down one position at a time.4.Copying a program section(a) Select the section to be copied, and from the Edit menu select Copy.
Move tothe location of the program (the program item on the project workspace) forthe copy to be placed, and select Paste from the edit menu.Revision 2.0Page 35CHAPTER 3 – Project ReferenceOMRON(b) Instead of using the Edit commands, it is possible to drag and drop the sectionin a similar way to moving it. However, if the ‘Ctrl’ key is held down beforedropping the section (on the program item), then a copy operation will takeplace.5.Replacing a program section(a) To replace a section, copy or move the required section on top of the one tobe replaced.
A confirmation is then requested.6.Deleting a program section(a) Select the section to be deleted, and from the Edit menu select Delete.When using the Copy and Paste commands with program sections only the contents of a section arecopied, not the section itself. In order to duplicate a section a new section must first be created then thecontents of the selected section can be copied and pasted into it.Downloading / UploadingCX-Programmer can also use a PLC instruction to store the section markers in the PLC when theprogram is downloaded. This will allow CX-Programmer to upload a single section for online-editing.It will also allow CX-Programmer to upload the program complete with section breaks.A single program section may be uploaded for online-editing (reducing the transfer time to a minimum).However, it may not be downloaded since it is only a program segment. To download a program section,it is necessary to copy it into a complete program.Cross-Reference ReportThe Cross-Reference Report allows the symbol usage within different memory areas to be examined.
Itcan be used for checking the values being set by instructions when the program is not behaving asexpected. It can also allow the programmer to make efficient use of memory resources.Page 36Revision 2.0OMRONCHAPTER 3 – Project ReferenceUse the following procedure to generate a cross-reference report.1, 2, 3…1.Select the Cross-Reference Report button from the toolbar to open the CrossReference Report.2.Select a usage from the Report type field, either Detailed Usage, Usage Overviewor Usage Overview Including Unused.3.Select an area from the Memory Area field. When changing options, reselect fromthe Memory Area field to refresh the report.4.Select the Generate pushbutton to activate the report.
In addition to the addressreport information, the amount of free program memory in the PLC is displayedin the Free UM field. The total program memory size of the PLC is displayed inthe Total UM field.The Detailed Usage option within the Report type field displays information about the usage of anyaddress used within the PLC program(s). The program name, step number, instruction type, the startaddress of the operand and symbol details relating to each usage are shown.The Usage Overview option within the Report type field displays an overall summary of the usage forthe selected memory area, showing only the addresses that are in use.
For each used address, a usagecount is displayed. The ‘D’ symbol denotes that the address has a symbol assigned to it.The Usage Overview Including Unused option within the Report type field displays the usage overviewof the memory area, including addresses that are not used.A cross-reference report can be printed. Use the following procedure to print a cross-reference report.1, 2, 3…1.Select the Cross-Reference Report button from the toolbar to open the CrossReference Report.2.Generate an appropriate cross-reference report.3.Select the Print pushbutton.
A standard Microsoft Windows Print dialogue definesprinter settings and allows print parameters to be entered.Address Reference ToolThe Address Reference Tool shows how and where a PLC address is used within the program set of aPLC.Revision 2.0Page 37CHAPTER 3 – Project ReferenceOMRONUse the following procedure to use the Address Reference Tool.1, 2, 3…1.Open a Ladder program by double-clicking the program object in the projectworkspace.2.Select a cell in the Ladder program.3.Select the Address Reference Tool button from the toolbar.
The AddressReference Tool window is displayed in the Diagram Workspace. The AddressReference Tool displays a list of references made to the address selected in theLadder program.4.With the Address Reference Tool still open, another selection can be made in theLadder program; the Address Reference Tool is refreshed accordingly.The Address Reference Tool is displayed in front of other windows. Only one Address Reference Toolcan be opened at a time. The window can be ‘docked’ within the main CX-Programmer window.Note:Page 38It may be necessary to show the address reference tool in order to use the commandsGo to Next Output, Go to Next Input and Go to Next Address Reference,depending upon the diagram options chosen (see page 41).Revision 2.0OMRONCHAPTER 3 – Project ReferenceOutput WindowThe Output window is usually displayed at the foot of the main window.
Select theToggle Output Window button from the toolbar to display the Output window. Selectthe Toggle Output Window button from the toolbar to remove the Output windowfrom the display.The Output Window has three different views:♦Compile. The Compile tab displays the output produced from program compilation. Selecting anerror highlights the source of the problem in the Ladder Diagram. The Compile tab also displaysother information, for example, warnings and connection messages.♦Find Report. The Find Report tab displays the output produced from a search of project files for aparticular entry.
Refer to Chapter – 3 Finding and Replacing♦Transfer. The Transfer tab view displays the results of file or program loading.To clear the view, select Clear from the context sensitive menu.To go to the source of errors indicated in the Compile or Find Report tabs, double-click the message inthe output window. It is also possible to use the Next Reference command from the Edit menu – thisjumps to the location of the next message on the output window, whichever tab is on show. The locationjumped to is highlighted in the Diagram Workspace.
Note that is possible to quickly move through thelocation of the messages by continually using the Next Reference command.Watch WindowThe Watch window allows the contents of specified PLC addresses in more than one PLC to bemonitored at the same time. The Watch window is usually displayed at the foot of the main window. Itdisplays the value of the contents of PLC memory during program execution.Revision 2.0Page 39CHAPTER 3 – Project ReferenceOMRONUse the following procedure to use the Watch window.1, 2, 3…1.Open the Watch window by selecting the Toggle Watch Window button fromthe toolbar View – Windows option.2.Select Add from the context sensitive menu.
The Add Watch dialogue isdisplayed.3.Select the PLC from the PLC field and the name, address or symbol to bemonitored in the Name and Address field. Select the Browse pushbutton to locatea symbol, if required.Note that it is also possible to select how the information is viewed inside theaddress by choosing the data type of the information. A local symbol may beentered by typing in the program and symbol name, separated by a '.' character(this symbol 'path' is also shown in the watch window for local symbols).4.Select how to view the data from the View As field.5.Select the OK pushbutton to complete the operation.pushbutton to abort the operation.Select the CancelThe PLC name is added to the Watch window. During program execution, the changing value of thisaddress is displayed.
Values can be set in this window to a specific value to test program execution.Options and PreferencesA number of options and preferences can be set by selecting Options from the Tools menu.Page 40Revision 2.0OMRONCHAPTER 3 – Project ReferenceDiagramsThe Diagrams tab allows settings to be applied to the Diagram Workspace upon entry to CXProgrammer.Use the following procedure to change the settings applied to the Diagram Workspace.1, 2, 3…1.Select the Diagrams tab within the Options dialogue.2.Set the Show rung and step numbers to view the rung and step numbers at the leftof the ladder display, in the rung margin. Deselecting gives a smaller rung margin.3.Setting the Show rung dividers will draw a line at the bottom of each rung, showingits boundary.4.Setting the Show grid by default will place a dot pattern around each cell on theladder diagram.
This pattern can aid element placement, but may be removed fora clearer display.5.If the Show rung annotation lists is set then the list of comments which are withinthe rung (both attached comments associated with particular elements within therung, and unattached comments) will be listed below the rung comment. Note thatthis option can be quickly changed via the View Rung Annotations button on thetoolbar.6.If the Monitor in hex is set then the online monitoring format of values within PLCaddresses will always be shown in hexadecimal. This may be toggled from thetoolbar.7.Setting the Allow Address Referencing without Window option allows use of theGo to Input, Go to Output, Go to Next Address Reference and Go to PreviousJump Point commands when the address reference tool is not on show. If thisoption is not set, then the tool must be visible to use these commands.