I've been trying modify the linuxcnc python module to send operator messages.
Originally, they popped error massages that the message would not be accepted 
in the current mode.
Eventually I modified emctaskmain.cc to always accept EMC_OPERATOR_ERROR_TYPE 
by adding this to the top of emcTaskPlan.

    // Always display messages
switch (type) {
        case EMC_OPERATOR_ERROR_TYPE:
        case EMC_OPERATOR_TEXT_TYPE:
        case EMC_OPERATOR_DISPLAY_TYPE:
retval = emcTaskIssueCommand(emcCommand);
return retval;
    }

I just not sure if this is a bad idea or not.
the other options I have are:
figure out how to send NML_ERROR_TYPE messages in the python module.
make a new EMC NML message specifically for immediate operator messages.

Opinions/hints?

Chris

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to