private void OmroPLCvarPLC相机NG和设备启动监测实例_OnChanged(VarChangeEventArgs e) { switch (e.Ret) { //未触发状态 case 0: break; //plc触发PC动作执行 case 2: PLC相机NG触发信号 = true; break; case 10: if (设置界面.允许PLC清零) { PLC设备启动触发信号 = true; } break; } if (onLogEvent != null) { onLogEvent(new OnLogEventArgs("SIGNAL:" + OmroPLCvarPLC相机NG和设备启动监测实例.TickSign + "=" + e.Ret)); } }
private void OmroPLCvar后电子秤2监测信号_OnChanged(VarChangeEventArgs e) { switch (e.Ret) { //未触发状态 case 0: break; //plc触发PC动作执行 case 1: 后电子秤2触发信号 = true; Program.stopwatch3.Reset(); Program.stopwatch3.Start(); break; case 4: 后电子秤2清零信号 = true; break; case -2: 拉膜2NG信号 = true; break; } if (onLogEvent != null) { onLogEvent(new OnLogEventArgs("SIGNAL:" + OmroPLCvar后电子秤2监测实例.TickSign + "=" + e.Ret)); } }
private void OmroPLCvarPLC扫弹夹码监测信号_OnChanged(VarChangeEventArgs e) { switch (e.Ret) { //未触发状态 case 0: break; //plc触发PC动作执行 case 6: PLC扫弹夹码触发信号 = true; break; } if (onLogEvent != null) { onLogEvent(new OnLogEventArgs("SIGNAL:" + OmroPLCvarPLC扫弹夹码监测实例.TickSign + "=" + e.Ret)); } }