PROGRAMMING
B–64124EN/01
15. CUSTOM MACRO
311
Table 15.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
S When the power is turned on, the value of this variable is 0.
S 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.
S 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.
S When exact stop check is disabled, no exact stop check (position
check) is made even in blocks including those which do not perform
cutting.
O0001 ;
N1 G00 G91 X#24 Y#25 ;
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 ;
Fig. 15.2 Example of using variable #3004 in a tapping cycle
N1
N2
N3, N4
N6
N7
N8, N9,
N10
N5