|
|
@ -95,6 +95,11 @@ void StepMotorCtrlTab::construct(QTabWidget *fathertab) { |
|
|
|
box->newFunc("相对移动", {"distance"}, [this](int argn, const char **args) { ICM->step_motor_easy_move_by(getDeviceId(), atoi(args[0])); }); |
|
|
|
box->newFunc("移动到", {"position"}, [this](int argn, const char **args) { ICM->step_motor_easy_move_to(getDeviceId(), atoi(args[0])); }); |
|
|
|
box->newFunc("移动到IO", {"ioindex", "direction"}, [this](int argn, const char **args) { ICM->step_motor_easy_move_to_io(getDeviceId(), atoi(args[0]), atoi(args[1])); }); |
|
|
|
box->newFunc("往复运动", {"startPos", "endPos","times"}, [this](int argn, const char **args) { |
|
|
|
ICM->callcmd3(getDeviceId(), kstep_motor_easy_reciprocating_motion, atoi(args[0]), atoi(args[1]), atoi(args[2])); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|