The software do not pause directly

The software do not pause directly

Postby flyingpickles » 28 Apr 2016, 14:38

Hello, I work on a machine that controls a DSLR and there fore I need to pause the G-code after every position and shift to another software that controls the DSLR. when I press the pause button in the USB CNC software it pause after it has moved the X-axis like 1/10 mm...

The code looks about like this:

G1 X100 Y100 Z100
m3
g4 p0.2
m5
g4 p0.2
m3
g4 p0.2
m5
g4 p5
G1 X130 Y100 Z100

this code:
"m3
g4 p0.2
m5
g4 p0.2
m3
g4 p0.2
m5
g4 p5"
activates the left button on my mouse which then double click on a exe file macro which makes the mouse goes to the pause button in USB CNC and then shift to the other software for the DSLR and so on.

The problem is that the motor always starts and turns just a little before the code is paused so if the next stop on the X-axis is 130 it might be on 100.015 when the camera shots. I have tried with longer time g4 p7 but that doesn't matter it always starts a little before it pause...

is there a walk around this problem?

Thankful for help, best regards: Flyingpickles
flyingpickles
 
Posts: 26
Joined: 28 Jul 2015, 17:54
Controller: Mk2

Re: The software do not pause directly

Postby Support » 29 Apr 2016, 13:17

So if I understand you trigger Pause from program via M3 and M5 control (which controls macro that initiates Pause)?

Why would you not initiated it via g-code M1?

Or I have not understood the problem correctly...
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers


Return to Mk2 controller



Who is online

Users browsing this forum: No registered users and 2 guests