| | |
| | | import com.zy.core.cache.OutputQueue; |
| | | import com.zy.core.cache.SlaveConnection; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.enums.SteChargeType; |
| | | import com.zy.core.model.DevpSlave; |
| | | import com.zy.core.model.Task; |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | |
| | | log.error("输送线plc编号={} {}号充电桩{}控制成功", slave.getId(), index + 1, open?"打开":"关闭"); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 获取空闲充电桩 |
| | | */ |
| | | public SteChargeType getIdleChargeLocNo() { |
| | | if (!this.charge0) { |
| | | return SteChargeType.FIRST; |
| | | } |
| | | if (!this.charge1) { |
| | | return SteChargeType.SECOND; |
| | | } |
| | | if (!this.charge2) { |
| | | return SteChargeType.THIRD; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |