This code seems to be Ok unless your Robot has negative values for positions.. Which most do.
You would receive a "out of range" fault. Is there a fix for that?
This code seems to be Ok unless your Robot has negative values for positions.. Which most do.
You would receive a "out of range" fault. Is there a fix for that?