带确认的TCP的通信中,打包程CASE (#tempDTL.NANOSECOND MOD 3) OF
0: #tempRequestTurn:=false;
else
#tempRequestTurn:=true;
end_case.
REGION packRequest
// startup pack request telegram
IF #packRequest AND #tempRequestTurn THEN // construct request telegram
...............................
REGION packResponse
IF #packResponse AND NOT #tempRequestTurn THEN
1000纳秒中取模3为0时,#tempRequestTurn是控制请求和响应处理打包数据互锁
为啥这么做 ?这样做的好处是???