422
SECTION
3
PLC
Programming
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
10
The IEC 1131 Standard and
Programming Language
OR divergence. At the OR divergence, control goes to step 10
(ON1_OFF2) if the Reset push button is not pressed (Not_Reset),
thereby turning ON PLight_1, keeping PLight_2 OFF (opposite
state of the step activity), and turning ON Light_EN using a set
parameter. The timer transition Y10 is triggered one second after
step X10 is activated, passing control to step X11, which reverses
the state of the pilot lights using Boolean actions. Like the Y10
transition, the Y11 transition also allows one second of activation
before it turns OFF the step and passes the token to step 2, where
the sequence is repeated.
Conversely, if the Reset push button is pressed (Reset), the program
activates step 3, which resets the light enable output and transitions
the sequence to step 1, where the program will wait until the Start push
button is pressed. Note that this SFC program requires the operator to
depress the Reset push button input at transition 2 for at least two
seconds in order to reset the lights to OFF. The reason for this is that
the program may be at the opposite OR divergence (transition 4),
which will last for two seconds before the reset signal can be scanned
at transition 2.
1
2
3
1
2
3
Start
TMR/X2/1 sec
TMR/X3/1 sec
(Initialize)
If Reset Then F/Chart_1;X1
PLight_1:=False
PLight_2:=False
(ON1_OFF2)
PLight_1;
(OFF1_ON2)
PLight_2;
Chart 1
Stand–Alone Action
Figure 10-69. Implementation of the process in Example 10-6 using a stand-alone action.
The implementation of the previous example could have been done many
different ways using Boolean actions. For instance, instead of using the
/PLight_2 and /PLight_1 instructions in steps 10 and 11, the program could
have specified only the ON conditions of PLight_1 and PLight_2 in steps
10 and 11, respectively, letting the transition trigger turn OFF the variables.
A stand-alone action could also have been programmed to detect the reset
function and send the program back to step 1 in the main chart. Figure 10-69