Hi all,
I have a net lines:
net ATC-pos-cmd joint.3.motor-pos-cmd => cia402.3.pos-cmd
net ATC-pos-fb joint3.motor-pos-fb <= cia402.3.pos-fb
net ATC-pos-posthome limit3.0.out => joint3.posthome-cmd
I would like limit3.0.in to be connected to ATC-pos-fb only when controller is disabled - when motion.motion-enabled pin is set to false.
When motion.motion-enabled is true, I would like to disconnect limit3.0.in from ATC-pos-fb, as once controller is enabled, I want to feed my own position into it.
Before controller is enabled and before drives are enabled, I want it to be connected to ATC-pos-fb, as I am using absolute encoders, so no homing is required. But obviously if current position read from encoder is for example 5000, and limit3.0.in is zero or some other position, motor will jump abruptly first time when machine is enabled.
So i'd like to achieve something like this:
If (motion.motion-enabled == false)then
linksp ATC-pos-fb limit3.0.in
else
unlinkp limit3.0.in
end
Thanks