Skip to content
Discussion options

You must be logged in to vote

How can I read the status of a pin via gcode?

It is not possible unless it is an auxillary input. Auxillary inputs can be read via M66 and the result is stored in parameter 5399. To read and act upon parameter 5399 you will have to enable expression support in the controller.

A plugin could be written that allows accessing limit- and control inputs via custom M-code.

I've set the mask to include everything - but there is no information on input pin states

If no pins are asserted the Pn: element is not output. Which is the same behaviour as legacy Grbl.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tcurdt
Comment options

@terjeio
Comment options

Answer selected by tcurdt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants