public bool JobMove(short Axis, double dAcc, double dDec, double dVel) { if (Axis < 8 && Axis > -1) { lock (lockObj) { ushort iDir = 0; LTDMC.dmc_set_profile(usCardNo, (ushort)Axis, 0.0, Math.Abs(dVel), dAcc, dDec, 0); if (dVel < 0) { iDir = 0; } else { iDir = 1; } LTDMC.dmc_vmove(usCardNo, (ushort)Axis, iDir); } return(true); } else { return(false); } }
public bool StartSearchLimit(short axis, double dAcc, double dDec, double dCatchSpeed) { lock (lockObj) { ushort iDir = 0; double dVel = Math.Abs(dCatchSpeed); LTDMC.dmc_set_profile(usCardNo, (ushort)axis, 0.0, dVel, dAcc, dDec, 0); if (dCatchSpeed < 0) { iDir = 0; } else { iDir = 1; } LTDMC.dmc_vmove(usCardNo, (ushort)axis, iDir); } return(true); }