You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

775 lines
34 KiB

using Autofac;
using HybirdFrameworkCore.Autofac;
using Service.FireControl.Msg;
using Service.Plc.Client;
namespace Service.FireControl.Client;
public class FireControlMgr
{
public static Subzone2 Subzone2 { get; set; }
public static Subzone3 Subzone3 { get; set; }
public static Subzone4 Subzone4 { get; set; }
public static Subzone5 Subzone5 { get; set; }
public static Subzone6 Subzone6 { get; set; }
public static Subzone7 Subzone7 { get; set; }
public static Subzone8 Subzone8 { get; set; }
public static Subzone9 Subzone9 { get; set; }
public static FireControlClient? FireControlClient { get; set; }
#region MyRegion
public static void Init()
{
if (FireControlClient == null)
{
FireControlClient = AppInfo.Container.Resolve<FireControlClient>();
}
Task.Run(() => FireControlClient.Connect());
}
/// <summary>
/// 分区灭火器开
/// </summary>
/// <param name="no"></param>
/// <returns></returns>
public bool WriteExtinguisherOn(int no)
{
if (FireControlClient != null)
{
Subzone8 Subzone8 = new Subzone8();
switch (no)
{
case 1:
Subzone8.DivisionalFireExtinguisher01.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher01);
return true;
case 2:
Subzone8.DivisionalFireExtinguisher02.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher02);
return true;
case 3:
Subzone8.DivisionalFireExtinguisher03.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher03);
return true;
case 4:
Subzone8.DivisionalFireExtinguisher04.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher04);
return true;
case 5:
Subzone8.DivisionalFireExtinguisher05.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher05);
return true;
case 6:
Subzone8.DivisionalFireExtinguisher06.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher06);
return true;
case 7:
Subzone8.DivisionalFireExtinguisher07.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher07);
return true;
case 8:
Subzone8.DivisionalFireExtinguisher08.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher08);
return true;
case 9:
Subzone8.DivisionalFireExtinguisher09.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher09);
return true;
case 10:
Subzone8.DivisionalFireExtinguisher10.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher10);
return true;
case 11:
Subzone8.DivisionalFireExtinguisher11.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher11);
return true;
case 12:
Subzone8.DivisionalFireExtinguisher12.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher12);
return true;
case 13:
Subzone8.DivisionalFireExtinguisher13.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher13);
return true;
case 14:
Subzone8.DivisionalFireExtinguisher14.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher14);
return true;
case 15:
Subzone8.DivisionalFireExtinguisher15.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher15);
return true;
case 16:
Subzone8.DivisionalFireExtinguisher16.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher16);
return true;
case 17:
Subzone8.DivisionalFireExtinguisher17.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher17);
return true;
case 18:
Subzone8.DivisionalFireExtinguisher18.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher18);
return true;
case 19:
Subzone8.DivisionalFireExtinguisher19.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher19);
return true;
case 20:
Subzone8.DivisionalFireExtinguisher20.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher20);
return true;
case 21:
Subzone8.DivisionalFireExtinguisher21.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher21);
return true;
case 22:
Subzone8.DivisionalFireExtinguisher22.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher22);
return true;
case 23:
Subzone8.DivisionalFireExtinguisher23.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher23);
return true;
case 24:
Subzone8.DivisionalFireExtinguisher24.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher24);
return true;
case 25:
Subzone8.DivisionalFireExtinguisher25.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher25);
return true;
case 26:
Subzone8.DivisionalFireExtinguisher26.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher26);
return true;
case 27:
Subzone8.DivisionalFireExtinguisher27.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher27);
return true;
case 28:
Subzone8.DivisionalFireExtinguisher28.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher28);
return true;
case 29:
Subzone8.DivisionalFireExtinguisher29.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher29);
return true;
case 30:
Subzone8.DivisionalFireExtinguisher30.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher30);
return true;
case 31:
Subzone8.DivisionalFireExtinguisher31.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher31);
return true;
case 32:
Subzone8.DivisionalFireExtinguisher32.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher32);
return true;
case 33:
Subzone8.DivisionalFireExtinguisher33.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher33);
return true;
case 34:
Subzone8.DivisionalFireExtinguisher34.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher34);
return true;
case 35:
Subzone8.DivisionalFireExtinguisher35.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher35);
return true;
case 36:
Subzone8.DivisionalFireExtinguisher36.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher36);
return true;
case 37:
Subzone8.DivisionalFireExtinguisher37.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher37);
return true;
case 38:
Subzone8.DivisionalFireExtinguisher38.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher38);
return true;
case 39:
Subzone8.DivisionalFireExtinguisher39.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher39);
return true;
case 40:
Subzone8.DivisionalFireExtinguisher40.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher40);
return true;
case 41:
Subzone8.DivisionalFireExtinguisher41.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher41);
return true;
case 42:
Subzone8.DivisionalFireExtinguisher42.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher42);
return true;
case 43:
Subzone8.DivisionalFireExtinguisher43.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher43);
return true;
case 44:
Subzone8.DivisionalFireExtinguisher44.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher44);
return true;
case 45:
Subzone8.DivisionalFireExtinguisher45.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher45);
return true;
case 46:
Subzone8.DivisionalFireExtinguisher46.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher46);
return true;
case 47:
Subzone8.DivisionalFireExtinguisher47.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher47);
return true;
case 48:
Subzone8.DivisionalFireExtinguisher48.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher48);
return true;
case 49:
Subzone8.DivisionalFireExtinguisher49.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher49);
return true;
case 50:
Subzone8.DivisionalFireExtinguisher50.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher50);
return true;
case 51:
Subzone8.DivisionalFireExtinguisher51.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher51);
return true;
case 52:
Subzone8.DivisionalFireExtinguisher52.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher52);
return true;
case 53:
Subzone8.DivisionalFireExtinguisher53.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher53);
return true;
case 54:
Subzone8.DivisionalFireExtinguisher54.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher54);
return true;
case 55:
Subzone8.DivisionalFireExtinguisher55.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher55);
return true;
case 56:
Subzone8.DivisionalFireExtinguisher56.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher56);
return true;
case 57:
Subzone8.DivisionalFireExtinguisher57.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher57);
return true;
case 58:
Subzone8.DivisionalFireExtinguisher58.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher58);
return true;
case 59:
Subzone8.DivisionalFireExtinguisher59.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher59);
return true;
case 60:
Subzone8.DivisionalFireExtinguisher60.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher60);
return true;
case 61:
Subzone8.DivisionalFireExtinguisher61.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher61);
return true;
case 62:
Subzone8.DivisionalFireExtinguisher62.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher62);
return true;
case 63:
Subzone8.DivisionalFireExtinguisher63.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher63);
return true;
case 64:
Subzone8.DivisionalFireExtinguisher64.Value = 0xFF00;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher64);
return true;
}
}
return false;
}
/// <summary>
/// 分区灭火器关
/// </summary>
/// <param name="no"></param>
/// <returns></returns>
public bool WriteExtinguisherOff(int no)
{
if (FireControlClient != null)
{
Subzone8 Subzone8 = new Subzone8();
switch (no)
{
case 1:
Subzone8.DivisionalFireExtinguisher01.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher01);
return true;
case 2:
Subzone8.DivisionalFireExtinguisher02.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher02);
return true;
case 3:
Subzone8.DivisionalFireExtinguisher03.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher03);
return true;
case 4:
Subzone8.DivisionalFireExtinguisher04.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher04);
return true;
case 5:
Subzone8.DivisionalFireExtinguisher05.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher05);
return true;
case 6:
Subzone8.DivisionalFireExtinguisher06.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher06);
return true;
case 7:
Subzone8.DivisionalFireExtinguisher07.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher07);
return true;
case 8:
Subzone8.DivisionalFireExtinguisher08.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher08);
return true;
case 9:
Subzone8.DivisionalFireExtinguisher09.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher09);
return true;
case 10:
Subzone8.DivisionalFireExtinguisher10.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher10);
return true;
case 11:
Subzone8.DivisionalFireExtinguisher11.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher11);
return true;
case 12:
Subzone8.DivisionalFireExtinguisher12.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher12);
return true;
case 13:
Subzone8.DivisionalFireExtinguisher13.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher13);
return true;
case 14:
Subzone8.DivisionalFireExtinguisher14.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher14);
return true;
case 15:
Subzone8.DivisionalFireExtinguisher15.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher15);
return true;
case 16:
Subzone8.DivisionalFireExtinguisher16.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher16);
return true;
case 17:
Subzone8.DivisionalFireExtinguisher17.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher17);
return true;
case 18:
Subzone8.DivisionalFireExtinguisher18.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher18);
return true;
case 19:
Subzone8.DivisionalFireExtinguisher19.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher19);
return true;
case 20:
Subzone8.DivisionalFireExtinguisher20.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher20);
return true;
case 21:
Subzone8.DivisionalFireExtinguisher21.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher21);
return true;
case 22:
Subzone8.DivisionalFireExtinguisher22.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher22);
return true;
case 23:
Subzone8.DivisionalFireExtinguisher23.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher23);
return true;
case 24:
Subzone8.DivisionalFireExtinguisher24.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher24);
return true;
case 25:
Subzone8.DivisionalFireExtinguisher25.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher25);
return true;
case 26:
Subzone8.DivisionalFireExtinguisher26.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher26);
return true;
case 27:
Subzone8.DivisionalFireExtinguisher27.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher27);
return true;
case 28:
Subzone8.DivisionalFireExtinguisher28.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher28);
return true;
case 29:
Subzone8.DivisionalFireExtinguisher29.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher29);
return true;
case 30:
Subzone8.DivisionalFireExtinguisher30.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher30);
return true;
case 31:
Subzone8.DivisionalFireExtinguisher31.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher31);
return true;
case 32:
Subzone8.DivisionalFireExtinguisher32.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher32);
return true;
case 33:
Subzone8.DivisionalFireExtinguisher33.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher33);
return true;
case 34:
Subzone8.DivisionalFireExtinguisher34.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher34);
return true;
case 35:
Subzone8.DivisionalFireExtinguisher35.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher35);
return true;
case 36:
Subzone8.DivisionalFireExtinguisher36.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher36);
return true;
case 37:
Subzone8.DivisionalFireExtinguisher37.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher37);
return true;
case 38:
Subzone8.DivisionalFireExtinguisher38.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher38);
return true;
case 39:
Subzone8.DivisionalFireExtinguisher39.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher39);
return true;
case 40:
Subzone8.DivisionalFireExtinguisher40.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher40);
return true;
case 41:
Subzone8.DivisionalFireExtinguisher41.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher41);
return true;
case 42:
Subzone8.DivisionalFireExtinguisher42.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher42);
return true;
case 43:
Subzone8.DivisionalFireExtinguisher43.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher43);
return true;
case 44:
Subzone8.DivisionalFireExtinguisher44.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher44);
return true;
case 45:
Subzone8.DivisionalFireExtinguisher45.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher45);
return true;
case 46:
Subzone8.DivisionalFireExtinguisher46.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher46);
return true;
case 47:
Subzone8.DivisionalFireExtinguisher47.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher47);
return true;
case 48:
Subzone8.DivisionalFireExtinguisher48.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher48);
return true;
case 49:
Subzone8.DivisionalFireExtinguisher49.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher49);
return true;
case 50:
Subzone8.DivisionalFireExtinguisher50.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher50);
return true;
case 51:
Subzone8.DivisionalFireExtinguisher51.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher51);
return true;
case 52:
Subzone8.DivisionalFireExtinguisher52.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher52);
return true;
case 53:
Subzone8.DivisionalFireExtinguisher53.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher53);
return true;
case 54:
Subzone8.DivisionalFireExtinguisher54.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher54);
return true;
case 55:
Subzone8.DivisionalFireExtinguisher55.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher55);
return true;
case 56:
Subzone8.DivisionalFireExtinguisher56.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher56);
return true;
case 57:
Subzone8.DivisionalFireExtinguisher57.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher57);
return true;
case 58:
Subzone8.DivisionalFireExtinguisher58.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher58);
return true;
case 59:
Subzone8.DivisionalFireExtinguisher59.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher59);
return true;
case 60:
Subzone8.DivisionalFireExtinguisher60.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher60);
return true;
case 61:
Subzone8.DivisionalFireExtinguisher61.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher61);
return true;
case 62:
Subzone8.DivisionalFireExtinguisher62.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher62);
return true;
case 63:
Subzone8.DivisionalFireExtinguisher63.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher63);
return true;
case 64:
Subzone8.DivisionalFireExtinguisher64.Value = 0x0;
FireControlClient.WriteValue(Subzone8.DivisionalFireExtinguisher64);
return true;
}
}
return false;
}
/// <summary>
/// 复位开
/// </summary>
/// <returns></returns>
public bool ResettingOn()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.Resetting.Value = 0xFF00;
return FireControlClient.WriteValue(Subzone8.Resetting);
}
return false;
}
/// <summary>
/// 复位关
/// </summary>
/// <returns></returns>
public bool ResettingOff()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.Resetting.Value = 0x0;
return FireControlClient.WriteValue(Subzone8.Resetting);
}
return false;
}
/// <summary>
/// 消报警音开
/// </summary>
/// <returns></returns>
public bool MuteAlarmToneOn()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.MuteAlarmTone.Value = 0xFF00;
return FireControlClient.WriteValue(Subzone8.MuteAlarmTone);
}
return false;
}
/// <summary>
/// 消报警音关
/// </summary>
/// <returns></returns>
public bool MuteAlarmToneOff()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.MuteAlarmTone.Value = 0x0;
return FireControlClient.WriteValue(Subzone8.MuteAlarmTone);
}
return false;
}
/// <summary>
/// 自检开
/// </summary>
/// <returns></returns>
public bool SelfInspectionOn()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.SelfInspection.Value = 0xFF00;
return FireControlClient.WriteValue(Subzone8.SelfInspection);
}
return false;
}
/// <summary>
/// 自检关
/// </summary>
/// <returns></returns>
public bool SelfInspectionOff()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.SelfInspection.Value = 0x0;
return FireControlClient.WriteValue(Subzone8.SelfInspection);
}
return false;
}
/// <summary>
/// 声光报警
/// </summary>
/// <returns></returns>
public bool AudibleVisualAlarmOn()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.AudibleVisualAlarm.Value = 0xFF00;
return FireControlClient.WriteValue(Subzone8.AudibleVisualAlarm);
}
return false;
}
/// <summary>
/// 声光报警
/// </summary>
/// <returns></returns>
public bool AudibleVisualAlarmOff()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.AudibleVisualAlarm.Value = 0x0;
return FireControlClient.WriteValue(Subzone8.AudibleVisualAlarm);
}
return false;
}
/// <summary>
/// 手动模式
/// </summary>
/// <returns></returns>
public bool ManualModeOn()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.ManualMode.Value = 0xFF00;
return FireControlClient.WriteValue(Subzone8.ManualMode);
}
return false;
}
/// <summary>
/// 手动模式
/// </summary>
/// <returns></returns>
public bool ManualModeOff()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.ManualMode.Value = 0x0;
return FireControlClient.WriteValue(Subzone8.ManualMode);
}
return false;
}
/// <summary>
/// 自动模式开
/// </summary>
/// <returns></returns>
public bool AutomaticModeOn()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.AutomaticMode.Value = 0xFF00;
return FireControlClient.WriteValue(Subzone8.AutomaticMode);
}
return false;
}
/// <summary>
/// 自动模式关
/// </summary>
/// <returns></returns>
public bool AutomaticModeOff()
{
if (FireControlClient != null)
{
Subzone8 subzone8 = new Subzone8();
subzone8.AutomaticMode.Value = 0x0;
return FireControlClient.WriteValue(Subzone8.AutomaticMode);
}
return false;
}
#endregion
}