Skip to content

Triggersequences with M62/M63 #523

Answered by terjeio
AndreLukas121 asked this question in Q&A
Discussion options

You must be logged in to vote

If you combine your new M-code with M62/M63 I believe you can keep your custom linked list in the plugin. When hal.port.digital_out() gets called set a flag in your plugin and act on that on the next hal.stepper.pulse_start() call.
At the time of your new M-code is parsed get the position from gc_state, save it in your list and later compare that to the position in the hal.stepper.pulse_start() struct parameter when the associated M62/M63 is executed.
If you want you can also add a number of virtual digital outputs and use the port numbers of these as an id if that makes it easier to keep track.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AndreLukas121
Comment options

@terjeio
Comment options

@AndreLukas121
Comment options

@terjeio
Comment options

Answer selected by AndreLukas121
@AndreLukas121
Comment options

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