29 linhas
970 B
C#
29 linhas
970 B
C#
|
// ********************************************************************************
|
|||
|
// 文件名字: Command.S7F5
|
|||
|
// 文件描述: Command.S7F5
|
|||
|
// 开发人员: Michael
|
|||
|
// 创建时间: 2019/11/8 0:08
|
|||
|
//
|
|||
|
// 更新历史:
|
|||
|
// + 创建 Command.S7F5.cs 文件. by Michael @2019/11/8 0:08
|
|||
|
// ********************************************************************************
|
|||
|
|
|||
|
using Glorysoft.SECS.EQP.Message;
|
|||
|
|
|||
|
namespace Glorysoft.SECS.EQP.Commands
|
|||
|
{
|
|||
|
public partial class Command
|
|||
|
{
|
|||
|
public static void S7F5Command(S7F5Item items, object tag = null)
|
|||
|
{
|
|||
|
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
|||
|
{
|
|||
|
var trans = SimulatorInfo.Instance.Context.GetTransaction(7, 5, "S7F5");
|
|||
|
|
|||
|
trans.Primary.Root.Value = items.PPID;
|
|||
|
trans.Tag = tag;
|
|||
|
SimulatorInfo.Instance.Context.SendMessage(trans);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|