Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

29 рядки
970 B

  1. // ********************************************************************************
  2. // 文件名字: Command.S7F5
  3. // 文件描述: Command.S7F5
  4. // 开发人员: Michael
  5. // 创建时间: 2019/11/8 0:08
  6. //
  7. // 更新历史:
  8. // + 创建 Command.S7F5.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 S7F5Command(S7F5Item items, object tag = null)
  16. {
  17. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  18. {
  19. var trans = SimulatorInfo.Instance.Context.GetTransaction(7, 5, "S7F5");
  20. trans.Primary.Root.Value = items.PPID;
  21. trans.Tag = tag;
  22. SimulatorInfo.Instance.Context.SendMessage(trans);
  23. }
  24. }
  25. }
  26. }