EasyManuals Logo

Omron CX-Supervisor Reference Manual

Omron CX-Supervisor
164 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #31 background imageLoading...
Page #31 background image
Punctuation SECTION 4 CX-Supervisor Script Language
30
Typical Example
CALL MySub ($Second, "Default", 2 + Int1)
4-4-2 Return
Syntax
RETURN
Typical Example
IF limit > 1000 THEN
RETURN
ELSE
value = limit
ENDIF
REM final part of script
POLYGON_1.COLOUR = red
ELLIPSE_5.WIDTH = value
The integer point 'limit' is tested for its value. If its value exceeds 1000, then
the condition is met, and the RETURN command is executed. All statements
after the RETURN command are ignored. If the value of integer point 'limit'
does not exceed 1000, then the RETURN command is not executed, and
statements after the RETURN command are performed.
References
Refer to the CX-Supervisor User Manual for the use of the RETURN
statement for Recipe validation.
4-5 Punctuation
4-5-1 Command String Delimiters
Description
Alternative string delimiters allowing string to contain quote " characters.
Syntax
{Some "string" text}
Typical Example
Message({Error: "Invalid Function" occurred})
The '{' and '}' braces inserted around the whole strings allows the actual text in
the string to contain quotes which will be displayed normally. They can be
used in any situation where quotes can be used whether or not embedded
quotes are required. However, for clarity the quote characters should be used
by preference.
4-5-2 Indentation
Typical Examples
IF burner AND fuel > 0 AND rate > 0 THEN
lift = lift + rate/5
Argument Description
subroutine The name of the subroutine defined at project level.
arguments The list of arguments required by the subroutine
separated by commas. Each argument may be a
pointname, constant, arithmetical or logical expression or
any valid combination.

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals