/** 注册地址值 */ private void registAddr() { // TODO Auto-generated method stub if (null != info.getnAddress()) { SKPlcNoticThread.getInstance().addNoticProp(info.getnAddress(), valueCall, false, sceneId); } if (null != info.getmOffSetAddr()) { SKPlcNoticThread.getInstance().addNoticProp(info.getmOffSetAddr(), addOffSet, false, sceneId); } // 注册触控地址值 if (touchByAddr && null != info.getmTouchinInfo().getTouchAddrProp()) { ADDRTYPE addrType = info.getmTouchinInfo().geteCtlAddrType(); if (addrType == ADDRTYPE.BITADDR) { SKPlcNoticThread.getInstance() .addNoticProp(info.getmTouchinInfo().getTouchAddrProp(), touchCall, true, sceneId); } else { SKPlcNoticThread.getInstance() .addNoticProp(info.getmTouchinInfo().getTouchAddrProp(), touchCall, false, sceneId); } } // 注册显现地址值 if (showByAddr && null != info.getmShowInfo().getShowAddrProp()) { ADDRTYPE addrType = info.getmShowInfo().geteAddrType(); if (addrType == ADDRTYPE.BITADDR) { SKPlcNoticThread.getInstance() .addNoticProp(info.getmShowInfo().getShowAddrProp(), showCall, true, sceneId); } else { SKPlcNoticThread.getInstance() .addNoticProp(info.getmShowInfo().getShowAddrProp(), showCall, false, sceneId); } } // 位控制键盘是否弹出 if (null != info.getsBitAddress()) { SKPlcNoticThread.getInstance() .addNoticProp(info.getsBitAddress(), bitKeyBoard, true, sceneId); } }
private void doTouch(boolean bitFlag) { if (null == info) { return; } if (!isTouchFlag || !isShowFlag) { return; } if (info.isbIsinput()) { if (info.getnKeyId() == -1) // 为-1 时调用系统键盘 { openKey(); } else { openBoard(); } // 如果是由位地址控制键盘打开的 并且勾选了自动复位 则将那个位地址值复位 if (bitFlag && info.isbAutoChangeBit()) { setBit(info.getsBitAddress(), 0); } } }