fix:分切添加满轴位
This commit is contained in:
@@ -954,8 +954,8 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
if (StrUtil.isNotEmpty(taskDto.getOven_time())) {
|
||||
//下发烘箱时间
|
||||
int time = Integer.parseInt(taskDto.getOven_time());
|
||||
int hours = (time % (60 * 60 * 24)) / (60 * 60);
|
||||
int minutes = (time % (60 * 60)) / 60;
|
||||
int hours = (time / (60 * 60)); // 整数小时
|
||||
int minutes = (time % (60 * 60)) / 60; // 剩余分钟
|
||||
map.put("to_time_house", String.valueOf(hours));
|
||||
map.put("to_time_min", String.valueOf(minutes));
|
||||
hongXiangConveyorDeviceDriver.writing(map);
|
||||
|
||||
Reference in New Issue
Block a user