示例#1
0
 public bool ZeroAxisPos(short axis)
 {
     if (axis < 8 && axis > -1)
     {
         lock (lockObj)
         {
             LTDMC.dmc_set_position(usCardNo, (ushort)axis, 0);
             return(true);
         }
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 public bool SetAxisPos(short axis, double dPos)
 {
     if (axis < 8 && axis > -1)
     {
         lock (lockObj)
         {
             LTDMC.dmc_set_position(usCardNo, (ushort)axis, (int)dPos);
             return(true);
         }
     }
     else
     {
         return(false);
     }
 }