|
- // ********************************************************************************
- // 文件名字: Command.S7F17
- // 文件描述: Command.S7F17
- // 开发人员: Michael
- // 创建时间: 2019/11/8 0:08
- //
- // 更新历史:
- // + 创建 Command.S7F17.cs 文件. by Michael @2019/11/8 0:08
- // ********************************************************************************
-
- using Glorysoft.SECS.EQP.Message;
- using Glorysoft.SECS.EQP.Utilities;
- using Glorysoft.SECSwell;
-
- namespace Glorysoft.SECS.EQP.Commands
- {
- public partial class Command
- {
- public static void S7F17Command(S7F17Item items, object tag = null)
- {
- if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
- {
- var trans = SimulatorInfo.Instance.Context.GetTransaction(7, 17, "S7F17");
- foreach (var item in items.PPIDs)
- {
- trans.Primary.Root.Add(SECSUtil.CreateSECSItem("PPID", eSECS_FORMAT.ASCII, item));
- }
- trans.Tag = tag;
- SimulatorInfo.Instance.Context.SendMessage(trans);
- }
- }
- }
- }
|