Hello Guest it is April 19, 2024, 05:39:41 AM

Author Topic: Thinking of a new wrapper function for MAch3.  (Read 28756 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #10 on: December 16, 2012, 02:04:34 PM »
The only trick part is you have to know the steps/per for 1 rev of your 4th axis drive.  HUM I thik I just figure an AUTO way to set that part up(;-).

I'll Be back(;-).

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #11 on: December 16, 2012, 04:16:38 PM »
OK this should solve the Steps/per part we will let the wizard worry about that now.

New version also takes out some check points messages I forgot about.

(;-) TP

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #12 on: December 17, 2012, 02:06:50 AM »
Hi Terry,

Looks good to me - I will try it out later today and report back.  ;)

Just one point - the wiz transfers the Port and Pin assignments correctly but not the Low Active state.  :'(

Tweakie.
PEACE

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #13 on: December 17, 2012, 03:26:06 AM »
Tweakie I may have loaded an earlier version that setup the A axis instead of the Y axis for parameters. I need to double check the downloaded version.

As for the low active state that MIGHT not be switchable I'll double check that as well.

I have been helping my Granddaughter make/sew Denum purses made from old jeans for christmas presents.

(;-) TP

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #14 on: December 17, 2012, 04:11:33 AM »
Hi Terry,

It didn’t quite get the steps per unit right (should be a rectangle) but I could easily adjust that.

As you suspected - the main snag appears to be with the rapids (G0) as the Y axis Vel. & Acc. are applied to the rotary (A) axis and the A axis Vel. & Acc. are applied to the Y axis. No problem if the rotary will run as fast as the Y axis but unfortunately mine is a bit slower. Again that is easily adjusted but it would be nice if the Wiz. did it automatically.

Great work my friend.

Tweakie.
« Last Edit: December 17, 2012, 04:14:09 AM by Tweakie.CNC »
PEACE

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #15 on: December 17, 2012, 05:09:06 AM »
Tweakie try this one it should be correct.  I had the axis parameters swap WRONG I was swapping A when it should  swap Y  You can tweek the Rotary axis settings in the button code OR i can bring those settings out to the screen and the wizard can apply them.

Thanks for testing,(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #16 on: December 17, 2012, 05:21:03 AM »
The parameter swap takes teh original A axis steps per and removes the Deg per math back down to steps per REV then applies the Circumference back to it and then you have Steps per UNIT for that diameter of the stock.

The version you tested had that wrong so the latest version shoulod get teh steps per correct based on teh original settings of your machine.

NOW the Velocity and Acceleration I just pluged in some numbers in the button code. I can bring that out to screen so you can set it for your application.

Let me know if there is anything you want or need for it.  OR have at it yourself (;-) The code is all there, NOT commented yet (;-) but there.

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #17 on: December 17, 2012, 05:45:39 AM »
OK I moved the rotary axis Velocity and Acceleration settings OUT to screen so you can mod them as needed.

The steps per are auto calculated now and should be correct for proper size based on part diameter.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #18 on: December 17, 2012, 05:57:48 AM »
We also have this available from a MCODE

M107 P## Q## R##       (  P sets Part Diameter and Q sets teh Rotary Vel and R sets the Rotary Vel) OR we can set teh variables Q R with a #parameter call to update. 

 #570=100 (Vel)
#571=50 (Accel)

Then all you have for the Mcode would be

M107 P##     where the P is the part diameter

M108 would reset to standard.

(;-) TP

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: Thinking of a new wrapper function for MAch3.
« Reply #19 on: December 17, 2012, 07:45:44 AM »
Hi Terry,

I changed the rotary Vel. & Acc. within the button to get my feed-rates equal on X & A(Y) and it's perfect.

My congratulations.  8)

(I'm on holiday now until the new year so will have plenty of time to play and do some more testing with this excellent idea of yours).

Tweakie.
PEACE