恭喜,你发布的帖子
发布于 2018-02-07 11:10:43
6楼
用CASE也不行啊!!!这个SCL到底怎么搞?
"Run"();
IF "RunningState" THEN
// Statement section IF
CASE #step OF
0: // Statement section case 1
"IEC_Timer_0_DB".TON(IN := 1,
PT := T#10s,
ET => #thisTime,
Q => #timeOut);
IF "IEC_Timer_0_DB".Q = 1 THEN
// Statement section IF
#step := 1;
ELSE
#step := 0;
END_IF;
1: // Statement section case 2 to 4
"IEC_Timer_0_DB_1".TON(IN := 1,
PT := T#15S,
ET => #thisTime,
Q => #timeOut);
IF "IEC_Timer_0_DB_1".Q = 1 THEN
// Statement section IF
#step := 2;
END_IF;
ELSE // Statement section ELSE
;
END_CASE;
END_IF;
请填写推广理由:
分享
只看
楼主