Commit ceef2411 authored by wanghao's avatar wanghao

1 传送带 ip 调整

parent 451a8d10
......@@ -180,7 +180,7 @@ public class Modbus4jUtils {
ModbusMaster master = null;
try {
master = getMaster("192.168.2.11", 502);
master = getMaster("192.168.1.11", 503);
boolean[] booleans = readDiscreteInputs(master, 1, 0, 2);
if(master != null) {
......@@ -208,7 +208,7 @@ public class Modbus4jUtils {
public static boolean[] getRoboticArmExitConveyorData() {
ModbusMaster master = null;
try {
master = getMaster("192.168.2.12", 502);
master = getMaster("192.168.1.12", 503);
boolean[] booleans = readDiscreteInputs(master, 1, 0, 2);
if(master != null) {
......
......@@ -180,6 +180,24 @@ public class RobotArmCommandServiceImpl implements IRobotArmCommandService
address,
"HOME"
);
List<RobotArmCommand> robotArmCommands = robotArmCommandMapper.selectTopRunningRobotArmCommands();
if(robotArmCommands.size() > 0) {
robotArmCommands.forEach(command -> {
command.setStatus("4");
command.setEndExecutionTime(new Date());
robotArmCommandMapper.updateRobotArmCommand(command);
});
for (RobotArmCommand robotArmCommand : robotArmCommands) {
String trayCode = robotArmCommand.getTrayCode();
String storeyCode = robotArmCommand.getStoreyCode();
}
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment