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.

30 regels
1.1 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 Glorysoft.SECS.EQP.Message;
  11. namespace Glorysoft.SECS.EQP.Commands
  12. {
  13. public partial class Command
  14. {
  15. public static void S5F1Command(S5F1Item items, object tag = null)
  16. {
  17. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  18. {
  19. var trans = SimulatorInfo.Instance.Context.GetTransaction(5, 1, "S5F1");
  20. trans.Primary.Root.Item(1).Value = items.ALCD;
  21. trans.Primary.Root.Item(2).Value = items.ALID;
  22. trans.Primary.Root.Item(3).Value = items.ALTX;
  23. trans.Tag = tag;
  24. SimulatorInfo.Instance.Context.SendMessage(trans);
  25. }
  26. }
  27. }
  28. }