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