
LNC-M8000
Expression
190 寶元數控精密股份有限公司
LNC Technology Co., Ltd.
7.4 FOR
A. Not use INC variables
Method:
FOR variables=loop’s initial value or calculating formula TO loop ending value or calculating formula
Data Process;
END_FOR
Description:FOR loop.
Example:
G0 X0.
FOR #1=11 TO 23
G0 X#1;
END_FOR
M0; /* X axis final movement position 23mm,#1 final is 24 */
M30
B. Use INC variables
Method:
FOR variables= loop’s initial value or calculating formula TO loop ending value or calculating formula
STEP loop acccumulated value or calculating formula
Data Process;
END_FOR
Description:FOR loop.
Example:
G0 X0.
FOR #1=11 TO 23 STEP 2
G0 X#1;
END_FOR
M0; /* X axis final movement position 23mm,#1 final is 25 */
M30
Komentarze do niniejszej Instrukcji