INT32U CMD Command (answer)
INT32U FastHome Speed used for first motion. Range: 0..100000.
INT8U uFastHome Part of the speed for first motion, microsteps.
INT32U SlowHome Speed used for second motion. Range: 0..100000.
INT8U uSlowHome Part of the speed for second motion, microsteps.
INT32S HomeDelta Distance from break point.
INT16S uHomeDelta Part of the delta distance, microsteps. Range: -255..255.
INT16U HomeFlags Set of flags specify direction and stopping conditions.
0x001 - HOME_DIR_FIRST (Flag defines direction of 1st motion after execution of home command. Direction is
right, if set; otherwise left.)
0x002 - HOME_DIR_SECOND (Flag defines direction of 2nd motion. Direction is right, if set; otherwise left.)
0x004 - HOME_MV_SEC_EN (Use the second phase of calibration to the home position, if set; otherwise the
second phase is skipped.)
0x008 - HOME_HALF_MV (If the flag is set, the stop signals are ignored in start of second movement the first
half-turn.)
0x030 - HOME_STOP_FIRST_BITS (Bits of the first stop selector.)
0x010 - HOME_STOP_FIRST_REV (First motion stops by revolution sensor.)
0x020 - HOME_STOP_FIRST_SYN (First motion stops by synchronization input.)
0x030 - HOME_STOP_FIRST_LIM (First motion stops by limit switch.)
0x0C0 - HOME_STOP_SECOND_BITS (Bits of the second stop selector.)
0x040 - HOME_STOP_SECOND_REV (Second motion stops by revolution sensor.)
0x080 - HOME_STOP_SECOND_SYN (Second motion stops by synchronization input.)
0x0C0 - HOME_STOP_SECOND_LIM (Second motion stops by limit switch.)
0x100 - HOME_USE_FAST (Use the fast algorithm of calibration to the home position, if set; otherwise the
traditional algorithm.)
INT8U
Reserved
[9]
Reserved (9 bytes)
INT16U CRC Checksum
Description:
Read home settings. This function fill structure with settings of calibrating position.
Command SMOV
result_t set_move_settings (device_t id, const move_settings_t* move_settings)
Command code (CMD): "smov" or 0x766F6D73.
Request: (30 bytes)
INT32U CMD Command
INT32U Speed Target speed (for stepper motor: steps/s, for DC: rpm). Range: 0..100000.
INT8U uSpeed Target speed in microstep fractions/s. Using with stepper motor only.
INT16U Accel Motor shaft acceleration, steps/s^2(stepper motor) or RPM/s(DC). Range: 1..65535.
INT16U Decel Motor shaft deceleration, steps/s^2(stepper motor) or RPM/s(DC). Range: 1..65535.
INT32U AntiplaySpeed Speed in antiplay mode, full steps/s(stepper motor) or RPM. Range: 0..100000.
INT8U uAntiplaySpeed Speed in antiplay mode, 1/256 microsteps/s. Used with stepper motor only.
INT8U Reserved [10] Reserved (10 bytes)
INT16U CRC Checksum
Answer: (4 bytes)
INT32U CMD Command (answer)
Description:
Set command setup movement (speed, acceleration, threshold and etc).