|
|
@ -1,8 +1,8 @@ |
|
|
|
package a8k.service.bak_devicectrl.status; |
|
|
|
|
|
|
|
import a8k.type.HardwareException; |
|
|
|
import a8k.type.exception.HardwareException; |
|
|
|
import a8k.controler.extapi.utils.ExtApiTab; |
|
|
|
import a8k.controler.extapi.utils.EnginnerPageStatu; |
|
|
|
import a8k.controler.extapi.utils.ExtApiStatu; |
|
|
|
import a8k.controler.extapi.pagecontrol.ExtApiTabConfig; |
|
|
|
import a8k.hardware.A8kCanBusService; |
|
|
|
import a8k.hardware.type.a8kcanprotocol.IOId; |
|
|
@ -33,42 +33,42 @@ public class DeviceStatus { |
|
|
|
// |
|
|
|
// 状态 |
|
|
|
// |
|
|
|
@EnginnerPageStatu(name = "试管架存在", group = "进出料光电", order = ORDER.isTubeExist) |
|
|
|
@ExtApiStatu(name = "试管架存在", group = "进出料光电", order = ORDER.isTubeExist) |
|
|
|
public Boolean isTubeExist() throws HardwareException { |
|
|
|
return canBus.getIOState(IOId.TubeExistPPS); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "入口光电", group = "进出料光电", order = ORDER.isTubeRackInEnterPos) |
|
|
|
@ExtApiStatu(name = "入口光电", group = "进出料光电", order = ORDER.isTubeRackInEnterPos) |
|
|
|
public Boolean isTubeRackInEnterPos() throws HardwareException { |
|
|
|
return canBus.getIOState(IOId.InfeedPPS); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "出口光电", group = "进出料光电", order = ORDER.isTubeRackInExitPos) |
|
|
|
@ExtApiStatu(name = "出口光电", group = "进出料光电", order = ORDER.isTubeRackInExitPos) |
|
|
|
public Boolean isTubeRackInExitPos() throws HardwareException { |
|
|
|
return canBus.getIOState(IOId.OutfeedPPS); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "试管高低判读光电", group = "进出料光电", order = ORDER.isHighTube) |
|
|
|
@ExtApiStatu(name = "试管高低判读光电", group = "进出料光电", order = ORDER.isHighTube) |
|
|
|
public Boolean isHighTube() throws HardwareException { |
|
|
|
return canBus.getIOState(IOId.TubeHeightPPS); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "通道外光电", group = "进出料光电", order = ORDER.getTHchOuterPPS) |
|
|
|
@ExtApiStatu(name = "通道外光电", group = "进出料光电", order = ORDER.getTHchOuterPPS) |
|
|
|
public Boolean getTHchOuterPPS() throws HardwareException { |
|
|
|
return canBus.getIOState(IOId.THChOuterPPS); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "通道内光电", group = "进出料光电", order = ORDER.getTHchInterPPS) |
|
|
|
@ExtApiStatu(name = "通道内光电", group = "进出料光电", order = ORDER.getTHchInterPPS) |
|
|
|
public Boolean getTHchInterPPS() throws HardwareException { |
|
|
|
return canBus.getIOState(IOId.THChInterPPS); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "X轴光电➡", group = "HBOT", order = ORDER.getXPPS) |
|
|
|
@ExtApiStatu(name = "X轴光电➡", group = "HBOT", order = ORDER.getXPPS) |
|
|
|
public Boolean getXPPS() throws HardwareException { |
|
|
|
return canBus.hbotReadInio(MId.HbotM, 0); |
|
|
|
} |
|
|
|
|
|
|
|
@EnginnerPageStatu(name = "Y轴光电⬇", group = "HBOT", order = ORDER.getYPPS) |
|
|
|
@ExtApiStatu(name = "Y轴光电⬇", group = "HBOT", order = ORDER.getYPPS) |
|
|
|
public Boolean getYPPS() throws HardwareException { |
|
|
|
return canBus.hbotReadInio(MId.HbotM, 1); |
|
|
|
} |
|
|
|