Download USER`S GUIDE

Transcript
User's Guide
A.9 More about program editors
This chapter contains useful information about editing features, which are common
to all the ISaGRAF program editors. This mainly concerns links with other ISaGRAF
tools and common ISaGRAF dialog boxes.
A.9.1 Calling other ISaGRAF tools
Verify (compile) the program
The "File / Verify" command runs the ISaGRAF code generator to verify
the programming syntax of the currently edited program. In case of SFC language,
both level 1 and 2 are checked. When syntax verification is complete, the code
generator window must be closed to continue work on the program. If there is only
one program in the application (the edited one) the application code is generated if
no syntax error is detected. The "Options / Compiling options" command is used
to set compiling and optimising parameters. Refer to chapter "Using the code
generator" in this document for further information about compiling and code
generation.
Simulate or debug the application
The "File / Simulate" and "File / Debug" commands run the ISaGRAF
graphic debugger either in simulation or real connected mode, and re-opens the
edited SFC program in debug mode. Used in debug mode, no modification can be
entered in the program.
Editing the dictionary of variables
The "File / Dictionary" command is used to edit the dictionary of
variables for the current application and the current program. It also contains the
entry points to edit the user-defined words. The local declarations or defined words
relate to the currently edited program.
A.9.2 Parameters of the program
When the edited program is a function, a function block or a sub-program,
the "File / Parameters" command is used to define its calling and return
parameters. This command has no effect if the edited program is a SFC or top level
program from section Begin or End.
Sub-programs, functions or function blocks may have up to 32 parameters
(input or output). A function or sub-program always has one (and only one) return
parameter, which must have the same name as the function, in order to conform to
ST language writing conventions. The following dialog box is used to describe the
parameters of the sub program:
ICS Triplex ISaGRAF Inc.
A-75