MOVE 指令 用于赋值
如果是ST 就容易很多
The following example shows how the TON_10ms function is used in Structured Text.
The ‘output‘ variable is controlled by the ‘input‘ variable. The positive edge of ‘output‘ has a switch-on delay of approximately 1.2 seconds in relation to the positive edge of ‘input‘. The time which has passed since the positive edge of ‘input‘ can be read from the ‘elapsedTime‘ variable as long as this delay still occurs.
(* cyclic program *) (* call function block *) (* Time is measured in ticks of 10 milliseconds, so 120 equals to 1.2 seconds *) TON_10ms_01( IN:=input, PT:=120 );(* assign results to variables *) output := TON_10ms_01.Q;elapsedTime := TON_10ms_01.ET;