实现流程顺序控制 - 流水灯。借助CASE OF语法(类似与C语言的 switch case) + 信号上升沿功能块,rt_Execute(CLK:=Execute, Q=>Execute_Q); IF rt_Execute.Q THEN	iState:=0; END_IF rt_Restart(CLK:=Restart, Q=>); IF rt_Restart.Q THEN	iState:=iStateSave; END_IF rt_STOP(CLK:=STOP, Q=>); IF rt_STOP.Q THEN	iStateSave:=iState; iState:=-1; END_IF rt_RESET(CLK:=RESET, Q=>); IF rt_RESET.Q THEN	iState:=1000; END_IF CASE iState OF -1:;0: el2809[0]:=TRUE; iState:=1;1: el2809[1]:=TRUE; iState:=2;2: el2809[2]:=TRUE; iState:=3;3: el2809[3]:=TRUE; iState:=4;4: el2809[4]:=TRUE; iState:=5;5: el2809[0]:=FALSE; el2809[1]:=FALSE; el2809[2]:=FALSE; el2809[3]:=FALSE; el2809[4]:=FALSE; iState:=0;1000: el2809[0]:=FALSE; el2809[1]:=FALSE; el2809[2]:=FALSE; el2809[3]:=FALSE; el2809[4]:=FALSE; END_CASE

1.4 附录

常见数据类型
文件后缀名解释