29 wiersze
1.0 KiB
C#
29 wiersze
1.0 KiB
C#
|
// ********************************************************************************
|
|||
|
// 文件名字: Command.S7F1
|
|||
|
// 文件描述: Command.S7F1
|
|||
|
// 开发人员: Michael
|
|||
|
// 创建时间: 2019/11/8 0:08
|
|||
|
//
|
|||
|
// 更新历史:
|
|||
|
// + 创建 Command.S7F1.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 S7F1Command(S7F1Item items, object tag = null)
|
|||
|
{
|
|||
|
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
|||
|
{
|
|||
|
var trans = SimulatorInfo.Instance.Context.GetTransaction(7, 1, "S7F1");
|
|||
|
trans.Primary.Root.Item(1).Value = items.PPID;
|
|||
|
trans.Primary.Root.Item(2).Value = items.LENGTH;
|
|||
|
trans.Tag = tag;
|
|||
|
SimulatorInfo.Instance.Context.SendMessage(trans);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|