CX-Programmer User Manual (986752), страница 20
Текст из файла (страница 20)
There are two formats – 4 or 3 columns.4 Column FormatFor supplying symbols complete with data-type, use the 4 column format, which consists of:<Symbol Name>, <Symbol Data-type>, <Symbol Address>, <Comment>The items in < > brackets are the data. e.g. A supplied piece of text such as:"Name,BOOL,1.1,this is a comment" is valid (without the ").Each item should be on a new line.Note:It is possible to have a blank address in this format, in which case the addresswill be automatically-allocated by CX-Programmer.3 Column FormatFor supplying symbols with a default data-type (BOOL for addresses containing a '.', andCHANNEL for others).The format is similar to the 4 column, except that the symbol data-type column is not used.Note:It is not possible to have blank addresses using the 3 column format.SpreadsheetsWhen using a spreadsheet to create the data, use a table of the relevant number of columns and rows inthe format above (commas in the information or nor required).
Ensure that the host application is set toproduce comma-separated text when pasting (this maybe the default).Converting Programs between PLC TypesIt is possible to automatically convert a program written for one type of PLC into another. CXProgrammer attempts to change addresses and mnemonic instructions from the source PLC type toequivalent addresses and instructions on the new type of PLC.Use the following procedure to convert program to PLC types.1, 2, 3…Revision 2.01.Double-click the PLC object in the project workspace. The Change PLC dialogueis displayed, part of the CX-Server application.
Change its CPU and PLC deviceto the new type.2.A program check is performed to ensure there are no errors. It is not possible toconvert a program that contains errors.3.The programs are converted before replacing them. Any addresses and instructionsthat cannot be directly replaced are listed in the Compile tab of the Output window.Page 95CHAPTER 5 – Advanced Topics4.OMRONCX-Programmer displays a confirmation dialogue to replace the old programs withthe new.
If there are conversion errors (listed in the output window), it is best toselect the Cancel pushbutton to abort the conversion and change the originalprograms to remove the conversion problems. If the conversion is acceptable,select the OK pushbutton to replace the programs.CX-Programmer’s program conversion process is not capable of making all program adjustmentsautomatically.
If an instruction from the old PLC does not have a direct equivalent in the new PLC thenCX-Programmer produces a warning that the conversion is not available. In addition, some addressescannot be converted.Note:When a program is copied and pasted from one PLC type to another, it does notundergo program conversion. It is good practice to ensure that programs are alreadyconverted before copying them to another PLC (by first changing the source PLC typeto the target PLC type).As a general rule, it is easier to convert upwards from C-series PLCs to CV-series PLCs to CS1-seriesPLCs.Applying a Password to the PLC ProgramsIt is possible to apply protection to a PLC or the program(s) it contains.
This protection stops CXProgrammer from uploading or comparing a program, and so provides commercial copyright security.It also stops unwanted editing of guarded programs.Generally all passwords are set on the Protection tab of the PLC Properties dialogueand are activated or deactivated by selecting the corresponding Set Password buttonor Release Password button from the toolbar.The protection that is provided, and the mechanism for protection, depends upon the series of the PLC.C-Series PLCsFor certain C-series PLCs the password is embedded in the program using a specific ladder construct andis not specified on the PLC properties page. The password must be entered as four hexadecimal digitsas shown below. Check the availability of password protection in the appropriate manual for the PLC.The program must first be set up with an open contact with the address ‘AR10.01’ applied.
Thepassword protection can then be applied. The password can be any four-digit number. To set thepassword, select the Protection tab within the PLC Properties dialogue. The following exampleillustrates the functionality of the password protection, with the password of ‘1111’.Page 96Revision 2.0OMRONCHAPTER 5 – Advanced TopicsWhen enabled, the password is required every time the program is accessed.CV-Series PLCsTwo levels of password protection are provided for CV-series PLCs, ‘System protection password’ and‘Partial protection password’, both of which are set on the PLC Properties dialogue.The ‘System protection password’, specified as a four-digit hexadecimal value, provides overallprotection for the whole of program memory.It is possible to protect several programs or chapters of programs using the ‘Partial protection password’.For each program that needs to be protected check the Protect program option and specify a range ofsteps on the protection tab of the Program Properties dialogue.When setting or releasing the protection, it is possible to select the programs to affect in the ProgramProtection dialogue.CS1-Series PLCsCS1-series PLCs support a single eight-digit alphanumeric System protection password option for allCS1-series PLCs.
This provides read protection for the whole of program memory, accessed from thePLC Properties dialogue.Revision 2.0Page 97CHAPTER 5 – Advanced TopicsPage 98OMRONRevision 2.0OMRONAPPENDIX A – Toolbar and Keyboard ShortcutsAPPENDIX AToolbars and Keyboard ShortcutsThe following tables summarise the toolbars and keyboard shortcuts available from CX-Programmer.The F1 function key provides context help.It is possible to redefine the toolbars.
It is also possible to drag/drop the toolbar buttons between toolbars,or drag buttons off the toolbars to remove them. To do this, hold down the ‘Alt’ key and drag the button.It is also possible to redefine the keyboard shortcuts.Standard ToolbarNew – creates a new document.Open – opens an existing document.Save – saves the project.Print – prints the active document.Print Preview – previews the printout of the document.Cut – cuts the selection and moves it to the Clipboard.Copy – copies the selection to the Clipboard.Paste – pastes the contents of the Clipboard at the insertion point.Undo – undoes the last action.Redo – redoes the previously undone action.Find – finds the specified text.Replace – replaces specified item text with different text.About – displays program information.Context Help – displays help for clicked on buttons and menu items.Revision 2.0Page 99APPENDIX A – Toolbar and Keyboard ShortcutsOMRONDiagram ToolbarZoom Out – zooms out the display of the ladder editing window.Zoom In – zooms in the display of the ladder editing windowGrid – toggles the display of the diagram grid.Show Comments – toggles the symbol comments On and Off.Show Rung Annotations – toggles the rung annotation On and Off.Selection Mode – returns to normal mouse selection mode.New Contact – creates a new normally open contact.New Closed Contact – creates a new normally closed contact.New Vertical – creates a new vertical connection.New Horizontal – creates a new horizontal connection.New Coil – creates a new normally open coil.New Closed Coil – creates a new normally closed coil.New PLC Instruction – creates a new PLC instruction callSymbol Table ToolbarLarge Icons – displays items using large icons.Small Icons – displays items using small icons.List – displays items as a list.Details – displays items as a report.Page 100Revision 2.0OMRONAPPENDIX A – Toolbar and Keyboard ShortcutsInsert ToolbarNew PLC – inserts a new PLC into the project.New Program – inserts a new program into the PLC program list.New Section – inserts a new section into program section list.New Symbol – inserts a new symbol into the symbol table.PLC ToolbarWork Online – toggles the connection to the selected PLC.Toggle PLC Mounting – toggles monitoring for this PLC.Pause upon Trigger – begins a pause monitoring operation.Pause – toggles monitoring On and Off.Transfer to PLC – writes program information into the PLC.Transfer from PLC – reads program information from the PLC.Compare with PLC – compares program information with PLC.Program Mode – switches the PLC into program operation mode.Debug Mode – switches the PLC into debug operation mode.Monitor Mode – switches the PLC into monitor operation mode.Run Mode – switches the PLC into run operation modeDifferential Monitor – monitors for a change in a bit.Data Trace – traces PLC memory contents.Set Password – sets password protection in the PLC.Release Password – releases password protection in the PLC.Revision 2.0Page 101APPENDIX A – Toolbar and Keyboard ShortcutsOMRONProgram ToolbarView Monitoring – toggles monitoring on the active window.Compile Program – performs a program check on the program.Compile PLC Program – performs a program check on the PLC Program.Begins Online Edit – starts an online-edit operation on the selected rungs.Cancel Online-Edit – stops the online-edit, cancelling any changes.Views ToolbarToggle Project Workspace – toggles whether period workspace is on view.Toggle Output Window – toggles whether the output window is on view.Toggle Watch Window – toggles the watch window On and Off.Toggle Address Reference Tool – toggles the add.