/// <summary> /// 8门发送报警消除指令 /// </summary> private static void ErrorEight() { if (!string.IsNullOrEmpty(SocketHelper.SendAddress(SocketHelper.socketList[0].socket, PLCAddressHelper.RAddressWrite("87", 1)))) { Thread.Sleep(1000); SocketHelper.SendAddress(SocketHelper.socketList[0].socket, PLCAddressHelper.RAddressWrite("87", 0)); ControlHelp.ControlHelp.listBoxInfo("8门发送报警消除指令成功"); } else { ControlHelp.ControlHelp.listBoxInfo("8门发送报警消除指令失败"); } }
/// <summary> /// 8门照明灯关闭 /// </summary> private static void LightingCloseEight() { if (!string.IsNullOrEmpty(SocketHelper.SendAddress(SocketHelper.socketList[0].socket, PLCAddressHelper.RAddressWrite("72", 0)))) { ControlHelp.ControlHelp.listBoxInfo("8号发送照明指令指令成功"); } else { ControlHelp.ControlHelp.listBoxInfo("8号发送照明指令指令失败"); } }
/// <summary> /// 3门照明灯开启 /// </summary> private static void LightingOpenThree() { if (!string.IsNullOrEmpty(SocketHelper.SendAddress(SocketHelper.socketList[0].socket, PLCAddressHelper.RAddressWrite("22", 1)))) { ControlHelp.ControlHelp.listBoxInfo("3号发送照明指令指令成功"); } else { ControlHelp.ControlHelp.listBoxInfo("3号发送照明指令指令失败"); } }
/// <summary> /// 7门停止 /// </summary> private static void StopSeven() { if (!string.IsNullOrEmpty(SocketHelper.SendAddress(SocketHelper.socketList[0].socket, PLCAddressHelper.RAddressWrite("6C", 0)))) { ControlHelp.ControlHelp.listBoxInfo("7号发送停止指令指令成功"); } else { ControlHelp.ControlHelp.listBoxInfo("7号发送停止指令指令失败"); } }
/// <summary> /// 8门联机启动 /// </summary> private static void StartEight() { if (!string.IsNullOrEmpty(SocketHelper.SendAddress(SocketHelper.socketList[0].socket, PLCAddressHelper.RAddressWrite("7C", 1)))) { ControlHelp.ControlHelp.listBoxInfo("8号发送联机启动指令成功"); } else { ControlHelp.ControlHelp.listBoxInfo("8号发送联机启动指令失败"); } }