Hello Guest it is May 07, 2024, 10:02:46 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.


Messages - stirling

281
General Mach Discussion / Re: Mach3 issues on Windows Xp! Please help!
« on: April 22, 2015, 01:30:39 PM »
So you've switched to a licensed copy of windoze yet? C'mon dude you can't be running hooky software and then complain it doesn't work. You get what you pay for right?

282
General Mach Discussion / Re: need some help
« on: April 22, 2015, 01:24:17 PM »
Also assuming your Z moves are back and forth, some drives will loose the first step after a change of direction - can't remember why - Terry will know.

283
General Mach Discussion / Re: Tool changer motor overheating
« on: April 22, 2015, 01:19:04 PM »
Yeah Terry, I reckon the motor is still being powered but the weird thing is that if he turns INPUT1 off manually, the motor stops over heating until the next tool change. So turning INPUT1 off appears to cut the current to the motor.

That would imply that INPUT1 is there to turn the motor off but it's NOT turning off in the macro.

However, as I've said, if that were the case, then the macro would hang - but it appears that it isn't.

Doesn't add up.

284
General Mach Discussion / Re: Wacky towards the end of G code
« on: April 22, 2015, 01:12:24 PM »
Just to be clear, I know M30 is the last line of your code but I asked if it's visible as the last line in the code window.

285
General Mach Discussion / Re: Wacky towards the end of G code
« on: April 22, 2015, 11:38:43 AM »
Just a shot in the dark but if you scroll right to the bottom of your code in the code window, do you see the M30?

286
General Mach Discussion / Re: Tool changer motor overheating
« on: April 22, 2015, 08:15:28 AM »
It's curious because from what you've said my first thought would be that the input is not being triggered. However that can't be true because that would hang the macro and so your toolchange would never complete or at least Mach would not continue after the toolchange.

Without knowing exactly how the toolchanger works and exactly what outputs 2 and 5 do it's hard to offer advice.

You may be onto something with the delays. One thing I'd do though is get rid of those ridiculous G4 dwells. Use sleep instead.

E.g. replace the likes of

code "G4 P0.1"
While IsMoving()
Wend

with

sleep 100

(actually there's a thought - you don't have "G4 Dwells in ms" ticked in general config do you?)

When I said the macro was bad, here's some things you may want to change.

1) Check the requested tool number is valid and error handle if not
2) Apply a timeout with error handling to the wait for INPUT1
3) Use the symbolic constant INPUT1 instead of the "magic number" 18
3) Get rid of those G4 dwells and use sleep as I've described

Anyway - just some thoughts.

287
General Mach Discussion / Re: Tool changer motor overheating
« on: April 22, 2015, 06:29:50 AM »
Hi Mark

Apart from your motor overheating, does the toolchange actually work as intended?


288
General Mach Discussion / Re: Tool changer motor overheating
« on: April 21, 2015, 09:48:51 AM »
Where did you get that macro? it's bloody awful...

That said to even attempt to find the problem can you explain how your toolchanger is supposed to work and exactly what functions outputs 2, 3, 4 and 5 and input 1 are supposed to do.

289
General Mach Discussion / Re: mach ignoring macropump code
« on: April 21, 2015, 09:14:09 AM »
Good you got it working. However please in future think about the XY problem - it's an excruciatingly common problem on forums.

If you'd asked "how do I move Z until a switch is closed" or something similar I guarantee you Terry or someone else would have given you the G31 solution in 1 reply.

By posting "Problems with For Next loop in script" and then "mach ignoring macropump code" it's taken 30 posts to get you to your solution.

290
General Mach Discussion / Re: mach ignoring macropump code
« on: April 21, 2015, 06:56:07 AM »
I've read through this thread and your previous one and I could explain to you why the various macro code you've tried does not do what you might want it to do but I'm not sure its really relevant.

Can you explain what it is you're actually wanting to do rather than how your trying to do it? i.e. I think you've fallen into the classic XY Problem. See http://xyproblem.info for what I mean.