PLC
PLC
Elements Addresses
Counters C0 C255
Sequential Control
S0.0 ~ S31.7
Relays
Positive/ Negative
256
Transition
Jump/Label 0 ~ 255
Call/ Subroutine 0 ~ 63
www.nfiautomation.org
System Status Bits
SPECIAL
DESCRIPTIONS
MEMORY BIT
SM 0.0 Always ON
SM 0.1 First SCAN ON- On for only one scan cycle
SM 0.3 RUN Power Up – ON for 1 scan cycle when PLC goes to RUN mode
SM 0.4 60s Clock Pulse – ON for 30 seconds & OFF for 30 seconds
SM 0.5 1s Clock Pulse – ON for 0.5 second & OFF for 0.5 second
SM 0.6 Clock Scan – ON for 1st Scan & Off for 2nd Scan & so on…
Mode Switch – Indicate Current position of Mode Switch
SM 0.7
OFF = TERM Position ON = RUN Position
SM 4.7 Force ON – Turn ON when any memory location is Forced
SMW22 Word provide SCAN time of Last scan
SMW24 Word provide min. SCAN time recorded since entering RUN Mode
Word provide max. SCAN time recorded since entering RUN Mode
SMW26
Range of Bits
Type Range (Unsigned)
Byte, B 0 ~ 255; 0 ~ FF
0 ~ 4294967295
Double Word, D
0 ~ FFFFFFFF
PLC software view
Symbols in parallel
OUTPUT COIL
OUTPUT IMMEDIATE:
RESET command
POSITIVE transition:
NEGATIVE transition:
RETENTIVE timer:
UP Counter
MOVE Command:
Equal to command
When the motor is switched off there should be delay of 10 sec before the
pump is off.
Exercise 2
Device a circuit in which
When I0.0 is pressed once– Q0.0 gets ON, Q0.1,Q0,2 get off,
When I0.1 is pressed again – Q0.1 gets ON and Q0.0, Q0.2 get OFF
When I0.1 is pressed again – Q0.2 gets ON and Q0.0, Q0.1 get OFF
When pressed again, Cycle should repeat
Exercise 3
Device a circuit in which
When I0.0 is pressed – Q0.0 gets ON, Q0.1,Q0,2 get off,
When I0.1 is pressed again – Q0.1 gets ON and Q0.0, Q0.2 get OFF
When I0.1 is pressed again – Q0.2 gets ON and Q0.0, Q0.1 get OFF
Exercise 4
Device a circuit in which Q0.0 is on only when I0.0 is pressed in 10
sec. just after start of the machine(I0.1). Otherwise if I0.0 is pressed
after 10 sec. Nothing should happen.
Exercise 5
Device a circuit, in which if I0.0 is pressed once Q0.0 should ON and
when I0.0 is pressed again Q0.0 should turn off.
Exercise 6
Use one push button (I0.0) turn ON Q0.0 in following sequence:
Q0.0 ON for 2 sec. then OFF for 2 sec. then ON for 3 sec. then OFF
for 3 sec then ON for 4 sec. then continuously off.
Exercise 7
When you press I0.0, Q0.0 and Q0.1 should blink with a delay of 2
sec continuously and when you press I0.1 , Q0.0 and Q0.1 should
blink with a delay of 3 sec.
Exercise 8
Start a bulb as soon as PLC run and stop the bulb as soon as PLC
stops.
Exercise 9
I have a constant 10 in VW0
Multiply it with 100
Add 45 to it
Subtract 14 from it
Finally store it in VW10
Exercise 10
In dangerous processes it is common to use two palm buttons
that require a operator to use both hands to start a process (this
keeps hands out of presses, etc.).
To develop this there are two inputs (I0.0, I0.1) that must be turned
on within 3s of each other before a machine (Q0.0) turned ON.
Thanks
www.nfiautomation.org
nfi