EAP
This commit is contained in:
22
Commands/Command.S1F1.cs
Normal file
22
Commands/Command.S1F1.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S1F1
|
||||
// 文件描述: Command.S1F1
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S1F1.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S1F1Command(object tag = null)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(1, 1, "S1F1");
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context?.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
28
Commands/Command.S1F13.cs
Normal file
28
Commands/Command.S1F13.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S1F13
|
||||
// 文件描述: Command.S1F13
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S1F13.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
using System;
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S1F13Command(object tag = null)
|
||||
{
|
||||
|
||||
var trans = SimulatorInfo.Instance.Context?.GetTransaction(1, 13, "S1F13");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Commands/Command.S1F14.cs
Normal file
23
Commands/Command.S1F14.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S1F13
|
||||
// 文件描述: Command.S1F13
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S1F13.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S1F14Command(object tag = null)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(1, 14, "S1F14");
|
||||
trans.Primary.Root.Item(1).Value = 0;
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context?.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Commands/Command.S1F15.cs
Normal file
29
Commands/Command.S1F15.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S1F15
|
||||
// 文件描述: Command.S1F15
|
||||
// 开发人员: Hupe
|
||||
// 创建时间: 2021/4/19 15:35
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S1F17.cs 文件. by Hupe @2021/4/19 15:35
|
||||
// ********************************************************************************
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using System;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S1F15Command(object tag = null)
|
||||
{
|
||||
|
||||
var trans = SimulatorInfo.Instance.Context?.GetTransaction(1, 15, "S1F15");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Commands/Command.S1F17.cs
Normal file
29
Commands/Command.S1F17.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S1F17
|
||||
// 文件描述: Command.S1F17
|
||||
// 开发人员: Hupe
|
||||
// 创建时间: 2021/4/19 15:35
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S1F17.cs 文件. by Hupe @2021/4/19 15:35
|
||||
// ********************************************************************************
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using System;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S1F17Command(object tag = null)
|
||||
{
|
||||
|
||||
var trans = SimulatorInfo.Instance.Context?.GetTransaction(1, 17, "S1F17");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
45
Commands/Command.S1F3.cs
Normal file
45
Commands/Command.S1F3.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
39
Commands/Command.S2F13.cs
Normal file
39
Commands/Command.S2F13.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
62
Commands/Command.S2F15.cs
Normal file
62
Commands/Command.S2F15.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F15
|
||||
// 文件描述: Command.S2F15
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F15.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using ARI.EAP.HOST.MQ.body;
|
||||
using ARI.EAP.HOST.SRD;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S2F15Command(S2F15Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 15, "S2F15");
|
||||
if (tag.GetType()== typeof(int))
|
||||
{
|
||||
ECChangeBody eCChangeBody = new ECChangeBody();
|
||||
foreach (var item in items.ECs)
|
||||
{
|
||||
var ec = SECSUtil.CreateSECSItem(nameof(items.ECs), eSECS_FORMAT.LIST);
|
||||
ec.Add(SECSUtil.CreateSECSItem(nameof(item.ECID), eSECS_FORMAT.U4, item.ECID));
|
||||
ec.Add(SECSUtil.CreateSECSItem(nameof(item.ECV), eSECS_FORMAT.U1, item.ECV));
|
||||
trans.Primary.Root.Add(ec);
|
||||
eCChangeBody.ECList.Add($"{item.ECID}({Configuration.conf.sRDConfiguration.findEC(item.ECID)})", item.ECV.ToString());
|
||||
}
|
||||
tag = eCChangeBody;
|
||||
}
|
||||
else
|
||||
{
|
||||
var content = Configuration.conf.commandContentCollection.findContent("S2F15_ControlState").content;
|
||||
foreach (string value in content)
|
||||
{
|
||||
var ec = SECSUtil.CreateSECSItem(nameof(items.ECs), eSECS_FORMAT.LIST);
|
||||
var ecv = Configuration.conf.sRDConfiguration.findEC(value);
|
||||
ec.Add(SECSUtil.CreateSECSItem(value, eSECS_FORMAT.U4, ecv.ecid));
|
||||
trans.Primary.Root.Add(ec);
|
||||
}
|
||||
trans.Primary.Root.Item(1).Add(SECSUtil.CreateSECSItem("ECV", eSECS_FORMAT.U1, 5));
|
||||
trans.Primary.Root.Item(2).Add(SECSUtil.CreateSECSItem("ECV", eSECS_FORMAT.U1, 1));
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Commands/Command.S2F15Rcp.cs
Normal file
36
Commands/Command.S2F15Rcp.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F15
|
||||
// 文件描述: Command.S2F15
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F15.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S2F15CommandRcp(S2F15Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 15, "S2F15");
|
||||
foreach (var item in items.ECs)
|
||||
{
|
||||
var ec = SECSUtil.CreateSECSItem(nameof(items.ECs), eSECS_FORMAT.LIST);
|
||||
ec.Add(SECSUtil.CreateSECSItem(nameof(item.ECID), eSECS_FORMAT.U2, item.ECID));
|
||||
ec.Add(SECSUtil.CreateSECSItem(nameof(item.ECV), item.ECV.GetSECS_FORMAT(), item.ECV));
|
||||
trans.Primary.Root.Add(ec);
|
||||
}
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
52
Commands/Command.S2F23.cs
Normal file
52
Commands/Command.S2F23.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S6F23
|
||||
// 文件描述: Command.S6F23
|
||||
// 开发人员: Hupe
|
||||
// 创建时间: 2021/4/14 16:12
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S6F23.cs 文件. by Hupe @2021/4/14 16:12
|
||||
// ********************************************************************************
|
||||
using System;
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S2F23Command(S2F23Item items, object tag = null)
|
||||
{
|
||||
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
try
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 23, "S2F23");
|
||||
trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.U4, items.TRID);
|
||||
trans.Primary.Root.Item(2).SetValue(eSECS_FORMAT.ASCII, items.DSPER_hhmmss);
|
||||
trans.Primary.Root.Item(3).SetValue(eSECS_FORMAT.U4, items.TOTSMP);
|
||||
trans.Primary.Root.Item(4).SetValue(eSECS_FORMAT.U4, items.REPGSZ);
|
||||
var SVID = SECSUtil.CreateSECSItem(nameof(items.SVID), eSECS_FORMAT.LIST, items.SVID);
|
||||
foreach(var svid in items.SVID)
|
||||
{
|
||||
SVID.Add(SECSUtil.CreateSECSItem("SVID", eSECS_FORMAT.U4, svid));
|
||||
}
|
||||
trans.Primary.Root.Add(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);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerService.SECSLogger.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
Commands/Command.S2F31.cs
Normal file
28
Commands/Command.S2F31.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F31
|
||||
// 文件描述: Command.S2F31
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F31.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 S2F31Command(S2F31Item item, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 31, "S2F31");
|
||||
trans.Primary.Root.Value = item.TIME;
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
71
Commands/Command.S2F33.cs
Normal file
71
Commands/Command.S2F33.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F33
|
||||
// 文件描述: Command.S2F33
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F33.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using ARI.EAP.HOST.Common;
|
||||
using ARI.EAP.HOST.SRD;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S2F33Command(S2F33Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 33, "S2F33");
|
||||
trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.U4,items.DATAID);
|
||||
var sc = tag as Scenario;
|
||||
if (!EquipmentStatus.initStatus)
|
||||
{
|
||||
|
||||
foreach (var item in items.Reports)
|
||||
{
|
||||
var rpt = SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST);
|
||||
rpt.Add(SECSUtil.CreateSECSItem(nameof(item.RPTID), eSECS_FORMAT.U4, item.RPTID));
|
||||
rpt.Add(SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST));
|
||||
//foreach (var svid in item.SVIDs)
|
||||
//{
|
||||
// rpt.Item(2).Add(SECSUtil.CreateSECSItem("SVID", eSECS_FORMAT.U4, svid));
|
||||
//}
|
||||
trans.Primary.Root.Item(2).Add(rpt);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var even in Configuration.conf.sRDConfiguration.events)
|
||||
{
|
||||
var rpt = SECSUtil.CreateSECSItem(even.name, eSECS_FORMAT.LIST);
|
||||
rpt.Add(SECSUtil.CreateSECSItem(nameof(even.reportid), eSECS_FORMAT.U4, even.reportid));
|
||||
rpt.Add(SECSUtil.CreateSECSItem("SVList", eSECS_FORMAT.LIST));
|
||||
foreach(var id in even.validVariables)
|
||||
{
|
||||
rpt.Item(2).Add(SECSUtil.CreateSECSItem(Configuration.conf.sRDConfiguration.tryGetSVOrDV(id), eSECS_FORMAT.U4, id));
|
||||
}
|
||||
trans.Primary.Root.Item(2).Add(rpt);
|
||||
}
|
||||
}
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
LoggerService.SECSLogger.Info(trans.Primary);
|
||||
if (!EquipmentStatus.initStatus)
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Delete Reports", "=" + trans.Primary.SystemBytes.ToString());
|
||||
else
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Define Reports", "=" + trans.Primary.SystemBytes.ToString());
|
||||
LoggerService.SECSLogger.Info(trans.Primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
67
Commands/Command.S2F35.cs
Normal file
67
Commands/Command.S2F35.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F35
|
||||
// 文件描述: Command.S2F35
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F35.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using ARI.EAP.HOST.Common;
|
||||
using ARI.EAP.HOST.SRD;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S2F35Command(S2F35Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 35, "S2F35");
|
||||
trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.U4, items.DATAID);
|
||||
var sc = tag as Scenario;
|
||||
if (!EquipmentStatus.initStatus)
|
||||
{
|
||||
foreach (var item in items.Events)
|
||||
{
|
||||
var evt = SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST);
|
||||
evt.Add(SECSUtil.CreateSECSItem(nameof(item.CEID), eSECS_FORMAT.U4, item.CEID));
|
||||
evt.Add(SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST));
|
||||
foreach (var rptid in item.RPTIDs)
|
||||
{
|
||||
evt.Item(2).Add(SECSUtil.CreateSECSItem("RPTID", eSECS_FORMAT.U4, rptid));
|
||||
}
|
||||
trans.Primary.Root.Item(2).Add(evt);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach(var even in Configuration.conf.sRDConfiguration.events)
|
||||
{
|
||||
var evt = SECSUtil.CreateSECSItem(even.name, eSECS_FORMAT.LIST);
|
||||
evt.Add(SECSUtil.CreateSECSItem("CEID", eSECS_FORMAT.U4, even.ceid));
|
||||
evt.Add(SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST));
|
||||
evt.Item(2).Add(SECSUtil.CreateSECSItem("RPTID", eSECS_FORMAT.U4, even.reportid));
|
||||
trans.Primary.Root.Item(2).Add(evt);
|
||||
}
|
||||
}
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
|
||||
if (!EquipmentStatus.initStatus)
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Delete Link Report", "=" + trans.Primary.SystemBytes.ToString());
|
||||
else
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Define Link Report", "=" + trans.Primary.SystemBytes.ToString());
|
||||
LoggerService.SECSLogger.Info(trans.Primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
58
Commands/Command.S2F37.cs
Normal file
58
Commands/Command.S2F37.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F37
|
||||
// 文件描述: Command.S2F37
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F37.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using ARI.EAP.HOST.Common;
|
||||
using ARI.EAP.HOST.SRD;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S2F37Command(S2F37Item items, object tag = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 37, "S2F37");
|
||||
trans.Primary.Root.Item(1).Value = items.CEED;
|
||||
var sc = tag as Scenario;
|
||||
if (!EquipmentStatus.initStatus)
|
||||
{
|
||||
foreach (var item in items.CEIDs)
|
||||
{
|
||||
trans.Primary.Root.Item(2).Add(SECSUtil.CreateSECSItem("CEID", eSECS_FORMAT.U4, item));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var even in Configuration.conf.sRDConfiguration.events)
|
||||
{
|
||||
trans.Primary.Root.Item(2).Add(SECSUtil.CreateSECSItem(even.name, eSECS_FORMAT.U4, even.ceid));
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
LoggerService.SECSLogger.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
40
Commands/Command.S2F41.cs
Normal file
40
Commands/Command.S2F41.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F41
|
||||
// 文件描述: Command.S2F41
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F41.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S2F41Command(S2F41Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 41, "S2F41");
|
||||
trans.Primary.Root.Item(1).Value = items.RCMD;
|
||||
if (items.CPNAME != null)
|
||||
{
|
||||
var li = SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST);
|
||||
li.Add(SECSUtil.CreateSECSItem("CPNAME", eSECS_FORMAT.ASCII, items.CPNAME));
|
||||
li.Add(SECSUtil.CreateSECSItem("CPVAL", items.CPVAL.GetSECS_FORMAT(), items.CPVAL));
|
||||
trans.Primary.Root.Item(2).Add(li);
|
||||
}
|
||||
if (items.CPVAL != null)
|
||||
{
|
||||
}
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
51
Commands/Command.S2F43.cs
Normal file
51
Commands/Command.S2F43.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S6F23
|
||||
// 文件描述: Command.S6F23
|
||||
// 开发人员: Hupe
|
||||
// 创建时间: 2021/4/14 16:12
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S6F23.cs 文件. by Hupe @2021/4/14 16:12
|
||||
// ********************************************************************************
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S2F43Command(S2F43Item items, object tag = null)
|
||||
{
|
||||
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 43, "S2F43");
|
||||
var sc = tag as Scenario;
|
||||
foreach (var item in items.Events)
|
||||
{
|
||||
var evt = SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST);
|
||||
evt.Add(SECSUtil.CreateSECSItem(nameof(item.STRID), eSECS_FORMAT.U1, item.STRID));
|
||||
evt.Add(SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST));
|
||||
foreach (var evtid in item.EVENTIDs)
|
||||
{
|
||||
evt.Item(2).Add(SECSUtil.CreateSECSItem("", eSECS_FORMAT.U1, evtid));
|
||||
}
|
||||
trans.Primary.Root.Add(evt);
|
||||
}
|
||||
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
|
||||
if (sc.CurrentStep == 10)
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Reset Spooling", "=" + trans.Primary.SystemBytes.ToString());
|
||||
else
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Set Spooling", "=" + trans.Primary.SystemBytes.ToString());
|
||||
LoggerService.SECSLogger.Info(trans.Primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
44
Commands/Command.S2F49.cs
Normal file
44
Commands/Command.S2F49.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S2F49
|
||||
// 文件描述: Command.S2F49
|
||||
// 开发人员: Hupe
|
||||
// 创建时间: 2021/4/14 16:12
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S2F49.cs 文件. by Hupe @2021/4/14 16:12
|
||||
// ********************************************************************************
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S2F49Command(S2F49Item items, object tag = null)
|
||||
{
|
||||
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 49, "S2F49");
|
||||
trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.U4, items.DATAID);
|
||||
trans.Primary.Root.Item(2).SetValue(eSECS_FORMAT.ASCII, items.OBJSPEC);
|
||||
trans.Primary.Root.Item(3).SetValue(eSECS_FORMAT.ASCII, items.RCMD);
|
||||
foreach (var item in items.PARAMS)
|
||||
{
|
||||
var param = SECSUtil.CreateSECSItem("", eSECS_FORMAT.LIST);
|
||||
param.Add(SECSUtil.CreateSECSItem(nameof(item.ParanName), eSECS_FORMAT.ASCII, item.ParanName));
|
||||
param.Add(SECSUtil.CreateSECSItem(nameof(item.ParanName), eSECS_FORMAT.ASCII, item.ParanVal));
|
||||
trans.Primary.Root.Item(4).Add(param);
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
30
Commands/Command.S5F1.cs
Normal file
30
Commands/Command.S5F1.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S5F3
|
||||
// 文件描述: Command.S5F3
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S5F3.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 S5F1Command(S5F1Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(5, 1, "S5F1");
|
||||
trans.Primary.Root.Item(1).Value = items.ALCD;
|
||||
trans.Primary.Root.Item(2).Value = items.ALID;
|
||||
trans.Primary.Root.Item(3).Value = items.ALTX;
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
39
Commands/Command.S5F3.cs
Normal file
39
Commands/Command.S5F3.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S5F3
|
||||
// 文件描述: Command.S5F3
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S5F3.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
using System;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S5F3Command(S5F3Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(5, 3, "S5F3");
|
||||
trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.BINARY, items.ALED);
|
||||
trans.Primary.Root.Item(2).SetValue(eSECS_FORMAT.U4,items.ALID);
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
|
||||
if (items.ALED == 0)
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Alarm Disable", "=" + trans.Primary.SystemBytes.ToString());
|
||||
else
|
||||
Global.MF.addlog(LoggerService.HtoE, $"S{trans.Primary.Stream}F{trans.Primary.Function}", LoggerService.Send, "Alarm Enable", "=" + trans.Primary.SystemBytes.ToString());
|
||||
LoggerService.SECSLogger.Info(trans.Primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Commands/Command.S5F5.cs
Normal file
36
Commands/Command.S5F5.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S1F13
|
||||
// 文件描述: Command.S1F13
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S1F13.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S5F5Command(object tag = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context?.GetTransaction(5, 5, "S5F5");
|
||||
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);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
LoggerService.SYSLogger.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
31
Commands/Command.S6F12.cs
Normal file
31
Commands/Command.S6F12.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S7F1
|
||||
// 文件描述: Command.S7F1
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S7F1.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using System;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S6F12Command(S6F12Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(6, 12, "S6F12");
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Commands/Command.S6F23.cs
Normal file
29
Commands/Command.S6F23.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S6F23
|
||||
// 文件描述: Command.S6F23
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2021/4/14 16:12
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S6F23.cs 文件. by Hupe @2021/4/14 16:12
|
||||
// ********************************************************************************
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using System;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public static partial class Command
|
||||
{
|
||||
public static void S6F23Command(object tag = null)
|
||||
{
|
||||
|
||||
var trans = SimulatorInfo.Instance.Context?.GetTransaction(6, 23, "S6F23");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Commands/Command.S7F1.cs
Normal file
29
Commands/Command.S7F1.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Commands/Command.S7F17.cs
Normal file
33
Commands/Command.S7F17.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S7F17
|
||||
// 文件描述: Command.S7F17
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S7F17.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using Glorysoft.SECSwell;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S7F17Command(S7F17Item items, object tag = null)
|
||||
{
|
||||
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(7, 17, "S7F17");
|
||||
foreach (var item in items.PPIDs)
|
||||
{
|
||||
trans.Primary.Root.Add(SECSUtil.CreateSECSItem("PPID", eSECS_FORMAT.ASCII, item));
|
||||
}
|
||||
trans.Tag = tag;
|
||||
SimulatorInfo.Instance.Context.SendMessage(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Commands/Command.S7F19.cs
Normal file
36
Commands/Command.S7F19.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: Command.S7F5
|
||||
// 文件描述: Command.S7F5
|
||||
// 开发人员: Michael
|
||||
// 创建时间: 2019/11/8 0:08
|
||||
//
|
||||
// 更新历史:
|
||||
// + 创建 Command.S7F5.cs 文件. by Michael @2019/11/8 0:08
|
||||
// ********************************************************************************
|
||||
|
||||
using ARI.EAP.HOST;
|
||||
using Glorysoft.SECS.EQP.Message;
|
||||
using Glorysoft.SECS.EQP.Utilities;
|
||||
using System;
|
||||
|
||||
namespace Glorysoft.SECS.EQP.Commands
|
||||
{
|
||||
public partial class Command
|
||||
{
|
||||
public static void S7F19Command(object tag = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
var trans = SimulatorInfo.Instance.Context.GetTransaction(7, 19, "S7F19");
|
||||
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);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
LoggerService.SYSLogger.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Commands/Command.S7F3.cs
Normal file
29
Commands/Command.S7F3.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Commands/Command.S7F5.cs
Normal file
29
Commands/Command.S7F5.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// ********************************************************************************
|
||||
// 文件名字: 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user