Hi all,

I have the following problem:
The machine requires the user to press a cycle start (physical button) 
on the machine before executing an MDI command.

So far I have used a remap command to achieve this. Basically, I prefix 
this command to all MDI commands executed by the user. E.g.:
M100 G0 X100

The M100 command waits for a digital input to toggle and aborts if it 
does not happen in a certain time frame.

However, some GCode words take precedence over my remap command. In 
particular the S and T words.

I have tried to use a Python prolog instead, which seems to always be 
executed before the other words in the MDI line. However, I cannot wait 
for something in the prolog because it freezes the interpreter. 
According to the docs one can use yield to pause a Python remap command. 
I also have tried this, but it seems the interpreter continues the 
execution after the prolog, which makes this approach useless for me.

So my question here: Is there any other way to achieve this?

I see following possible solutions to solve this problem:
* create small multi-line programs from the MDI commands
* handle wait-for-cycle-start in the UI

Both solutions sound very hacky to me. Does anyone know any other method 
to delay the execution of MDI commands? The MDI commands are entered by 
the user, so I cannot use halui in this case.

Cheers,
Alexander

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to