Program instructions
7.13 Program control
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
309
The divergence of control streams can be implemented in an SCR program by using multiple
SCRT instructions enabled by the same transition condition, as shown in the following
example.
Example: SCR divergent flow control
Beginning of state L control re-
gion
LSCR S3.4
S3.5: Transition to state M
S6.5: Transition to state N
LD M2.3
A I2.1
SCRT S3.5
SCRT S6.5
End of the state region for state L
SCRE
When streams converge, all incoming streams must be complete before the next state is
executed.
The convergence of control streams can be implemented in an SCR program by making the
transition from state L to state L' and by making the transition from state M to state M'. When
both SCR bits representing L' and M' are true, state N is enabled as shown in the following
example.