it falls under the scope of remora, because it deals with our encoder specific module. you will just get the same people looking at it in another thread anyways. just 1 more thread to keep track of.
remora-docs.readthedocs.io/en/latest/sof...i-encoder-with-index
here is my attempt, havent tried to thread yet. this was intended for lathe
github.com/cakeslob/Remora/blob/nucleo_s...nuc_q/remora-xyz.hal
based on this
github.com/cakeslob/Remora/blob/nucleo_s...-xy_nuc_q/lathe2.txt
look around in the remora spi thread, i think someone has done threading before.
edit, are you trying to do it the way it was explained in the linuxcnc software encoder module? we cannot do it that way with only A and Z, unless you guys have something different in your rt1052 firmware. you might be able to do just z, but probably not the way described in linuxcnc manuals, where A channel is 1pulse per rotation, unless you modify the firmware to only use A channel. You might be able to just clock Z not using the remora encoder module, but connecting it to linuxcnc software encoder module, like in the paraport example, and replacing the pin names like suggested by turkey, but this will only work if you are using z index and nothing else, as the encoder a/b counting in remora encoder is not compatible with the linuxcnc software encoder.