The same thing happens when people switch between csp and pv modes (rotary axis to spindle motor and back),
they have problem with the rotary position feedback. Could there be a general way? Save the position, and later
create an offset to add to the position feedback. Sounds like that could work.
The point I wanted to make about cia402 state machine was that the device decides the state,
the cia402 component can only react and ask for a change of state.
The cia402 component really only uses two states, disabled and op enabled, controlled by the enable pin.
Either transition to and stay in disabled mode, or transition to and stay in op enabled mode.
When in op enabled state, you can switch between the different operation modes. Anyway.
Is there no message in the syslog when you have a mismatch between pdos? I would have expected something there.