406
SECTION
3
PLC
Programming
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
10
The IEC 1131 Standard and
Programming Language
Figure 10-41 illustrates a simple start/stop hardwired motor circuit and its
timing diagram. When the momentary normally open start push button is
pressed and the normally closed stop push button is not pressed, the motor will
be ON and its motor contacts M1-1 will seal the start push button, meaning
that the motor will remain ON until the stop PB is pressed. When the stop PB
is pressed, the circuit will lose continuity and the motor will turn OFF.
Logically speaking, as shown in the timing diagram in Figure 10-41, the
motor will be ON if both the start PB (wired as normally open) and the stop
PB (wired as normally closed) are ON (1), in other words, start is ON
(Start=1) and stop is NOT OFF (Stop=1). Therefore, the logic expression that
will turn M1 ON is M1=Start AND Stop.
Figure 10-41. A hardwired start/stop motor circuit and its timing diagram.
L1 L2
Stop PB
Start PB
M1-1
M1
1
0
1
0
1
0
Stop
Start
M1-1
1
0
Motor
Figure 10-42 illustrates the SFC implementation of the hardwired circuit in
Figure 10-41, along with its timing diagram. In the SFC, the logic expression
that triggers transition 1 (Start_AND_Stop) is the same logic expression that
turns motor M1 ON in the hardwired circuit, but without interlock. The
program does not require interlocking between the push buttons because it
does not need to remember that the start PB was pressed to keep the motor
ON. Once the momentary start PB is pressed, step 1 (no action) transitions
to step 2, where the action turns ON the motor and keeps it in that state. The
program will turn the motor OFF as soon as transition Y2 is triggered,
meaning that the NOT_Stop condition occurred. As soon as the stop push
button is pressed (see the timing diagram in Figure 10-42), transition Y2 will
be satisfied and the control token will be transferred from step X2 (motor ON)
to step X1, turning off the action in X2 and, consequently, motor M1.
This logic expression indicates that M1 will be ON if the start PB is pushed
and the stop PB is not pushed (normally closed). However, the logic
expression does not provide latching capabilities, meaning that if the start PB
is pushed once and released, the motor M1 will not stay ON. As we will
explain shortly, in the SFC implementation of this M1 logic expression, the
latching or interlocking of the M1 logic expression is not required.