Return; Punctuation; Command String Delimiters; Indentation - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Punctuation

4-4-2

Return

4-5
Punctuation
4-5-1

Command String Delimiters

4-5-2

Indentation

30
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.
Typical Example
CALL MySub ($Second, "Default", 2 + Int1)
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.
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.
Typical Examples
IF burner AND fuel > 0 AND rate > 0 THEN
lift = lift + rate/5
SECTION 4 CX-Supervisor Script Language

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents