4 - 19 4 - 19
4 ST PROGRAM EXPRESSIONS
(c) When function is used in Boolean expression
REPEAT
D1 : = D1 + 1;
(* Until BOOL_TO_DINT(M0)*)
(* than 100
*)
UNTIL BOOL_TO_DINT(M0) < 100 (* becomes less
*)
(* D1 is incremented by 1
*)
END_REPEAT;
Precaution 1 for use of repeat statements
When using a repeat statement, be careful not to result in endless loop
processing.
Precaution 2 for use of repeat statements
If many repeat statements are used, it should be noted that the PLC scan time
will increase remarkably.
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......