- Posts: 223
- Thank you received: 88
andypugh wrote: ...
full-turns -> convert to float
initial counts -> convert to float
turns and counts -> sum2, turns scaled by 65536
sum2.N.out -> sample-hold.0.in
(Magic here to latch the sample-hold)
sample-hold.0.out -> sum2.M.in0 (gain 1)
encoder.N.position -> sum2.M.in1 (gain 1)
sum2.M.out -> PID feedback, axis position feedback, etc.
Then specify HOME_ABSOLUTE_ENCODER in the INI.
Please Log in or Create an account to join the conversation.
0x2102 wrote: I might be able to add a mux2 or use an offset to subtract the encoder value but maybe someone has another idea. I already have to use quite a # of rt modules: offset, abs, conv_float_s32, sample_hold, conv_s32_float, 2 x sum2 to make it work and I am starting to see "Insufficient memory for pin.." warnings.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.