Hello Guest it is April 20, 2024, 12:47:00 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Gregor77

Pages: 1
1
General Mach Discussion / Pause while rotary axis moves
« on: December 07, 2014, 02:02:39 PM »
Hi all,

with Mach3, version .66.

My rotation axis goes crazy on Pause.
After starting again, it does silly moves.
It seems Mach forgets where it is.

I want to make 10 turns on a length of 100.
I stop at X50.
After restarting it makes again 10 turns until 100 is reached.
If I make it several times the rotation axis turns in the wrong direction.

All other things, even the feed rate compensation, do work.

See example below.

What the heck can cause this?
And what to do about it?

Thanks,
Gregor

%1(Test)
G0 Z50
G0 X0 Y0
G0 Z21
F50
G1 Z19.9
F1000
G1 X100 A3600 (pause here and un-pause)
Z10
G1 X0 A0
G0 Z50
M30


2
General Mach Discussion / Rotaryaxis reference
« on: December 06, 2014, 11:32:21 AM »
Hi all,

to reference Z, X, Y and A I use a macro (see below).

The A is a rotational axis, sothe refrence switch can be active when starting the refrence run.
I check it with "If getoemled(839) Then".
If active, then I would like to rotate the axis by some degrees, and do the refrence run after that.
Simple so far.

But often it doesn't work.
I think I have towait until the move is done with the famous IsMoving function.
See "'*" in the macro.
If the IsMoving is in the macro, Mach3 hangs.

What can be the reason, and how to avoid it?

Greetings,
Gregor




'ref Z first
DoOEMButton(1024)

'ref XY
RefCombination(3)

'check for active switch
If getoemled(839) Then
code("G91 G0 A-14")
'*While IsMoving()
'*Wend

End If

DoOEMButton(1025)

'code("G90 G53 G0 A47")

Pages: 1