Hi,
Now plc know the robot position from the values of the axes (A1, A2, A3, A4, A5, A6) against I like to know the Cartesian XYZ ABC position of the robot kuka from our PLC and i waint to plc sent a postion to move the robot.
Hi,
Now plc know the robot position from the values of the axes (A1, A2, A3, A4, A5, A6) against I like to know the Cartesian XYZ ABC position of the robot kuka from our PLC and i waint to plc sent a postion to move the robot.
How is your PLC connected to the robot?
How is your PLC connected to the robot?
beckhoff cx9020
that is PLC, not type of connection.
that is PLC, not type of connection.
connected by ethercat
so you are using fieldbus. you are already reading axis position $AXIS_ACT. you can do exactly the same for Cartesian position $POS_ACT. Note that Cartesian position is only meaningful if both tool and base are selected.
so you are using fieldbus. you are already reading axis position $AXIS_ACT. you can do exactly the same for Cartesian position $POS_ACT. Note that Cartesian position is only meaningful if both tool and base are selected.
But an error message is showed: 1419 XYZABC TOOL not programmed
As already mentioned tool had to be selected.
On boot, or after a program Cancel, or similar events, $TOOL and $BASE become "undefined", containing no valid data. In that condition, $POS_ACT and $POS_ACT_MES also become undefined (technically, "Declared" but not "Initialized," in formal KUKA terminology).
So your program that copies values from $POS_ACT to $OUTs is going to need to either:
1. Explicitly set $BASE and $TOOL before examining $POS_ACT
2. Use ON_ERROR_PROCEED to handle the "XYZABC Not Programmed" error