CX-Programmer User Manual (986752), страница 4
Текст из файла (страница 4)
The licence number may be input at the time of installation or later. To input the licencenumber after installation, use these steps.1, 2, 3…1.Start CX-Programmer, as described above.2.Choose the About CX-Programmer option from the Help menu.3.Press the Licence button.4.A dialogue is displayed to allow a new licence number to be entered.5.When a correct licence number is entered, CX-Programmer must be restarted togain full functionality.Choose the About CX-Programmer option from the Help menu. In the About box, choose Licence.
Adialogue is dip.Introducing CX-Programmer ProjectsThe information within a CX-Programmer project consists of ladder program(s),operands, required PLC memory contents, IO tables, expansion instructions (ifapplicable) and symbols. Each CX-Programmer project file is separate and is a singledocument.CX-Programmer can only open a single project at a time.
However, it is possible to dealwith many project files by using CX-Programmer at once.A CX- Programmer project has a .CXP or .CXT file extension. (normally the .CXP fileis used, and is a compressed version of the .CXT file).Once the project itself is created the desired PLC and symbol information can be defined. For a fulldiscussion of PLCs, refer to the CX-Server User Manual.The CX-Programmer EnvironmentThis chapter describes how to manipulate the different views of the main window. Usethis chapter to develop an understanding with the layout of CX-Programmer and tocustomise it according to specific requirements.Page 12Revision 2.0OMRONCHAPTER 2 – Quick Start GuideThe views available are controlled via the options supplied by the View menu.The project workspace.
Select the Toggle Project Workspace button from the toolbarto activate this view. Deselect the Toggle Project Workspace button from the toolbarto deactivate this view.The Output window. Select the Toggle Output Window button from the toolbar toactivate this view. Deselect the Toggle Output Window button from the toolbar todeactivate this view.The Watch window.
Select the Toggle Watch Window button from the toolbar toactivate this view. Deselect the Toggle Watch Window button from the toolbar todeactivate this view.The Cross Reference Report. Select the Cross Reference Report button from thetoolbar to activate this view.Revision 2.0Page 13CHAPTER 2 – Quick Start GuideOMRONThe local symbol table. Select the View Local Symbols button from the toolbar toactivate this view.The Diagram Workspace. Select the View Diagram button from the toolbar to activatethis view.The Mnemonics view. Select the View Mnemonics button from the toolbar to activatethis view.The Address Reference tool.
Select the Show Address Reference Tool button from thetoolbar to activate this view.The Properties dialogue. Select the Show Properties button from the toolbar toactivate this view.All windows in the CX-Programmer main window can be minimised, maximised orclosed. Refer to standard Microsoft Windows documentation for further information.Each window has an associated context menu obtained by clicking the right-mouse button. These optionsshow the functions relevant to the point where the right-mouse button was pressed.The status bar displays instant help, PLC on-line status, PLC mode, connected PLC and PLC type, PLCcycle time, on-line edit buffer size and current cursor position depending on which view is displayed.To exit CX-Programmer, select Exit from the File menu.Refer to Chapter 3 - Project Reference for further information.Project WorkspaceThe project workspace displays the project as a hierarchical tree structure showingrelated PLC and program details.
Select the Toggle Project Workspace button fromthe toolbar to activate this view. Deselect the Toggle Project Workspace button fromthe toolbar to deactivate this view.Page 14Revision 2.0OMRONCHAPTER 2 – Quick Start GuideA description of each object in the hierarchy and their associated context menus is provided as follows:PLC. Refer to the CX-Server User Manual for details.Global Symbol Table.
Refer to Chapter –2 Introducing Symbols and the Symbol Tablefor details.IO Table. Refer to the CX-Server User Manual for details.PLC Settings. Refer to the CX-Server User Manual for details.Memory Card. Refer to the CX-Server User Manual for details. The Memory Cardobject can only be selected when the PLC is on-line.Error Log.
Refer to the CX-Server User Manual for details. The Error Log object canonly be selected when the PLC is on-line.PLC Memory. Refer to the CX-Server User Manual for details.Program. Refer to Chapter –2 Using CX-Programme for details.Local Symbol Table. Refer to Chapter –2 Introducing Symbols and the Symbol Tablefor details.Sections. Refer to Chapter – 2 Program Sections.The hierarchy can be collapsed or expanded to show either a partial view or full viewof the project workspace tree.Diagram WorkspaceThe Diagram Workspace can display a Ladder program, the symbol table of that program or theMnemonics view.
The details displayed depend upon the selection made in the project workspace.When a new project is created or a new PLC added to a project, an empty Ladder program isautomatically displayed on the right-hand side to the project workspace. The symbol table andMnemonics view must be explicitly selected to be displayed. All views can be opened at the same timeand can be selected via options associated with the Window menu.The Ladder program graphically represents the PLC power flow from left to right and the programsequence from top to bottom.PLC program instructions can be entered as a graphical representation in Ladder form. Programs canbe created, edited and monitored in this view.Follow the examples provided to develop an understanding of the Diagram Workspace.Revision 2.0Page 15CHAPTER 2 – Quick Start GuideOMRONSelect the View Diagram button from the toolbar.
The Ladder program window isdisplayed in the Diagram Workspace.The following items are standard features of the Ladder program area:Page 16♦Cursor. A rectangular block showing the current position within the rung. The location of thecursor is displayed in the status bar.♦Rung. A logical unit of a ladder program.
A rung can encompass one or more rows and columns.All rungs are numbered.♦Bus-bars. The left bus-bar provides a graphical representation of the power supply bus-bar. Theright bus-bar contains the output region: to align objects to the right bus-bar. The right bus-bar isselectable for display. If shown, the ladder rungs are justified so that the outputs of the rungs areorganised along it.♦Grid Dots.
Dots that display at the connection points of each cell. To display the grid, select theGrid button from the toolbar.♦Rung Margin Area. The area to the left of the Left bus-bar. The rung number and step number foreach rung are shown here (rung number on the left).♦Automatic Error Detection. A bar is displayed to the left of the currently selected rung area.
Aselements and instructions are added to the rung, the additions are automatically checked to see ifthey are valid. The colour of the bar indicates the validity of the program: red highlights an error,whilst green indicates a correct entry. In addition, elements of the text on the ladder are drawn in thiserror colour if a problem exists.Revision 2.0OMRONCHAPTER 2 – Quick Start GuideThe colour and display preferences of the above features can be amended by selecting Options from theTools menu.More than one element in a rung can be selected by pressing the mouse button down on an element and,keeping the left-mouse button depressed, dragging a highlight over other elements in the rung.
Selectedelements can then be moved as a block.Mnemonics ViewThe Mnemonics view is a formatted editor for programming in mnemonic instructions. This view ismade up of a table of six columns containing the rung number, step number, instruction, operands, valueand comment.Mnemonic instructions are a ‘low-level’ view of a PLC program, whilst ladder is higher. Since the ladderprogram is just a higher level representation of the mnemonic instructions, it is possible to type inmnemonics and see the ladder program update.Select the View Mnemonics button from the toolbar. The Mnemonics view isdisplayed in the Diagram Workspace.1, 2, 3…1.To program in mnemonics, open the mnemonic view and place the cursor on thedesired instruction.2.Press ENTER – this will enter the editing mode.3.Edit or type the new instruction lines.
A mnemonic instruction consists of aninstruction name followed by a set of operands separated by spaces (e.g. ‘MOV #1A2’).4.Either press ENTER to move to the next line, or press ‘down’ or ‘up’ on thekeyboard to move to another line – the updated line is still kept.The newly entered information is separated out over the columns in the table.5.When finished with editing, press ‘Esc’ to come out of editing mode.Whilst entering a program in the mnemonics view, the ladder view shows the instructions in the new rungas statement list.