Rising Rtrig the use of techniques

There is a common mistake in programming industrial control. If you write a function button is triggered rising Rtrig the conditions should be as simple as possible. If the button there are other conditions, it requires a series of back Rtrig.q.

The reason is that, according to the embodiment of FIG yellow color, if the button has been pressed, the other conditions are changed, there will be a rising edge. And this sudden change, does not meet the original intention of the programmer.

Guess you like

Origin www.cnblogs.com/lion-zheng/p/10962570.html