前面一篇文章介绍了c#和secs集成的例子
半导体行业-SECS/GEM协议 C#与SECS/GEM通信 C#开发资料与SECS/GEM通信 SECS/GEM快速入门的实例 C#开发SECS/GEM通信协议-CSDN博客
最新例子下载-----> 需要源代码下载
这篇来介绍如何使用主机给设备发信息S10F3信息
查帮助文档SECS E5帮助文档
public static void S10F3(PrimaryMessageWrapper e)
{
SecsMessage msg = e.Message;
int listCount = msg.SecsItem.Items.ToList().Count;
if (listCount == 2)
{
byte MDLN = msg.SecsItem.Items.ToList()[0].GetValue<byte>();
string resMSG = msg.SecsItem.Items.ToList()[1].GetValue<string>();
SecsBase.S10f3Msg = resMSG;
Main.mainForm.showBarcodeInput();
}
S10F4(e);
}
public async static void S10F4(PrimaryMessageWrapper e)
{
try
{
SecsMessage msg = new SecsMessage(10, 4, "S10F4",
Item.B(0x00)
);
await e.ReplyAsync(msg);
}
catch (SecsException ex)
{
Console.WriteLine(ex);
}
}