CHAPTER 4 – CX-Supervisor Script Language
OMRON
Page 22
Revision 2.0
or
DO UNTIL expression
statementblock
LOOP
or
DO
statementblock
LOOP UNTIL expression
Remarks
Argument Description
expression
The
expression
may be a point, or a calculation of constants and/or points that
produces a result.
statementblock
One or more statements to be executed multiple times depending on
expression.
Typical Example
DO WHILE dooropen == TRUE
Message (“You must shut the door before continuing”)
LOOP
DO
nextchar = Mid (Mystring, position, 1)
position = po 1
LOOP UNTIL nextchar = “A”
Note:
Loop statements should be used with caution, as they consume processor time while
they are running and some other parts of the system may not be updated.
Subroutines
Call
Syntax
CALL subroutine (arguments)
Содержание 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...