开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Mach2 lathe


Steve Blackmore
 

Thanks Art - display is much improved! With my current spindle speeds
theoretically I can do .45mm pitch threads at 2000rpm, which is fine
for me. I haven't tried it in anger because of the following:

I still have the positioning problem,

you wrote previously

The touch off, should be done in your example by entering 30 in the touch
correction and turning it on. then do touch of the bit to the stoch and hit
"touch" on the X, 30 will appear. If you use a guage, enter 30 + guage block
in the corretion and the proper diameter will appear. Turn off correction
and toush the Z to zero it or enter a length if you wish.
Which is very confusing - the diameter stated in my original mail was
10?? Length was 30.

I've tried several ways this morning to get it to understand the
diameter and length but it still wants to go to 0,0 first before going
to tool change position at X20 Z40. This causes the tool to power
into the work!

Using the example Taig collet file I sent you how do I get it to
accept the actual corner of the work is Z31 (the extra 1 is for facing
pass) and at X7.5 (work dia is 15) If you do the offsets you can see
the tool moving to 0,0 before line 30!

Here's the first section to tool change

% 'tcollet
N10 G21
N20 G90 F53.34 S700 M5
N30 G0 X20.0 Z40.0 ' Tool change position
N40 M6 T1 ' CHANGE TO TOOL # 1
N50 G43 H1

It may well be me being stupid, but can someone carefully, step by
step, talk me through this please!

--
Steve Blackmore


Hugh Smith
 

Steve,

I'm not sure but aren't you using the mil tool change syntax (M6 T1) instead of the lathe syntax (M6 T01xx)? That may be causing a transverse to 0,0.

Just a thought.
Hugh Smith

% 'tcollet
N10 G21
N20 G90 F53.34 S700 M5
N30 G0 X20.0 Z40.0 ' Tool change position
N40 M6 T1 ' CHANGE TO TOOL # 1
N50 G43 H1


Art
 

Steve:

Sorry, the touch offs are buggered. Will fix right away.

Art
www.artofcnc.ca


Art
 

Hugh:

Lathe will only understand the M6T1 type of commands , it does not yet take
M6T01xx.

Thanks,
Art
www.artofcnc.ca


Steve Blackmore
 

On Thu, 14 Aug 2003 08:50:58 -0700, you wrote:

I'm not sure but aren't you using the mil tool change syntax (M6 T1) instead of the lathe syntax (M6 T01xx)? That may be causing a transverse to 0,0.
Worked fine up to now (sort of ;)

There doesn't appear to be a standard "lathe syntax"

Fanuc 6TM is
T00<TOOL>00

Fanuc 20TAM & 21ITM is
T<TOOL><OFFSET#>

Okuma OSP5000
<TURRET>T{<COMP-NUM>}<TOOL><OFFSET#>{<TRT-TURN>

etc, etc.

It only does it at the start of a file, not on subsequent tool
changes, Art has pointed out that offsets are screwed, something else
I noticed is that tool offsets are being included on the display
screen so the part looks nothing like it's supposed to.

Tool offsets are now saved for lathe & mill separately though ;)

Hard to tell what else needs sorting until spindle will run from
Gcode.

--
Steve Blackmore


Art
 

Steve:

I am looking into the spindle now, but I was wrong about the offsets. Or at
least mine seems to work.

Try this in this sequence.

Put in a piece of stock. Jog to the edge, If the stock is 30mms thick, type
30 into the Touch Correction box and turn it on. The LED shoudl flash. Now
press Touch X on the Fixture offsets at the bottom. Does the display on X
now read 30?
Now jog to the face of the stock with the Z (and X if you have to). Type
in the length of the stock (say 124), and enter 124 in the touch correction,
now press TouchZ on the fixtures offset down below. Does the Z readout now
say 124?
If so you are now zeroed to the stock. This is the method to zero all
this. Let me know if this example does something different to you.

Now, as to some of the strange stuff happening to you....

N30 G0 X20.0 Z40.0 ' Tool change position
N40 M6 T1 ' CHANGE TO TOOL # 1
N50 G43 H1

Line such as N30 and N40 are screwing you up badly. Having a ' in the line
causes the interpreter to ignore the entire line. the ' character is illegal
or can be translated to "This line is a comment", so your M6T1 is being
ignored as is your G0X20Z40 line. This will cause the G43H1 to react very
badly because it will think you are (and you would be) at 0,0, not 20,40

See if the touching off works after you remove the ' characters.

Thanks, I'll let you know about spindle. Strange thing is, if the LED is
flashing, then it MUST be on. Or so I thought. Check your pin settings on
this while I check the code.

Thanks,
Art
www.artofcnc.ca

----- Original Message -----
From: "Steve Blackmore" <steve@...>
To: <mach1mach2cnc@...>
Sent: Thursday, August 14, 2003 2:40 PM
Subject: Re: [mach1mach2cnc] Mach2 lathe


On Thu, 14 Aug 2003 08:50:58 -0700, you wrote:

I'm not sure but aren't you using the mil tool change syntax (M6 T1)
instead of the lathe syntax (M6 T01xx)? That may be causing a transverse to
0,0.

Worked fine up to now (sort of ;)

There doesn't appear to be a standard "lathe syntax"

Fanuc 6TM is
T00<TOOL>00

Fanuc 20TAM & 21ITM is
T<TOOL><OFFSET#>

Okuma OSP5000
<TURRET>T{<COMP-NUM>}<TOOL><OFFSET#>{<TRT-TURN>

etc, etc.

It only does it at the start of a file, not on subsequent tool
changes, Art has pointed out that offsets are screwed, something else
I noticed is that tool offsets are being included on the display
screen so the part looks nothing like it's supposed to.

Tool offsets are now saved for lathe & mill separately though ;)

Hard to tell what else needs sorting until spindle will run from
Gcode.

--
Steve Blackmore



To unsubscribe from this group, send an email to:
mach1mach2cnc-unsubscribe@...



Your use of Yahoo! Groups is subject to


Art
 

Steve:

Better check thos pins, and make sure you don't have "not used" checked in
the output devices config. Min emeasures properly at the pin. So its either
the pin config or the output devices turned off that could cause that.

I get the feeling some strange shit is going on again. My zero's OK and
the spindle runs ok. I know the driver is proiper or it wouldn't run for
you...
Art
www.artofcnc.ca


Steve Blackmore
 

On Thu, 14 Aug 2003 15:06:20 -0300, you wrote:


Better check thos pins, and make sure you don't have "not used" checked in
the output devices config. Min emeasures properly at the pin. So its either
the pin config or the output devices turned off that could cause that.
In that case it wouldn't work as manual entries in MDI??

Works typed as MDI but not loaded as gcode.

I get the feeling some strange shit is going on again. My zero's OK and
the spindle runs ok. I know the driver is proiper or it wouldn't run for
you...
Strange for sure :(

--
Steve Blackmore


Art
 

Steve:

The strange thing there is that the LED flashing is sensed directly from
the pin. The LED flashes if it is flagged as active. It isn't a setting. SO
at least we know the program has flagged it as active, the question now is
what happened to the output. Is this still happening to you every time?

If so, please send me the entire file if possible, just in case seomthing
further on is setting some weird state. (That is possible.)

Thanks,
Art
www.artofcnc.ca


Steve Blackmore
 

On Thu, 14 Aug 2003 17:07:49 -0300, you wrote:

Steve:

The strange thing there is that the LED flashing is sensed directly from
the pin. The LED flashes if it is flagged as active. It isn't a setting. SO
at least we know the program has flagged it as active, the question now is
what happened to the output. Is this still happening to you every time?

If so, please send me the entire file if possible, just in case seomthing
further on is setting some weird state. (That is possible.)
Here is the file

G0 X10 Z10 M4 M8
G0 X0 Z0 M5 M9


--
Steve Blackmore


Art
 

Steve:

I ran it several times with the scope on the output pins. No Problem. Is it
a static problem on yours or intermittant?

Art
www.artofcnc.ca


Steve Blackmore
 

On Thu, 14 Aug 2003 17:57:14 -0300, you wrote:

I ran it several times with the scope on the output pins. No Problem. Is it
a static problem on yours or intermittant?
It's a static problem and I now know what is happening - loading GCode
is somehow inverting the state of the pin. I've just had the meter on
the output of the spindle relay. It works fine in MDI mode, and worked
fine in V7 in MDI and code. In V10 as soon as I load code relay comes
on, but nothing is being sent from step/dir pin so motor doesn't move.
an M4 in code then sends requisite voltage to VFD but switches relay
off!

I'm also getting the same error twice on loading code

Error 0x8000fff
(IActiveScriptParse::InitNew (()

Touch correction now seems ok, display is still screwy if there are
tool offsets, toolpath display is also set off by amount of work
offset, this could mean that with large offsets for boring bars etc,
the display would be off screen.

--
Steve Blackmore


Art
 

Interesting..I'll do some tests.

Art
www.artofcnc.ca


Art
 

Steve:

Better send me that file that reverses it. Must be a variable overwrite or
something. Can't repeat it here.

Could it be those ' characters?

Art
www.artofcnc.ca


Steve Blackmore
 

On Thu, 14 Aug 2003 19:55:16 -0300, you wrote:


Better send me that file that reverses it. Must be a variable overwrite or
something. Can't repeat it here.

Could it be those ' characters?
No removed them, although they were ignored by all previous versions?

Any file does it, the tcollet one you have and just the two lines of
simple code I posted earlier e.g.

N10 G0 X10 Z30 S500 M4 M8
N20 G0 X0 Z0 M5 M9

I enter the lines as MDI (without the line number) - it works, copy
into a text file and load as gcode immediately file loads, pin
reverses. You can only tell with meter/scope, on reversal led's on
diag screen don't light but pin goes high!

What is that error I keep getting on file load?
This happens on my "test pc" too!

--
Steve Blackmore


Art
 

Steve:

The error is from the macro threader. Part of the new code. It is saying
that for some reason your macro facility is not initializing in that file.
Perhaps its being called from within a macro or something. Doe shti sonly
happen on some files.

I have run your file several times and cannot repeat this reversal. Let
me understand this, you start the program and the spindle pin is high (low
active but spindle is off). Then you type M3 and the spindle pin goes low.
type M4 and the spindle goes high again. But when you load the program, the
pin changes to low, but the diags page shows no flashing?

Is this accurate...??

Thanks,
Art
www.artofcnc.ca

----- Original Message -----
From: "Steve Blackmore" <steve@...>
To: <mach1mach2cnc@...>
Sent: Thursday, August 14, 2003 9:05 PM
Subject: Re: [mach1mach2cnc] Mach2 lathe


On Thu, 14 Aug 2003 19:55:16 -0300, you wrote:


Better send me that file that reverses it. Must be a variable overwrite
or
something. Can't repeat it here.

Could it be those ' characters?
No removed them, although they were ignored by all previous versions?

Any file does it, the tcollet one you have and just the two lines of
simple code I posted earlier e.g.

N10 G0 X10 Z30 S500 M4 M8
N20 G0 X0 Z0 M5 M9

I enter the lines as MDI (without the line number) - it works, copy
into a text file and load as gcode immediately file loads, pin
reverses. You can only tell with meter/scope, on reversal led's on
diag screen don't light but pin goes high!

What is that error I keep getting on file load?
This happens on my "test pc" too!

--
Steve Blackmore



To unsubscribe from this group, send an email to:
mach1mach2cnc-unsubscribe@...



Your use of Yahoo! Groups is subject to


Steve Blackmore
 

On Thu, 14 Aug 2003 22:56:13 -0300, you wrote:

The error is from the macro threader. Part of the new code. It is saying
that for some reason your macro facility is not initializing in that file.
Perhaps its being called from within a macro or something. Doe shti sonly
happen on some files.
Nope - Any file as long as it's the first file of a session. Just
tried loading several files, after it has happened, it doesn't do it
again until after a restart of Mach2.

I have run your file several times and cannot repeat this reversal. Let
me understand this, you start the program and the spindle pin is high (low
active but spindle is off). Then you type M3 and the spindle pin goes low.
type M4 and the spindle goes high again. But when you load the program, the
pin changes to low, but the diags page shows no flashing?

Is this accurate...??
Yes,but reversed and it's M4 for counterclockwise and M5 for off.

Start program, pin 6 extern1 is low (high active)
Type M4 pin 6 goes high, spindle runs if speed set (pin 9 step out),
extern1 led flashes as does spindle on led

Type M5 pin 6 goes low, spindle stops, extern 1 led & spindle led off

Load Gcode file, pin 6 goes high, no led's light
(spindle doesn't turn initially as no steps being sent from step pin 9
until program runs)

Run GCode on M4 pin 6 now goes low and led's flash.
(spindle doesn't turn, although steps being sent on pin 9 it also
needs pin 6 high).

--
Steve Blackmore