INT32U CMD Command
INT8U HoldCurrent Current in holding regime, percent of nominal. Range: 0..100.
INT16U CurrReductDelay Time in ms from going to STOP state to reducting current.
INT16U PowerOffDelay Time in s from going to STOP state to turning power off.
INT16U CurrentSetTime Time in ms to reach nominal current.
INT8U PowerFlags Flags with parameters of power control.
0x01 - POWER_REDUCT_ENABLED (Current reduction enabled after CurrReductDelay, if this flag is set.)
0x02 - POWER_OFF_ENABLED (Power off enabled after PowerOffDelay, if this flag is set.)
0x04 - POWER_SMOOTH_CURRENT (Current ramp-up/down is performed smoothly during
current_set_time, if this flag is set.)
INT8U Reserved [6] Reserved (6 bytes)
INT16U CRC Checksum
Answer: (4 bytes)
INT32U CMD Command (answer)
Description:
Set settings of step motor power control. Used with stepper motor only.
Command GPWR
result_t get_power_settings (device_t id, power_settings_t* power_settings)
Command code (CMD): "gpwr" or 0x72777067.
Request: (4 bytes)
INT32U CMD Command
Answer: (20 bytes)
INT32U CMD Command (answer)
INT8U HoldCurrent Current in holding regime, percent of nominal. Range: 0..100.
INT16U CurrReductDelay Time in ms from going to STOP state to reducting current.
INT16U PowerOffDelay Time in s from going to STOP state to turning power off.
INT16U CurrentSetTime Time in ms to reach nominal current.
INT8U PowerFlags Flags with parameters of power control.
0x01 - POWER_REDUCT_ENABLED (Current reduction enabled after CurrReductDelay, if this flag is set.)
0x02 - POWER_OFF_ENABLED (Power off enabled after PowerOffDelay, if this flag is set.)
0x04 - POWER_SMOOTH_CURRENT (Current ramp-up/down is performed smoothly during
current_set_time, if this flag is set.)
INT8U Reserved [6] Reserved (6 bytes)
INT16U CRC Checksum
Description:
Read settings of step motor power control. Used with stepper motor only.
Command SSEC
result_t set_secure_settings (device_t id, const secure_settings_t* secure_settings)
Command code (CMD): "ssec" or 0x63657373.
Request: (28 bytes)