Omron CX-PROGRAMMER V9 Operation Manual page 170

Table of Contents

Advertisement

OMRON
Use the following procedure to edit a rung in statement list format.
1, 2, 3...
Program Reusability
Parts of the program (single or multiple rungs, or a single program section) can be saved as a file (.cxr: text file)
by selecting File
inserted in a user-set location in the program of another project by selecting File
Project. In the same way, specified variables in a symbol table can be saved as files, and then read and inserted
in a symbol table of another project. Multiple reusable files can also be inserted all together in a specified order.
The order used to insert multiple reusable files can also be saved in the list of reusable files added to the project.
This allows the group of reusable files to be managed as a single unit of data.
Compile
When a program is completed, a full program check is performed and object code is produced.
In addition to allowing the inclusion of multiple programs in a PLC, CX-Programmer also allows all programs
to be compiled at the same time. Individual programs can also be selected and compiled separately. Use the
following procedure to compile programs.
1, 2, 3...
A dialog is displayed showing the compilation status. The results are shown in the Compile tab of the Output
window.
Note:
The checks that are performed during compilation can be set by selecting Program Check Options option from
the PLC menu. The Program Check Options dialog is displayed.
It is possible to choose between three levels of checking ('A' is the most strict, 'C' is the least strict), or to
define a custom set of checks. Select the appropriate Check Level setting.
For the Custom setting, the Checks field is enabled, allowing each individual check to be set or cleared. The
scroll bar reveals further checks. Select the OK pushbutton to complete the operation. Select the Cancel
pushbutton to abort the operation.
Note:
1. Select a rung. Choose the Show as Rung Statement List option from the context menu of
the rung.
The rung is shown in statement list format.
Move the cursor to a line on the list, and press 'Enter'. It is then possible to edit the
instructions. Move up and down with the cursor keys, and amend the text.
There is no restriction on the length of a statement list program apart from that which
Windows may apply.
2. Entries in the statement list block are compiled continuously and the rung may be shown
in error (the error bar on the rung margin).
3. To complete the editing, press 'Escape' which will exit from editing mode.
4. It may be possible to show the rung back in ladder format. Choose the Show as Rung
Ladder option to toggle back to ladder format. It may not be possible to show the
instructions in a ladder form.
Reusable File
Save As (CX-Programmer Ver. 4.0 or later). The file can then be read and
1. Select the PLC object in the project workspace.
2. Select the Compile PLC Programs button from the toolbar. Alternatively, select the
Compile Program button from the toolbar to compile one program.
For a CS/CJ/CP-series PLC, a check is made for duplicates of SBN, MCRO and BPRG
numbers.
When performing program checks for Pre-Ver. 2.0 CPU Units, select None from the Unit Ver.
Pull-down list.
PART 1: CX-Programmer
CHAPTER 4 – Reference
Reusable File
Add to
CX-Programmer _Page 87

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents