要求PLC接入客戶系統(tǒng),客戶系統(tǒng)是REST協(xié)議的,發(fā)送數(shù)據(jù)格式是JSON格式,如PLC向系統(tǒng)需要發(fā)送
POST
http://IP:PORT/rest/liftService/resouceArrive{
"reqCode": "",
"reqTime":"",
}
然后系統(tǒng)會(huì)返回,PLC要接受
{
"code": “0”,
"message": "成功",
"reqCode": "1541954B96B1112",
}
PLC應(yīng)該不可以寫(xiě)這樣的代碼吧,小型PLC類型不限,謝謝大家解答