Hello,
I'm trying to figure out how can I change the offsets of the A axis, changing a pin value. Is it possible?
In our setup we link the position of the A axis to the cartesian velocity of XY plane ( 3d printing).
In another configuration, the position of the A is linked to the atan(Vx/Vy), to have a knife oriented in tangential way respect the trajectory.
We switch between normal commanded ( where axis.3.motor-pos-cmd is the driver ) or custom commanded ( where our component is the driver ).
But when we switch from one driver to another one, the values of commanded position are differents so it happen the A axis is commanded to do a new movements due to the change of driver.
i thought to solve this issue wiht this procedures depending by the case:
- when we switch from axis.3.motor-pos-cmd
we can synchronize the position reciving the actual position by halui.axis.3.pos-relative
- when we switch from component to the axis.3.motor-pos-cmd (Es. ax...pos-cmd=80 and ourcomponent.A-pos=10000)
we can synchronize the position, commanding an offset by the component.
We can't write axis.3.motor-pos-cmd pin ( not writeable) and we can't command from the component a movement equal to difference because this will execute a not desidered movement, so i thought to set the g92 A offset ( #5214 ) the differences between the values.
How can I set the offset parameter by a component? There is a writeable input pin to set this offset?
Any idea to how to solve this issue?
Thank You in advance for any suggestions