Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

39 righe
1.4 KiB

  1. // ********************************************************************************
  2. // 文件名字: Command.S5F3
  3. // 文件描述: Command.S5F3
  4. // 开发人员: Michael
  5. // 创建时间: 2019/11/8 0:08
  6. //
  7. // 更新历史:
  8. // + 创建 Command.S5F3.cs 文件. by Michael @2019/11/8 0:08
  9. // ********************************************************************************
  10. using ARI.EAP.HOST;
  11. using Glorysoft.SECS.EQP.Message;
  12. using Glorysoft.SECS.EQP.Utilities;
  13. using Glorysoft.SECSwell;
  14. using System;
  15. namespace Glorysoft.SECS.EQP.Commands
  16. {
  17. public partial class Command
  18. {
  19. public static void S5F3Command(S5F3Item items, object tag = null)
  20. {
  21. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  22. {
  23. var trans = SimulatorInfo.Instance.Context.GetTransaction(5, 3, "S5F3");
  24. trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.BINARY, items.ALED);
  25. trans.Primary.Root.Item(2).SetValue(eSECS_FORMAT.U4,items.ALID);
  26. trans.Tag = tag;
  27. SimulatorInfo.Instance.Context.SendMessage(trans);
  28. if (items.ALED == 0)
  29. Global.MF.addlog(trans, LoggerService.Send, "Alarm Disable", 0);
  30. else
  31. Global.MF.addlog(trans, LoggerService.Send, "Alarm Enable", 0);
  32. LoggerService.SECSLogger.Info(trans.Primary);
  33. }
  34. }
  35. }
  36. }