I do not know, if it is helps You, but one of the BG logoc what we are using:
123: !Robot actual position ;
124: GO[11:4336:CurrPosX]=($SCR_GRP[1].$MCH_POS_X*10) ;
125: GO[12:61953:CurrPosY]=($SCR_GRP[1].$MCH_POS_Y*10) ;
126: GO[13:5523:CurrPosZ]=($SCR_GRP[1].$MCH_POS_Z*10) ;
127: GO[14:65523:CurrPosW]=($SCR_GRP[1].$MCH_POS_W*100) ;
128: GO[15:64052:CurrPosP]=($SCR_GRP[1].$MCH_POS_P*100) ;
129: GO[16:14064:CurrPosR]=($SCR_GRP[1].$MCH_POS_R*100) ;