91
96-8000 rev R June 2007
Macros
#3002 Hour Timer - The hour timer is similar to the millisecond timer except that the number returned after access-
ing #3002 is in hours. The hour and millisecond timers are independent of each other and can be set separately.
System Overrides
#3003 Variable 3003 is the Single Block Suppression parameter. It overrides the Single Block function in G-code. In
the following example Single Block is ignored when #3003 is set equal to 1. After M3003 is set =1, each G-code
command (lines 2-4) are executed continuously even though the Single Block function is ON. When #3003 is set
equal to zero, Single Block will operate as normal. That is, the user must press Cycle Start start each line of code
(lines 6-8).
#3003=1;
G54 G00 G90 X0 Y0;
G81 R0.2 Z-0.1 F20 L0;
S2000 M03;
#3003=0;
T02 M06;
G83 R0.2 Z-1 F10. L0;
X0. Y0.;
Variable #3004
Variable #3004 is a variable that overrides specific control features while running.
The first bit disables the Feed Hold button. If feed hold is not to be used during a section of code, then put variable
#3004, assigned to 1, before the specific lines of code. After that section of code set #3004 to 0 to restore the
function of the Feed Hold button. For example:
Approach code (Feed Hold allowed)
#3004=1; (Disables Feed Hold button)
Non-stoppable code (Feed Hold not allowed)
#3004=0; (Enables Feed Hold button)
Depart code (Feed Hold allowed)
The following is a map of variable #3004 bits and the associated overrides. E – Enabled D – Disabled
#3004 Feed Hold Feed Rate Override Exact Stop Check
0 E E E
1 D E E
2 E D E
3 D D E
4 E E D
5 D E D
6 E D D
7 D D D
#3006 Programmable Stop
Stops can be programmed which acts like an M00 - The control stops and waits until Cycle Start is pressed. Once
Cycle Start is pressed, the program continues with the block after the #3006. In the following example, the first 15
characters of the comment are displayed on the lower left part of the screen.
IF [#1 EQ #0] THEN #3006=101 (comment here);
#4001-#4021 Last Block (Modal) Group Codes
The grouping of G codes permits more efficient processing. G codes with similar functions are usually under the
same group. For example, G90 and G91 are under group 3. These variables store the last or default G code for any
of 21 groups. By reading the group code, a macro program can change the behavior of the G-code. If 4003 contains
91, then a macro program could determine that all moves should be incremental rather than absolute. There is no
associated variable for group zero; group zero G codes are Non-modal.