Hello Guest it is May 25, 2019, 10:08:17 AM

Author Topic: Fast Z on 2.5D machine  (Read 7120 times)

0 Members and 1 Guest are viewing this topic.

Fast Z on 2.5D machine
« on: November 06, 2006, 02:08:57 AM »
I am using M functions to activate and deactivate an output (output4) in my 2.5D machine. Everything works fine but there is a delay of some milliseconds (>350ms) from the execution of the M function to the next G command and from a G command to a M function.

Sample code:

N0440 X153.8415 Y44.6080 I5.1038 J-3.4409
N0450 X92.5577 Y69.9926 I-39.1988 J-7.9659
N0460 X90.8241 Y61.4619 I3.3986 J-5.1321
N0470 M17<----------------------------------------------------- (machine stops, M function deactivates output after some ms)
N0480 G00 X131.1282 Y101.9559
N0490 M18<----------------------------------------------------- (M function activates signal but the movement starts after a while)
N0500 G01 X104.6245
N0510 X123.8448 Y121.1526
N0520 X127.6986 Y126.9220
N0530 X129.6661 Y130.8300

M17 code:
DeActivateSignal(Output4)
M18 code:
ActivateSignal(Output4)

There is a liquid running from the .5 axis and as a result of the delay I get a big dot in the beginning and in the end of the contour.
Do I need a faster PC?

Because I had to modify the hardware and the postproseccor I did not try the "Z is 2.5D on Output #6" on config->state... window. Do you thing that it will make any difference?

What else do you recommend?

Thank you

Offline Chaoticone

*
  • *
  •  5,496 5,496
  • Precision Chaos
    • View Profile
Re: Fast Z on 2.5D machine
« Reply #1 on: November 06, 2006, 08:24:15 AM »
Hey Axil,
    I don't know if this will have any bearing but, what is your debounce set at?
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Fast Z on 2.5D machine
« Reply #2 on: November 06, 2006, 09:23:43 AM »
I think this is an input parameter...
I have both "debounce interval" and "index debounce" set to 0 (zero).

Offline Chaoticone

*
  • *
  •  5,496 5,496
  • Precision Chaos
    • View Profile
Re: Fast Z on 2.5D machine
« Reply #3 on: November 06, 2006, 09:40:51 AM »
Quote
I am using M functions to activate and deactivate an output (output4)
What is this output controlling?
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Fast Z on 2.5D machine
« Reply #4 on: November 06, 2006, 09:43:03 AM »
a valve

Offline Chaoticone

*
  • *
  •  5,496 5,496
  • Precision Chaos
    • View Profile
Re: Fast Z on 2.5D machine
« Reply #5 on: November 06, 2006, 09:59:48 AM »
What speed is your PC, Version of Mach? operating system. I'm pulling at straws to be honest. I'm mainly trying to get info. for the experts. ;D I will help all I can though.




Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Fast Z on 2.5D machine
« Reply #6 on: November 06, 2006, 10:40:50 AM »
What Version of Mach are you using?
Re: Fast Z on 2.5D machine
« Reply #7 on: November 06, 2006, 02:18:38 PM »
CPU speed: 1400Mhz
Mach version: 1.90.027
OS: win2k
Re: Fast Z on 2.5D machine
« Reply #8 on: November 06, 2006, 03:48:35 PM »
That's kind of an older version, I would upgrade to the 2.0 ver for starters.
Re: Fast Z on 2.5D machine
« Reply #9 on: November 06, 2006, 06:29:38 PM »
Take out the Mcodes :) they are WAY to slow for what you are looking to do :(

Try using E1 P1 for external activation 1 ON
and E1 P0 to turn it off

I think that is how it works... there is an example on the forum some place... The E1P1 needs to be on it own line btw

Thanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com