Chapter 3 - Basics of PLC Programming
Chapter 3 - Basics of PLC Programming
3.6
0 Modes Of Operation
3.1. Program Scan
▪ During each program scan cycle, the processor reads all the inputs, takes
these values, and energizes or de-energizes the outputs according to the
user program.
3.1. Program Scan
▪ The time it takes to complete a scan cycle is a measure of how fast the
controller can react to changes in inputs.
▪ If a controller must react to an input
signal that changes states twice during
the scan time, it is possible that the PLC
will never be able to detect this change.
▪ The controller evaluates ladder logic rung instructions based on the rung
condition preceding the instruction (rung-condition-in).
3.1. Program Scan
3.6
0 Modes Of Operation
3.2. PLC Programming Languages
▪ Ladder diagram language is the most used PLC language and is designed
to mimic hardwired relay logic.
Ladder diagram
Equivalent instruction
Hardwired relay control circuit
list program
3.2. PLC Programming Languages
Ladder diagram
3.6
0 Modes Of Operation
3.3. Relay Type Instructions
As with any other input the memory bit is set to 1 or 0 depending on the status of the input.
A 1 corresponds to a true status or on condition.
The instruction is associated with a memory bit that energizes the output
when set to 1 and de-energizes the output when reset to 0.
3.3. Relay Type Instructions
▪ Simulated operation of the field input device and the PLC bit.
3.3. Relay Type Instructions
3.6
0 Modes Of Operation
3.4. Branch Instructions
It is possible, however,
to program a logically
equivalent branching
condition.
3.4. Branch Instructions
Reprogrammed to eliminate
vertical contact.
3.4. Branch Instructions
Reprogrammed circuit.
Lecture 3’s sequence
3.1 Program Scan
3.6
0 Modes Of Operation
3.5. Internal Relay Instructions
▪ An internal output
does not directly
control an output
field device.
The advantage of using internal outputs is that there are many situations in
which an output instruction is required in a program but no physical connection
to a field device is needed.
3.5. Internal Relay Instructions
▪ Internal relay used for a program that requires more series contacts than
the rung allows.
3.6
0 Modes Of Operation
3.6. Modes Of Operation