| | |
| | | |
| | | // 站点 |
| | | public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{ |
| | | for(int i = 1 ;i <= 20; i ++) {add(1100+i);} |
| | | for(int i = 1 ;i <= 21; i ++) {add(1100+i);} |
| | | }}; |
| | | public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{ |
| | | for(int i = 1 ;i <= 20; i ++) {add(1200+i);} |
| | | for(int i = 1 ;i <= 21; i ++) {add(1200+i);} |
| | | }}; |
| | | public static final ArrayList<Integer> staNos3 = new ArrayList<Integer>() {{ |
| | | for(int i = 1 ;i <= 20; i ++) {add(1300+i);} |
| | | for(int i = 1 ;i <= 21; i ++) {add(1300+i);} |
| | | }}; |
| | | public static final ArrayList<Integer> staNos4 = new ArrayList<Integer>() {{ |
| | | for(int i = 1 ;i <= 20; i ++) {add(1400+i);} |
| | | for(int i = 1 ;i <= 21; i ++) {add(1400+i);} |
| | | }}; |
| | | private ArrayList<Integer> getStaNo() { |
| | | switch (this.slave.getId()) { |
| | |
| | | * 4.出库模式 |
| | | */ |
| | | public IoModeType ioModeOf101 = IoModeType.NONE; |
| | | |
| | | private int pathStatus = 0; |
| | | |
| | | public SiemensDevpThread(DevpSlave slave) { |
| | | this.slave = slave; |
| | |
| | | } |
| | | } |
| | | |
| | | public void updatePathStatus(int status) { |
| | | if (this.pathStatus == status) return; |
| | | this.pathStatus = status; |
| | | siemensS7Net.Write("DB100.300", (short) status); |
| | | log.info("更新输送线路径状态成功 ===>> [id:{}] [status: {}]", slave.getId(), status); |
| | | } |
| | | |
| | | /** |
| | | * 写入 ID+目标站 =====> 单站点写入 |
| | | */ |