JAVA SECS通信 S5F1报警/取消报警上传 springboot集成SECS通信协议 JAVA与SECS集成资料大全 JAVA 对接SECS资料明细实战例子 半导体行业-SECS/GEM协议
java与SECS/GEM基础通信S2F17获取时间半导体行业-SECS/GEM协议 JAVA与SECS/GEM通信 S10F3 终端单个显示例子 Springboot集成SECS/GEM通信协议-CSDN博客更多实例请阅$.ajax({data: {id: 1},$('#msg').text("发送成功");$.ajax({data: {id: 1},$('#msg').text("发送成功")
·
前面一篇文章介绍了C#和secs集成的例子
java与SECS/GEM基础通信
S2F17获取时间
半导体行业-SECS/GEM协议 JAVA与SECS/GEM通信 S10F3 终端单个显示例子 Springboot集成SECS/GEM通信协议-CSDN博客
springboot与secs例子下载-----> 更多详细资料





$('#S5F1ERR').click(function(){
$.ajax({
type: 'GET',
url: '/S5F1ERR',
data: {
id: 1
},
success: function (res) {
$('#msg').text("发送成功");
hideMsg()
}
})
});
$('#S5F1CanclERR').click(function(){
$.ajax({
type: 'GET',
url: '/S5F1CanclERR',
data: {
id: 1
},
success: function (res) {
$('#msg').text("发送成功");
hideMsg()
}
})
});
@RequestMapping("/S5F1ERR")
@ResponseBody
public String S5F1ERR() throws InterruptedException {
SecsMessage msg = null;
Secs2 secs2=null;
Optional<SecsMessage> reply=null;
byte result=0x00;
try {
secs2=Secs2.list(
Secs2.binary((byte) 0x08), /* 0 */
Secs2.uint2(6), /* 1 */
Secs2.ascii("The boiler temperature exceeds the range")
);
reply = SecsBase.comm.send(5, 1, true,secs2);
msg = reply.get();
secs2 = reply.get().secs2();
try{
result=secs2.getByte(0);
} catch (Secs2Exception e ) {
SecsBase.comm.gem().s9f7(msg);
}
}catch (SecsException e){
return "secs设备还没有连接上主机";
}
return "OK";
}
@RequestMapping("/S5F1CanclERR")
@ResponseBody
public String S5F1Cancl() throws InterruptedException {
SecsMessage msg = null;
Secs2 secs2=null;
Optional<SecsMessage> reply=null;
byte result=0x00;
try {
secs2=Secs2.list(
Secs2.binary((byte) 0x00), /* 0 */
Secs2.uint2(6), /* 1 */
Secs2.ascii("The boiler temperature exceeds the range")
);
reply = SecsBase.comm.send(5, 1, true,secs2);
msg = reply.get();
secs2 = reply.get().secs2();
try{
result=secs2.getByte(0);
} catch (Secs2Exception e ) {
SecsBase.comm.gem().s9f7(msg);
}
}catch (SecsException e){
return "secs设备还没有连接上主机";
}
return "OK";
}

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)