![Mitsubishi Electric Q172CPU Скачать руководство пользователя страница 395](http://html.mh-extra.com/html/mitsubishi-electric/q172cpu/q172cpu_programming-manual_1811836395.webp)
7 - 134
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.3 Program control function (WHILE, DO, END statements)
Code WHILE,
DO,
END
Function
Program control function
The flow of execution program is controlled based on the condition.
Format
WHILE identification number
(1 to 32)
W
[ conditional expression]
HI LE
O
D m ;
ENDm ;
[Explanation]
(1) While the [conditional expression] holds, blocks between the next block and
ENDm block are executed repeatedly, and when it does not hold, execution shifts
to the block next to ENDm.
(2) WHILE [conditional expression] DOm and ENDm are used in pairs.
The range of identification No. m is 1 to 32.
(3) The multiprogramming depth of the WHILE statement is up to three levels.
[Example] (1) The identification No. m can be used any number of times as
desired.
WHILE [ ] D01 ;
END1 ;
WHILE [ ] D05 ;
END5 ;
WHILE [ ] D01 ;
END1 ;
:
:
:
:
:
(2) The multiprogramming depth is up to three levels.
WHILE [ ] D01 ;
WHILE [ ] D02 ;
WHILE [ ] D03 ;
END3 ;
END2 ;
END1 ;
(Third level) (Second level) (First level)
:
:
:
:
:
Содержание Q172CPU
Страница 1: ...Q173CPU N Q172CPU N Motion Controller SV43 Programming Manual Q172CPU Q173CPU Q172CPUN Q173CPUN ...
Страница 229: ...5 88 5 POSITIONING DEDICATED SIGNALS MEMO ...
Страница 447: ...7 186 7 MOTION PROGRAMS FOR POSITIONING CONTROL MEMO ...
Страница 535: ...8 88 8 AUXILIARY AND APPLIED FUNCTIONS MEMO ...
Страница 557: ...11 10 11 COMMUNICATIONS VIA NETWORK MEMO ...
Страница 559: ...12 2 12 MONITOR FUNCTION OF THE MAIN CYCLE MEMO ...