CX-Programmer User Manual (986752), страница 12
Текст из файла (страница 12)
Individual symbol entries can be copied/moved between symbols tables (both global andlocal) or a whole table can be copied/moved to another program by selecting the table and thenselecting the program to be copied. Symbol entries can also be copied or moved as text to anotherapplication.♦Programs / Sections. A complete program or section can be copied to another PLC (or within thesame PLC if multi-tasking) by selecting the program in the project workspace and then pasting itinto the PLC.
Individual aspects of a program can be copied by selecting an area from the LadderDiagram and pasting into the Ladder Diagram of another program. When copying a program, thesymbols used within it are also copied to the new location. If symbols of the same name are foundin the local symbol table of the destination PLC / program, then they are left alone. Otherwise, therequired symbols are added.♦PLCs. A complete PLC definition can be copied in the project tree by selecting a PLC, selecting theproject name and performing a paste operation (all associated components of the PLC, for exampleIO Table and Memory are copied).Standard Microsoft Windows drag and drop procedures can also be applied.
CXProgrammer automatically prevents invalid drag and drop operations by displaying a‘No Entry’ icon.Use the following procedure to copy or move information within CX-Programmer.1, 2, 3…1.Select an item, or items, in a window. More than one item can often be selectedby pressing Shift and selecting another item to extend the selection, or by pressingCtrl and selecting another item to add to the selection.2.Select the Copy button from the toolbar to copy the item, or the Cut button fromthe toolbar to move the item.3.Select an area to move the items to (e.g another window, or another place on theproject workspace tree).4.Select the Paste button from the toolbar to paste the item.
A Paste operation canbe performed several times without copying again.Drag and DropIn places where it is possible to perform a cut/copy/paste operation, it is usually possible to perform adrag/drop operation. Using the mouse, click on an item and hold the mouse button down. Drag themouse to another location which is to receive the item, and release the mouse button. The item shouldbe dropped.The effect of the drop operation is shown by the mouse cursor.
If a ‘+’ is shown at the bottom of thecursor, then the drop will have the effect of duplicating the item being dragged. If not, then the item willbe moved.Symbol References Drag/DropIt is possible to drag symbols from the symbol tables into the ladder window. This has the effect ofsetting an operand of an instruction on the ladder window.
When dragging into an empty cell, it isRevision 2.0Page 55CHAPTER 3 – Project ReferenceOMRONpossible to create a new contact or coil with the given symbol as the operand. To create a coil, hold down‘Shift’ at the time of the drop, otherwise a contact will be created.It is possible to drag symbols into the watch window which will add references to them to the list ofmonitored addresses. A ladder element (contact/coil/instruction operand) may also be dropped into thewatch window.Undoing and Redoing an OperationAn item in the Diagram Workspace can be restored to an earlier state. Select the Undobutton from the toolbar to undo the last action. Select the Redo button from the toolbarto re-apply an action.Note:The action of going on-line and offline to/from a PLC empties the memory of undooperations for that PLC, so that it is not possible to undo operations which were madepreviously.Deleting ItemsMost items within a project can be deleted – although restrictions apply when the PLC is on-line.
Aproject cannot be deleted. The following rules apply to deleting an object:♦If a PLC is deleted all associated items are deleted. Individual components (apart from theprogram(s)), for example an IO Table cannot be deleted separately.♦A PLC cannot be deleted if it is currently opened for communications or if it is acting as a gatewayPLC.♦If a program is deleted, its associated (local) symbol table is deleted.♦A global or local symbol table cannot be deleted except as part of a PLC deletion (both types oftable) or program deletion (local symbols).♦PLC pre-set symbols in the global symbol table cannot be deleted. Entries in the local symbol tablecan be deleted.♦ All entries in the Ladder program and Mnemonics view can be deleted (provided the PLC is offline).Use the following procedure to delete an object.1, 2, 3…Page 561.Select the object in the project workspace or items in the Diagram Workspace.2.Select Delete from the context sensitive menu.
A confirmation dialogue isdisplayed when deleting PLCs and programs.3.Select the Yes pushbutton to confirm the deletion. Select the No pushbutton toabort the operation.Revision 2.0OMRONCHAPTER 3 – Project ReferenceRenaming an ObjectA number of objects in the project file can be renamed (unless the PLC is on-line):♦Project. This can be renamed by simply typing a new name over the existing one in the projectworkspace tree. It can also be changed via its Properties dialogue available from its context sensitivemenu.♦PLC. The name of the PLC can be changed by entering a new name in the Change PLC dialoguesupplied by the CX-Server application, available from its context sensitive menu.
Refer to the CXServer Reference Manual for further information.♦Individual objects including symbols. These names can be changed by displaying the appropriateEdit dialogue.Note:CX-Server components, for example the IO Table, cannot be renamed.Field DescriptionsThe global and local symbols tables display information in tabular form. The fields are identified bycolumn headers; these columns can be resized and information displayed according to preference.To resize column width, select the required field division and drag to the desired width.
The tabulatedinformation can also be sorted by selecting the appropriate field division. The manner in which theinformation is displayed can be altered by selecting the appropriate icon.Select the Large Icons button from the toolbar to display content as large icons.Select the Small Icons button from the toolbar to display content as small icons.Select the List button from the toolbar to display content as a list.Select the Details button from the toolbar to display content with associated details.Next ReferenceThe Next Reference command works with the Output Window.
It jumps the program display to thepoint referred to on the next line of the output window.The command works according to which tab the output window is showing (compile, find report ortransfer).Go ToThe Go To options are available in Mnemonic and Ladder Diagram views and enable jumps to a requiredlocation in the program.Revision 2.0Page 57CHAPTER 3 – Project ReferenceOMRONRung / Step NumberIt is possible to jump the display to show a particular location in a program or section.
A location canbe specified by either its rung or step number.The Go To dialogue allows a choice of specifying the rung or step number. The range of valid rung orstep numbers is shown.Note:When the dialogue has been accessed from a program level (i.e. when viewing theprogram section list, or from the program level on the project workspace), it is possibleto jump to any point within the whole program. However, since rung numbering is persection, only steps may be used for referencing in this case. The step range will showthe entire range within the program.The dialogue also has a rung browse function, accessed from the Browse button. The browser lists thesections within the program and the commented rungs within each section.
A rung may be chosen forviewing from this list.When the dialogue Go To button is pressed, the requested location is brought into view.Commented RungThe Commented Rung dialogue shows a list of rungs within sections which have been given commentproperties. The first line of a rung’s comment is shown in a numbered list (the numbers start from 1 anddo not indicate the rung number).A list of sections is given above (when the function is accessed from the program scope).When a rung is chosen, the program section is immediately shown at the chosen position.Page 58Revision 2.0OMRONCHAPTER 3 – Project ReferenceWhen the diagram cursor is above a contact, it is possible to jump directly to a coil that is using the sameaddress.Next Address Reference / Input / Output / PreviousThe address reference tool allows easy navigation to the location of other places in the program wherean address has been used.
These commands may be used when the address reference tool is on show, oreven without it if the diagram options ‘Allow Address-Referencing without Window’ option is set.The Go to Next Address Reference command moves the selected line down one, so that the programshows the next reference of the current address.The Go to Next Input command moves the selected line on the tool to the next line referring to an inputinstruction (e.g. contact). If an input is not found on lines below the currently selected reference, thenthe search will begin at the top of the list.The Go to Next Output command moves the selected line on the tool to the next line referring to anoutput instruction (e.g.
coil, or 'MOV' instruction). If an output is not found on lines below the currentlyselected reference, then the search will begin at the top of the list.The navigation tool remembers a history of the places that have been jumped from - the Go to PreviousJump Point command moves back to the last point from which a jump was made from.Select AllRather than selecting items in a window individually, it is possible to select the window and then SelectAll from the Edit menu.Revision 2.0Page 59CHAPTER 3 – Project ReferenceOMRONToolbars – Viewing, Hiding and Customising ToolbarsThe Customise dialogue allows a set of toolbars to be chosen for display.
It also allows new toolbars tobe created. A full description of each toolbar is provided in Appendix A, Toolbars and Keystrokes.Use the following procedure to add or remove a toolbar from the CX-Programmer environment.1, 2, 3…1.Select Toolbars from the View menu. From the Toolbars dialogue select theToolbars tab.2.Select the toolbars from the Toolbars: field to be viewed the toolbar in the CXProgrammer environment.
Deselect the setting to remove the toolbar from thedisplay.3.Check the Show Tooltips setting to ON to display the tooltip associated with thetoolbar buttons.4.Check the Cool Look setting to ON to remove the box around each toolbar button.5.Check the Large Buttons setting to ON to increase the size of the toolbar buttons.6.Click the OK button to accept the settings or the Cancel button to abort theoperation.Customising a ToolbarToolbars can be customised by dragging and dropping buttons from a selected category or from toolbarto toolbar.Use the following procedure to add, remove or move toolbar buttons.Page 60Revision 2.0OMRONCHAPTER 3 – Project Reference1, 2, 3…1.From the View menu select the Toolbars option, then from the Toolbars dialogueselect the Commands tab.2.From the list of Categories select the type of buttons to be viewed. The buttonsassociated with that category are then displayed.3.Click on the selected button and drag and drop it in the appropriate position in theselected toolbar.4.To remove a button from a toolbar, select the category that contains the button tobe removed then select the toolbar button and drag and drop it back to the buttonbox.5.To move a button from one toolbar to another, select the button to be moved thendrag and drop it in position in the selected toolbar.Creating a New ToolbarNew toolbars can be created and then customised by moving buttons from an existing toolbar or byadding buttons using the customising feature.