
PROGRAMMING
13. CUSTOM MACRO
B–63174EN/02
PROGRAMMING
(Common to Power Mate i–D and –H)
108
Table 13.2(f) System variable (#3004) for automatic operation control
#3004 Feed hold Feedrate Override Exact stop
0 Enabled Enabled Enabled
1 Disabled Enabled Enabled
2 Enabled Disabled Enabled
3 Disabled Disabled Enabled
4 Enabled Enabled Disabled
5 Disabled Enabled Disabled
6 Enabled Disabled Disabled
7 Disabled Disabled Disabled
D When the power is turned on, the value of this variable is 0.
D When feed hold is disabled:
(1) When the feed hold button is held down, the machine stops in the
single block stop mode. However, single block stop operation is
not performed when the single block mode is disabled with
variable #3003.
(2) When the feed hold button is pressed then released, the feed hold
lamp comes on, but the machine does not stop; program
execution continues and the machine stops at the first block
where feed hold is enabled.
D When feedrate override is disabled, an override of 100% is always
applied regardless of the setting of the feedrate override switch on the
machine operator’s panel.
D When exact stop check is disabled, no exact stop check (position
check) is made even in blocks including those which do not perform
feed at programmed rate.
O0001 ;
N1 G00 G91 X#24 ;
N2 Z#18 ;
G04 ;
N3 #3003=3 ;
N4 #3004=7 ;
N5 G01 Z#26 F#9 ;
N6 M04 ;
N7 G01 Z–[ROUND[#18]+ROUND
[#26]] ;
G04 ;
N8 #3004=0 ;
N9 #3003=0 ;
N10M03 ;
M99 ;
N1
N2
N3, N4
N6
N7
N8, N9,
N10
N5
Fig.13.2 Example of using variable #3004 in a tapping cycle