|
|
@ -53,6 +53,11 @@ public class LeisaiServoPage { |
|
|
|
driver.enable(id, 0); |
|
|
|
} |
|
|
|
|
|
|
|
public void stop() throws Exception { |
|
|
|
log.info("stop called"); |
|
|
|
driver.moduleStop(id); |
|
|
|
} |
|
|
|
|
|
|
|
public Integer readPosition() throws Exception { |
|
|
|
log.info("readPosition called"); |
|
|
|
return driver.readPosition(id); |
|
|
@ -124,6 +129,7 @@ public class LeisaiServoPage { |
|
|
|
page.addFunction("使能伺服", this::enableServo); |
|
|
|
page.addFunction("失能伺服", this::disableServo); |
|
|
|
page.addFunction("归零", this::moveToZero); |
|
|
|
page.addFunction("停止", this::stop); |
|
|
|
|
|
|
|
page.newGroup("相对移动"); |
|
|
|
page.addFunction("设置相对移动距离", this::setLeisaiServoDpos).setParamVal("dpos", () -> dpos); |
|
|
|