G
guest
Guest
I'm trying to troubleshoot a random tool change problem on my SV-2412.
I am comparing my tool change macro to others from the same machine.
Here is the code:
:9001
#3003=1
#3004=1
IF[#100EQ#4120]GOTO99
IF[#4120EQ0]GOTO99
IF[#1011EQ1]GOTO99
G91G28Z0.
G91G30Z0M19
M9
M6
<snip a bunch of semi-colons>
G04X0.1
IF[#1008EQ1]GOTO10
GOTO99
N10G91G28Z0
IF[#1009EQ1]GOTO12
GOTO10
N12G91G30Z0
G04X0.5
IF[#1010EQ1]GOTO99
GOTO12
N99#100=#4120
#3003=0
#3004=0
M99
%
Question is, what does the N99 line do? What do those registers #100 and #4120 represent?
On my machine, that line isn't there, it has this instead:
N99 #3003=0
I looked at old backups, they are the same. AFAIK, it has always been like this, but I think it might have been edited a long time ago.
The problem is the intermittent hang on the M6 after the M9. This is not unknown on these machines, but I have never seen a definitive solution to the issue.
I am comparing my tool change macro to others from the same machine.
Here is the code:
:9001
#3003=1
#3004=1
IF[#100EQ#4120]GOTO99
IF[#4120EQ0]GOTO99
IF[#1011EQ1]GOTO99
G91G28Z0.
G91G30Z0M19
M9
M6
<snip a bunch of semi-colons>
G04X0.1
IF[#1008EQ1]GOTO10
GOTO99
N10G91G28Z0
IF[#1009EQ1]GOTO12
GOTO10
N12G91G30Z0
G04X0.5
IF[#1010EQ1]GOTO99
GOTO12
N99#100=#4120
#3003=0
#3004=0
M99
%
Question is, what does the N99 line do? What do those registers #100 and #4120 represent?
On my machine, that line isn't there, it has this instead:
N99 #3003=0
I looked at old backups, they are the same. AFAIK, it has always been like this, but I think it might have been edited a long time ago.
The problem is the intermittent hang on the M6 after the M9. This is not unknown on these machines, but I have never seen a definitive solution to the issue.