static private RobotStatus AcsJog(RobotAgent robot_agent, object[] args) { if ((int)args[0] < 0 || 5 < (int)args[0]) { throw new System.ArgumentOutOfRangeException("AxisId out of range!!", "AxisId(args[0])"); } if ((int)args[1] != 0 && (int)args[1] != 1) { throw new System.NotSupportedException("Not supported direction!!: Dir(args[1])"); } if ((int)args[2] < 0 || 2000 < (int)args[2]) { throw new System.ArgumentOutOfRangeException("Interval out of range!!", "Interval(args[2])"); } int ret = robot_agent.AcsJog((int)args[0], (int)args[1], (int)args[2], MAX_VEL); RobotStatus robot_status = robot_agent.GetStatus(); robot_status.ret_code = ret; return(robot_status); }