Hi @syafiqfarhan
By default tcp set for the 4 axis post is set to Non-Rtcp also all the points will be calculated form the local workplane
if you want to set it form the setup workplane
you can edit the post and set it like below
if (rotate) {
var tcp = true; // << make this as true
if (tcp) {
setRotation(W); // TCP mode
} else {
save the post and test it carefully it will make the co-ordinates calculate from the setup origin
let me know the feedback
Boopathi Sivakumar
Senior Technology Consultant