CX-Programmer User Manual (986752), страница 11
Текст из файла (страница 11)
To do this, use the ‘Address’ look-at type, and type in the address ofthe status bit/s to operate on (e.g. T0001). This will also find the first operand of a timer/counterinstruction (e.g. If T0001 is looked for, then ‘1’ will also be found in the TIM instructions).Therefore, it is possible to change a range of TIM numbers to another offset.Revision 2.0Page 49CHAPTER 3 – Project ReferenceOMRONFinding and Replacing SymbolsIt is possible to perform a replace on 'Symbol Names' within a program, but this only updates theprogram, so that the new name is inserted as the operand. The replacement within the program does notaffect the underlying symbol definition.When a symbol name is updated in the symbol table, the programs using the symbol will also be updatedto use the new name.Note:It is not possible to change the definition of a symbol from within a program. i.e.
Asymbol's comment or name cannot be changed unless the replace is happening withinthe symbol table.PropertiesEach window or object in CX-Programmer has associated Properties that can be displayed. The methodof displaying the tool is the same.The following Properties are available:♦Project;♦PLC;♦Program.A Pin feature is available for all Properties. Select the Pin button from the Propertiesdialogue to keep the dialogue on top of other windows.Use the following procedure to view properties.1, 2, 3…1.Select the required object from the project workspace.2.Select the Show Properties button from the toolbar. The Properties dialogue isdisplayed.If another object or window is selected whilst a Properties dialogue is open, the dialogue changes appearanceto reflect the properties for the newly selected item or area.Project PropertiesThe Project Properties dialogue allows the name of the project to be altered and a link to an external CXServer file to be created.Use the following procedure to view project properties.1, 2, 3…Page 501.Select the Project object in the project workspace.2.Select the Show Properties button from the toolbar.
The Project Propertiesdialogue is displayed.3.Enter a name for the project in the Name field.Revision 2.0OMRONCHAPTER 3 – Project Reference4.Select the New File pushbutton. The Create New CX-Server File dialogue isdisplayed. Enter the file name in the File name field and select the OK pushbutton.The dialogue closes and the CX-Server file name is now displayed in the Path fieldof the General tab in the Project Properties dialogue.5.To remove the link, select the Unlink pushbutton.6.Apply a project comment in the Comments tab.7.Select the Close button from the title bar to close the Project Properties dialogue.CX-Programmer supports a mechanism for sharing symbol definitions with other, compliant applications.This could allow, for example, the symbols declared within CX-Programmer to be linked to a SCADApackage so that the definitions and changes of addresses are synchronised.Note:The sharing is not active – changes in the shared symbols are not instantly broadcastto the other applications.A CX-Server file is used as the medium for transferring symbol definitions between applications.Refer to Chapter 5 - Advanced Topics for details regarding linking symbols to CX-Server components.PLC PropertiesThe PLC Properties dialogue allows a PLC’s settings to be configured and connected.
Its connectionscan also be verified.Use the following procedure to view PLC properties.1, 2, 3…1.Select the PLC object in the project workspace.2.Select the Work On-line button from the toolbar to connect to the PLC.3.Select the Show Properties button from the toolbar. The PLC Properties dialogueis displayed.4.Select the Verify pushbutton to test the connection between PLC and computeragainst the information supplied in the Name and Type field. Select the OKpushbutton in the displayed confirmation dialogue.3.The PLC operating mode can be changed from within the PLC Properties dialogue.Select the appropriate Mode setting and select the Yes pushbutton to confirm theoperation. Select the No pushbutton to abort the operation.4.Select the Close button from the title bar to close the PLC Properties dialogue.Password protection, displayed from the Protection tab of the PLC Properties dialogue, is described inChapter 5 - Advanced Topics.Revision 2.0Page 51CHAPTER 3 – Project ReferenceOMRONProgram PropertiesThe Program Properties dialogue allows a PLC name to be entered or amended and for tasking PLCs,allows their tasking type to be defined (CS1-series PLCs only).
The icon to the left of the projectworkspace changes according to the task type selected. Cyclic tasks represent the main program.The task can also be set to start on start-up of the PLC.Use the following procedure to change properties for a program at any time.1, 2, 3…1.Click on the Program object in the project workspace.2.Select the Show Properties button from the toolbar. The Program Propertiesdialogue is displayed.3.Select a Task type setting from the Task Type field. The icon to the left of theprogram name changes to reflect the task type.4.Set the Operation Start setting so the program starts on PLC start-up.5.Select the Close button from the title bar to close the PLC Properties dialogue.Using Microsoft Windows Features in CX-ProgrammerStandard Microsoft Windows procedures can be used within the CX-Programmer environment.Opening and Saving ProjectsMaintaining project files on disk is achieved in the same way as in other Microsoft Windowsapplications.
Various types of file are used for CX-Programmer projects:♦‘.CXP’. The project file itself;♦‘.OPT’. A file containing the preferences for the project;♦‘.BAK’. A backup copy of the project file;♦‘.CXT’. A text-based format supported by CX-Programmer for both opening and saving. The .CXTfile format is used for file conversions.Opening and saving operations are similar to other Microsoft Windows applications; however, each timean existing project is opened it is recompiled (a progress marker is displayed during this loading andcompilation process).Note: LSS, CVSS and SSS project files require conversion to the correct format and must beimported via the File Conversion tool; refer to Chapter 5 - Advanced Topics for furtherinformation.1, 2, 3… 1.
Select the Open button from the toolbar. The Open CX-Programmer File dialogueis displayed.2.Page 52Choose the file type that is to be imported in the Files of type field.Revision 2.0OMRONCHAPTER 3 – Project Reference3.Select the file that is to be opened from the File name field, or type in the name.Note that the file type is determined by the suffix (i.e. the part of the namefollowing the ‘.’).4.Select the Open pushbutton to open the file. A progress indicator is displayed asthe program(s) associated with the project are compiled.5.Recently opened files can be opened directly from the File menu.6.Select the Close command from the file menu to close an existing open project.Select the Save Project button from the toolbar to save the project.
This should beperformed on a regular basis. Select the Save As option from the File menu to save anexisting project with another name.SYSWIN File LoadingSYSWIN project and library files can be directly opened from within CX-Programmer, by choosing thefile types of ‘.SWP’ or ‘.SWL’ respectively in the ‘File Open’ dialogue. In either case, a ‘.CXT’ file iscreated in the same location as the original file, and CX-Programmer opens this.It is not possible to save a CX-Programmer project as a SYSWIN file.Printing Project DetailsPeriodic hard copy printing may be necessary during project development.
CX-Programmer providesprintouts of the following items:♦Ladder program;♦Global symbol table;♦ Local symbol table.Use the following procedure to print project details.1, 2, 3…Revision 2.01.Select Page Setup from the File menu.2.Select the Margins tab and enter the desired top, bottom and edge margins in theTop field, Bottom field, Left field, Right field, Header field and Footer field.3.Select the Header or Footer tab. Enter text in the Left, Centre and Right fields.Predefined text can be entered by selecting the Insert Field pushbutton – Date,Time, Title, Filename or Page Number.4.Select the Pen and Paper tab and select the Set Font pushbutton to select thedesired font in which the header and footer are to be printed.5.Select the Print Setup pushbutton to correctly set up printer settings.
Refer to theassociated Printers Operating Manual for further information.6.Select the OK pushbutton to continue.Page 53CHAPTER 3 – Project Reference7.OMRONSelect the Print Preview button from the toolbar, if required. The Previewdialogue is displayed. The following functions can be accessed.Select the Next Page pushbutton or Prev Page pushbutton to navigate through thepages of the printout.Select the Two Page pushbutton to view two pages of the printout at once. Thispushbutton then changes to the One Page pushbutton to revert.Select the Zoom In or Zoom Out pushbuttons to magnify or expand the view ofthe printout.Select the Close pushbutton to close the dialogue.8.Select the Print button from the toolbar.
A standard Microsoft Windows Printdialogue defines printer settings and allows print parameters to be entered.Manipulating ViewsEach view in the main window (including the windows displayed when an object in the Project tree hasbeen opened) has an associated context sensitive menu, displayed by clicking the right-mouse button.Certain common options on these menus control the positioning and display of the associated view.There are restrictions on the positioning of some windows.♦Float. The selected window expands to full screen width. Select the Float option to expand thewindow.♦Dock. Moves the window left, right, to the top, or to the bottom. Select the Dock option to returnthe view to its previous size.♦Hide.
All views can be hidden except the Diagram window (although all can be closed). Select theassociated icon from the Toolbars option from the View menu to redisplay the view.♦Expand All. Expands the project hierarchy to show all components. This option is only availablefrom the project workspace context sensitive menu (i.e.
ensure that a component has not beenselected).Windows that have not been maximised display the following bar at the top or side of the window.Selecting these buttons allow the window to be moved or closed respectively.Cut, Copy and PasteA variety of items can be copied and pasted to different locations in a project, between projects or evenapplications:Individual items can be copied, cut and pasted within, or between a Ladder program(s), Mnemonicsview(s) and symbol tables: for example, text, contacts and coils.Page 54Revision 2.0OMRONCHAPTER 3 – Project Reference♦Symbols.