OMRON
CHAPTER 4 – CX-Supervisor Script Language
Revision 2.0
Page 23
Remarks
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)
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
"
characters.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...