Changing Digital Outputs without Interrupting Motion

More
05 Dec 2018 19:26 #121896 by cogzoid
Hello

I'm using M64 P2 and M65 P2 to turn on and off the corresponding digital outputs. However, doing so interrupts the motion and motion smoothing. Here's a simplified example:

G01 X0 F100
G01 X5
M64 P2
G01 X20

Without the M64 code the EMC will smooth through the X5 operation and basically go straight to X20. However, with the M64 code the X axis comes to a complete stop at X5 before actuating the P2 and continuing the movement. Is there a setting that I'm missing or a better way to actuate the digital outs?
More
05 Dec 2018 19:39 #121897 by rodw
The following user(s) said Thank You: cogzoid
More
05 Dec 2018 19:46 #121899 by cogzoid
Of course... I'll give that a try and report back.
More
06 Dec 2018 00:02 #121911 by cogzoid
That did it. Thanks for the help!
More
06 Dec 2018 11:59 #121945 by andypugh
Just be aware that M62 and M63 are not actioned unless they are followed by a move. (as described in the docs, but it bears repeating).
More
06 Dec 2018 18:14 #121980 by cogzoid
Yeah, I read that, this is why we decided to use M64/M65 before and ruled out M62/M63. But, our workaround is to send a G01 command directly after every digital output command. That keeps our motion up.
More
07 Dec 2018 00:52 #121992 by andypugh

cogzoid wrote: Yeah, I read that, this is why we decided to use M64/M65 before and ruled out M62/M63. But, our workaround is to send a G01 command directly after every digital output command. That keeps our motion up.


I think that the trick is to use M62 / M63 in the motion code, then use M64 / M65 if anything needs to be turned off at the end after all motion has finished.
Time to create page: 0.081 seconds
Powered by Kunena Forum