Hello Guest it is April 19, 2024, 06:31:36 PM

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.


Messages - stirling

911
Brains Development / Re: Hole Counter
« on: June 02, 2012, 04:37:49 AM »
just as an alternative view, the reason you used a gcode var in the first place was...

You really don need a macro pump or brains to do that. Just some simple Gcode.
which of course was quite right, but now that you want to display it in a DRO you HAVE to use some macro coding so there's no point in using the gcode var anymore as the DRO will act as the var/counter.

Plus it seems a tad round the houses setting a gcode var to some value and then monitoring it in the macropump to see what it was you just set it to so you can copy it to another place.  ;)

So like T says you'd drop a DRO onscreen and then in your gcode in place of your #500 = [#500+1]  you'd have (say) M666 (other numbers are available), where its code would be:

SetOEMDRO(2000, getOEMDRO(2000) + 1)

Plus of course you can now set/reset the val anytime to anything by typing in the DRO itself.

Ian


912
General Mach Discussion / Re: Strange slave axis problem
« on: June 01, 2012, 04:11:42 AM »
I remapped the pins and the problem follows the pins (8 & 9)
Wouldn't that suggest it's the PP? Those pesky little output trannies probably got burned when the old A drive let the magic smoke out.

Ian

913
General Mach Discussion / Re: Mach 3 acceleration coding change
« on: June 01, 2012, 03:46:31 AM »
This works for plasma torch vel% too. However I didn't bother replying because the other way that you came accross in http://www.machsupport.com/forum/index.php/topic,3479.msg150754.html#msg150754 seemed an easier and better way to do it.

i.e. just do a SetParam "AccelerationX", 2.2 in the vb editor and job done - it'll wack it into the xml for you.

Ian

914
General Mach Discussion / Re: Direction pulse
« on: June 01, 2012, 03:24:54 AM »
So Right!
(Otherwise you sort out the +5 PS!)
LOL - so easy to make typos isn't it (actually you'd short out the PS) but thanks for pointing it out.

Ian

915
General Mach Discussion / Re: z axis moving up
« on: May 31, 2012, 08:04:25 AM »
Consider that when microstepping you reduce the motor torque probably in half
Have you got a citation for this RICH?

I've read this: http://www.micromo.com/microstepping-myths-and-realities.aspx but on the other hand I've read this: http://www.cnczone.com/forums/127081-post7.html

Personally I like Mariss's but then he's not always right - or is he? (I got burned over his advice re: caps on switching supplies...)

Ian

916
VB and the development of wizards / Re: DENFORD TU150
« on: May 31, 2012, 07:26:11 AM »
Yep - I'm a regular blue meanie arn't I - but hey you get what you pay for... All I was trying to do was avoid the usual 20+ questions before we get to the actual issue.

That said, I've taken a look at your code and you don't need to say any more. I'm afraid it's just a complete non-sensical mess and IMHO not worth spending any time on (yours or mine).

My advice FWIW would be start afresh by writing a SHORT piece of code for each thing you need to happen. So for example write a piece of code that just rotates the carousel. Then when you're happy write the code to rotate it to a particular slot. Then write the code to (say) open/close the solenoid etc. etc. ALL as separate macros so you can go back to them if needs be. Then you'll have all the aspects of your toolchanger under your hat. Then put them together ONE AT A TIME checking each new step behaves as you want. Then you'll not only have your toolchanger but YOU'LL undertand it. Follow someone elses code ONLY for simple techniques (if you need to) like how to close/open a solenoid and even then check a few peoples code to convince yourself you're not following someone else's rubbish.

PLEASE DO NOT FOLLOW any of the code you've posted - there's just about NOTHING in there as it stands that is either correct OR good technique.

Come back whenever you need help - I'll try to be Mr. Nice if you try to not make me guess what your problem is if that's fair enough.

Ian

917
VB and the development of wizards / Re: DENFORD TU150
« on: May 30, 2012, 02:00:43 PM »
The ONLY thing approaching a question so far in TWO posts is "please help".

WTF is the problem? Oh wait a minute... your "stuck on the dam turret". Oh well that's clear then isn't it?

Post your VB and tell us what's working and what isn't.


918
Hi Fred

Have you tried it?

Yes this will be fine. FWIW you're NOT calling a sub with different parameters here. You're calling a sub where a gcode var which is global has been altered between calls - not the same thing.

If you do a M98 P2 L3 and a M98 P2 L4 - that would be calling o2 with a different L parameter and that's fine also.

Cheers

Ian

919
Hi Tweakie - forgot about this but FWIW

if my sums are correct (d=v^2/2a) then it should take 0.0555... mm to decel to stop after trip. Scoping Mach confirms (here at least) that it does exactly this (well 0.0543500044871). Don't know if that's any use to you (or anyone else really).

Ian

920
General Mach Discussion / Re: We all make mistakes.
« on: May 30, 2012, 10:30:58 AM »
See this is what happens if you send a boy to do a man's job  ;D ;D ;D

Ian