#Preferred setup is pri. zero matches sec. zero/direction
#Zero machine and determine the planes perp. to axis rotations
#These plane combinations are valid:
#Primary plane XY XZ YZ
#Secondary or XZ XY XY
#Secondary YZ YZ XZ
#Primary axis angle description (in machine base terms)
#With nutating (mtype 3-5) the nutating axis must be the XY plane
rotaxis1 = vecy #Zero
rotdir1 = vecx #Direction
#Secondary axis angle description (in machine base terms)
#With nutating (mtype 3-5) the nutating axis and this plane normal
#are aligned to calculate the secondary angle
rotaxis2 = vecz #Zero
rotdir2 = vecx #Direction
#NOTE: Use of 'top_map' requires the dealer match the
# above settings below. These must match initial settings!!!
p_nut_restore #Postblock, restores original axis settings
result = updgbl(rotaxis1, vecy) #Zero
result = updgbl(rotdir1, vecx) #Direction
result = updgbl(rotaxis2, vecz) #Zero
result = updgbl(rotdir2, vecx) #Direction
以上决定轴向量
#Normally use the tool length for the offset in the tool direction
saxisx : 0 #The axis offset direction?
saxisy : 0 #The axis offset direction?
saxisz : 0 #The axis offset direction?
以上确定轴偏距