// ******************************************************************************** // 文件名字: Command.S1F3 // 文件描述: Command.S1F3 // 开发人员: Michael // 创建时间: 2019/11/8 0:08 // // 更新历史: // + 创建 Command.S1F3.cs 文件. by Michael @2019/11/8 0:08 // ******************************************************************************** using ARI.EAP.HOST; using ARI.EAP.HOST.SRD; using Glorysoft.SECS.EQP.Message; using Glorysoft.SECS.EQP.Utilities; using Glorysoft.SECSwell; using System; using System.Collections.Generic; using System.Linq; namespace Glorysoft.SECS.EQP.Commands { public static partial class Command { public static void S1F3Command(object tag = null) { if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected) { var trans = SimulatorInfo.Instance.Context.GetTransaction(1, 3, "S1F3"); var content = Configuration.conf.commandContentCollection.findContent("S1F3").content; foreach(string value in content) { var sv = Configuration.conf.sRDConfiguration.findSV(value); if (sv != null) { trans.Primary.Root.Add(SECSUtil.CreateSECSItem(value, eSECS_FORMAT.U4, sv.svid)); } } trans.Tag = tag; SimulatorInfo.Instance.Context.SendMessage(trans); Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, trans.Description, "=" + trans.Primary.SystemBytes.ToString()); LoggerService.SECSLogger.Info(trans.Primary); } } } }