Might use $SCR_GRP[1].$MCH_POS_(X) still dont know what my teachers want me to do...
But its anyways in Real so I have to convert it to Integer, saw differents methods to do It.
Now the thing im not sure how to do is where can I get the position of my tool (x,y,z) to move it manually in my HMI, like overwrite the current position with the one I send from my PLC.
Not sure if I explained myself tomorrow in class will try it .
I recommend to use CMD_INFO[1].$CART_POS[x] instead or CMD_INFO[1].$CART_POS_UF[x] if you want the coordinates from the current active userfame.
$SCR_GRP[1].$MCH_POS_(X) only works when the robot is in auto mode.
For sending a position from your HMI you could use a Macro Program and sending X,Y,Z,W,P and R with GI signal then write thoes values to a PR register and sending a DI to start the macro.
Make sure to have a set working range befor sending values and always making sure the values you send or recive are within this range. a crash is likley to happen otherwise.