MC&PLC Module-4
MC&PLC Module-4
Instructions
PLC Programming
• When using a PLC, it’s important to design and
implement concepts depending on particular
case.
• A PLC program consists of a set of instructions
either in textual or graphical form, which
represents the logic that governs the process the
PLC is controlling.
PLC Programming
• Classifications of PLC programming languages
I. Textual Language
i. Instruction list
ii. Structured text
II. Graphical Form
i. Ladder Diagrams (LD) (i.e. Ladder Logic)
ii. Function Block Diagram (FBD)
iii. Sequential Function Chart (SFC)
Due to the simple and convenient features, graphical representation
are much preferred to textual languages.
PLC Programming
PLC Programming
I. (i) Instruction list
• Instruction List (IL) is another type of PLC programming
language.
• The ladder logic truth table for a normally open (NO) contact
which denotes event ‘A’ is shown below
Ladder diagram (logic) programming
Ø You will have to hold your finger on the button to keep the
output activated. It would not be very convenient for the
operator to hold down the button all the time.
• This is the address of the specific bit, this instruction will examine.
In this case, a digital input. It could also just be an internal memory
bit or even an output.
• Examine if closed is also known as normally
open. It works basically the same way as a
normally open contact in en electrical circuit.
Output Coil
• The instruction itself even has a place in the PLC memory. What the
PLC will put there is the result of the instruction. To see what the
PLC uses that result for, we have to look at the next instruction:
Idle
Scan cycle
Resolve
logic
PLC Instructions
• Bit Instruction
• Timer/Counter Instruction
• Logical Instruction
• Compare Instruction
• Move Instruction
• Math Instruction
• Program control Instruction
Bit Instruction
Mnemonic Name Symbol Description
Operation:
Operation:
Common uses:
• Internal programming
Output
Operation:
Common uses:
• Motor Contactors
• Actuators
• Indication lamps
• Warning sirens
• Internal programming
Timer Delay On
Operation:
• When the pre-set time has been reached the output turns ON.
• If the input condition goes FALSE, at any stage, the timer stops and
Common Uses:
• Run on time Delay
Interpret the control logic of following
ladder program
Interpretation
• L1 is true when Start or L1 contact is true.
• L2 is true when L1 or L2 contact is true.
Name the elements a, b, c and d shown in the ladder
diagram and specify the condition to make c true
• a – Examine if closed (XIC) or Normally open contact
• c – Output
• d - Rung
Three switches are connected to the inputs of the PLC.
A lamp is connected at the output. Predict the output
o f t he fo l lo wi ng l a d de r p ro g ra m fo r t he gi ve n
conditions
ON
OFF
OFF OFF
ON
PLC Programming
Ladder diagram (logic) programming
• The ladder logic truth table for a normally open (NO) contact
which denotes event ‘A’ is shown below
Ladder diagram (logic) programming
staircase wiring-2
Induction motor controls as in direct
on Line (DOL) starter
ON Timer circuit
Star-Delta starter
• Inputs
ØI:0/0 – Overload
ØI:0/1 - Stop
ØI:0/2 - Start
• Outputs
ØO:0/0 – Mains
ØO:0/1 - Delta
ØO:0/2 - Star
Star-Delta starter
• At the starting, mains contactor and star contactor are closed.