Hello Guest it is July 17, 2019, 11:11:03 PM

Author Topic: Is anyone else using E1P1 / E1P0 to switch output #1 ?  (Read 12773 times)

0 Members and 1 Guest are viewing this topic.

Offline Tweakie.CNC

*
  • *
  •  7,844 7,844
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Is anyone else using E1P1 / E1P0 to switch output #1 ?
« on: June 28, 2010, 02:58:07 AM »
I am having an issue with switching output #1 with the commands E1P1 and E1P0.

For most of a program it works just fine then suddenly gets confused (particularly with short moves) then returns to working just fine again.
Despite much experimentation I have not been able to get to the bottom of this or find the cure.

If anyone has experienced this problem and discovered the reason or found a cure I would be most grateful to learn the answer.

I have attached a simple GCode which exhibits this problem.

Thanks,

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #1 on: June 28, 2010, 04:32:17 AM »
Just curious the reason you are using this? If its for no delay operation of turning on/off your laser I wonder if M10/M11 would work better?
Hood

Offline Tweakie.CNC

*
  • *
  •  7,844 7,844
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #2 on: June 28, 2010, 06:27:28 AM »
Hi Hood,

Thanks for your response - Yes it is for no delay, or switching at the point of the axis movement, for a laser.

Funny enough the M10 /M11 combo also suffer similar, although slightly different, behavior. There is definitely something strange here as I have tried different computers with the same result.

I have attached a modified (m10/m11) version of the earlier GCode just in case anyone wants to see the difference.

Tweakie
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #3 on: June 28, 2010, 07:41:33 AM »
Hi Tweakie - don't know if this is any use to you but a while back I spent a bit of time looking at reducing the delay after switching outputs. http://www.machsupport.com/forum/index.php/topic,13206.msg86699.html#msg86699 (post #11)

Cheers

Ian

Offline Tweakie.CNC

*
  • *
  •  7,844 7,844
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #4 on: June 28, 2010, 08:44:46 AM »
Hi Ian,

Thank you for the link, which I had not seen before. I have just given this a try (got quite excited) and although it may speed the Output # ? switching time there is still a delay before the next line of code is executed when using M3 or M1001.
With cutting acrylic this delay is unimportant to me it is just with engraving where the depth varies at the start and end of the kerf.
It is so annoying that the E1P1/E1P0 works so well... 'when it works'.  :(  :'(

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #5 on: June 28, 2010, 09:09:06 AM »
although it may speed the Output # ? switching time there is still a delay before the next line of code is executed when using M3 or M1001.

Hi Tweakie - The timings I've given in the thread (via scope) were between the edge of the ouput going active and the edge of the first step pulse on the next line that commanded movement. i.e. NOT the time it took the output to go active. Worked every time for me and like I say I got it down to ~ 0.05 seconds, but looks like one of those one's that don't work for everyone for whatever reason.

Cheers

Ian

Offline Tweakie.CNC

*
  • *
  •  7,844 7,844
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #6 on: June 28, 2010, 09:21:15 AM »
Hi Ian,

Thanks for the info, I must look into this a bit more then. I didn't actually measure anything, just looked at the results in a piece of scrap perspex.
Just out of curiosity and assuming you have a better memory than me, what acceleration figure were you using for your X -Y axis ?.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #7 on: June 28, 2010, 10:16:02 AM »
5000mm/sec^2 (velocity 15000mm/min)

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #8 on: June 28, 2010, 10:28:04 AM »
fingers too fast for brain - why does that make any difference?

Ian

Offline Tweakie.CNC

*
  • *
  •  7,844 7,844
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Is anyone else using E1P1 / E1P0 to switch output #1 ?
« Reply #9 on: June 28, 2010, 12:36:17 PM »
Hi Ian,

Quote
fingers too fast for brain - why does that make any difference?

The faster an axis takes off from a standing start and the quicker it stops the less drawn out the unwanted increase in depth of cut at the start and finish of the kerf becomes. (on wood this is shown as a dot at each end of a line - quick acceleration, small dot - slow acceleration, bigger dot).

Quote
5000mm/sec^2 (velocity 15000mm/min)

You must have super low mass in your axis to achieve that Velocity and acceleration. My poor little steppers might just about manage a squeak.  ;D

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.