
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
28/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
However, if <conditional-expression-1> specifies an axis control command, be sure to
use ZDO...ZEND even when a single statement is used.
If the workpiece coordinate on the first axis is greater than 30 and #RV[0]
matches #RV[3], a movement on the A-axis starts.
//1 ZONCE [[#100101 GT 30.] AND [#RV[0] EQ #RV[3]]] ZDO ;
G91 G00 A20. ;
ZEND ;
Similarly, use ZDO...ZEND for a multi-statement including an axis control command.
If the workpiece coordinate on the second axis is equal to or less than 10, a
movement on the V-axis starts and the Y1.0 signal is set to 1.
//1 ZONCE [#100102 LE 10.] ZDO ;
G91 G00 V10. ;
#IOY[1,0] = 1 ;
ZEND ;