Punctuation - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
Remarks
Argument
subroutine
arguments
Typical Example
CALL MySub ($Second, "Default", 2 + Int1)
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.

Punctuation

Command String Delimiters
Description
Alternative string delimiters allowing string to contain quote
Revision 2.0
CHAPTER 4 – CX-Supervisor Script Language
The name of the subroutine defined at project level.
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.
Description
characters.
"
Page 23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents