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