C# SECS/GEM通信 S5F1报警/取消报警上传 WinForm集成SECS/GEM通信协议 C#与SECS集成资料大全 C#对接SECS资料明细实战例子 半导体行业-SECS/GEM协议
前面一篇文章介绍了C#和secs集成的例子
C#与SECS/GEM基础通信
S10F3 终端单个显示例子
C#与SECS/GEM通信 S10F3 终端单个显示例子
最新例子下载-----> 需要源代码下载
public async static void S5F1(byte ALCD, ushort ALID, string ALTX)
{
bool EventID_IsEnabled = true;
if (EventID_IsEnabled == false)
{
return;
}
SecsMessage sentMsg = new SecsMessage(5, 1, "S5F1",
Item.L(
Item.B(ALCD),
Item.U2(ALID),
Item.A(ALTX)
)
);
SecsMessage reply = await SecsBase.secsGem.SendAsync(sentMsg);
byte yymm = reply.SecsItem.GetValue<byte>();
}
private void button5_Click(object sender, EventArgs e)
{
S5Fx.S5F1(0x80, 6, "The boiler temperature exceeds the range");
}
private void button6_Click(object sender, EventArgs e)
{
S5Fx.S5F1(0x00, 6, "The boiler temperature exceeds the range");
}