Compiling and Running a Project SECTION 6 Projects
101
components such as the PLC Data Trace and PLC Memory Card components.
Refer to the CX-Server Reference Manual for further information on CX-
Server components.
On completion, click the OK button to accept changes or the Cancel button to
abort.
6-11-4 Exit Level
An additional security measure can be applied by selecting Exit Level from the
Runtime Security menu. The Exit Level dialog box opens:
The dialog box allows a specific privilege to be applied to exiting the runtime
application. Select a user privilege from the drop down list and click the OK
button to confirm the setting or the Cancel button to abort.
6-12 Compiling and Running a Project
When a project is running it cannot be edited. CX-Supervisor runs projects
under the CX-Supervisor runtime environment.
6-12-1 Building a Project
To create the CX-Supervisor runtime project click the button. This compiles
the projects and pages into a CX-Supervisor runtime file (.sr2).
6-12-1-1 Rebuild All
The Rebuild All option on the Project menu causes the entire application to be
re-compiled. Together with the Analyse Application feature, this can be used to
validate your project.
CX-Supervisor checks application integrity whenever the application is
compiled or run and warns that a full rebuild may be necessary. When the
'Rebuild All' operation is carried out all errors and warnings will be reported in
the output window and double clicking on a specific error will usually take you
directly to the source of that error. During a full rebuild, all pages that are
successfully recompiled will optionally be saved automatically. All pages that
fail to recompile are not saved. This means that it will still be possible to build
and run the application after a 'Rebuild All' has been carried out if it was
possible to build it and run it before the 'Rebuild All' operation.
Note: the 'rebuild all recommended' warning message can be disabled via the
Editing Preferences dialog box.
Due to a change of syntax in a previous release of CX-Supervisor the 'Display'
and 'Close' script functions (CX-Supervisor Script) will NOT compile if they use
the old syntax (e.g. Display "Page"). They must be changed to the new syntax
(e.g. Display("Page")). If an application with these issues is not recompiled
then it will continue to run correctly in the Runtime.
6-12-2 Running a Project
To run the current project, click the button. This will automatically build the
project if required.