// ******************************************************************************** // 文件名字: Command.S2F13 // 文件描述: Command.S2F13 // 开发人员: Hupe // 创建时间: 2021/4/19 10:52 // // 更新历史: // + 创建 Command.S2F13.cs 文件. by Hupe @2021/4/19 10:52 // ******************************************************************************** using ARI.EAP.HOST; using ARI.EAP.HOST.SRD; using Glorysoft.SECS.EQP.Message; using Glorysoft.SECS.EQP.Utilities; using Glorysoft.SECSwell; using System; namespace Glorysoft.SECS.EQP.Commands { public static partial class Command { public static void S2F13Command(object tag = null) { if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected) { var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 13, "S2F13"); foreach(var ec in Configuration.conf.sRDConfiguration.ecvs) { trans.Primary.Root.Add(SECSUtil.CreateSECSItem(ec.name, eSECS_FORMAT.U4, ec.ecid)); } 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); trans.Tag = tag; SimulatorInfo.Instance.Context.SendMessage(trans); } } } }