在新版手册6ES7298-8FA22-8BH0的第179页,有关ED/EU的TIP
Tip
Because the Positive Transition and Negative Transition instructions require an on-to-off or an off-to-on
transition, you cannot detect an edge-up or edge-down transition on the first scan. During the first scan,
the S7-200 sets the state of the bit specified by these instructions. On subsequent scans, these
instructions can then detect transitions for the specified bit.
问:如果在First scan没有执行到ED/EU相应指令的程序段,会如何?如果不是每个Scan都会执行到ED/EU指令的程序段,又会如何?
我的问题,其实质就是,ED/EU指令热行前的状态什么时候被系统记录,是在该指令执行时?还是系统统一处理?这当然可以编个程序来验证,但如果没有官方的说明,结果也可能是“纯属巧合”。