22EEE1662 Module-4
22EEE1662 Module-4
Objectives:
Students will gain an understanding of the fundamentals of
Mechanical Timing Relays.
Students will learn PLC timers’ instructions
Students will learn about TON Timer.
Lecture Content:
1. Initial State:
o With switch S1 open, the timer relay (TD) coil is not energized.
As a result, the TD1 contacts remain open, preventing current
from reaching light L1, so L1 stays off.
1. Initial State:
o With switch S1 open, the timer relay (TD) coil is de-energized.
In this state, the TD1 contacts are closed, allowing current to
flow to light L1, so L1 is on.
1. Initial State:
o With switch S1 open, the timer relay (TD) coil is de-energized,
which keeps the TD1 contacts open. As a result, light L1
remains off.
1. Initial State:
o With switch S1 open, the timer relay (TD) coil is de-energized,
keeping the TD1 contacts in their normal closed position. This
allows current to flow through the circuit, turning light L1 on.
2. Energizing the Timer:
o When S1 is closed, the TD coil becomes energized, causing the
TD1 contacts to open instantly. This breaks the circuit,
turning light L1 off.
3. De-energizing the Timer:
o When S1 is opened again, the TD coil is de-energized, and the
off-delay timer begins its countdown. Despite the coil being de-
energized, the TD1 contacts remain open for the duration of
the delay period, keeping L1 off.
4. After the Delay:
o Once the 10-second time-delay period has elapsed, the TD1
contacts close, completing the circuit and turning light L1
back on.
This NCTC configuration ensures that L1 remains off for a specific period
after S1 is opened, and then it automatically turns back on after the
delay.
o The TON timer begins counting time intervals when its instruction is
activated (when the condition is true). After the preset time has
elapsed, the timer completes its action, typically closing or opening a
contact.
4. Reset (RES):
o The RES instruction is used specifically with retentive timers to reset
their accumulated value back to zero. This is crucial when you need
to restart the timing process from the beginning.
Time Base:
o The time base is the unit of time that the timer uses to measure
events. Depending on the PLC model and manufacturer, time base
values can range from as small as 1 millisecond (0.001 seconds) to 1
second. The time base determines the precision and range of the
timer.
Preset Value:
o The preset value is the target duration for the timing operation. It is
calculated by multiplying the preset value by the time base. For
instance, if a timer has a preset value of 100 and a time base of 0.1
seconds, the total timing interval would be:
Accumulated Value:
o The accumulated value tracks the amount of time that has passed
since the timer started. It represents how many intervals of the time
base have occurred since the timer instruction was initiated. This
value is crucial for understanding the progress of the timing
operation and is particularly important in retentive timers.
In the Allen-Bradley SLC 500 PLC system, timer files are used to manage and
store the settings for various timers. Here's a breakdown of the timer file
addressing based on your description:
Timer File 4: This is the file where the timers are stored. Each timer in
this file consists of three 16-bit words, known collectively as a timer
element. There can be up to 256 timer elements in this file.
Timer Element Number 2 (T4:2): Refers to the second timer element in
Timer File 4.
o T4:2/DN: Address for the Done bit of Timer 2. This bit is set when
the timer's preset time has elapsed.
o T4:2/TT: Address for the Timer Timing bit of Timer 2. This bit is set
while the timer is counting.
o T4:2/EN: Address for the Enable bit of Timer 2. This bit indicates
whether the timer is currently enabled.
In the context of the Allen-Bradley SLC 500 PLC timer file, the control word for
each timer includes three key control bits:
1. Initial Condition:
o When the input condition (e.g., a rung in ladder logic) becomes true,
the timer begins to count.
2. Counting:
o The timer starts accumulating time, and the Timer-Timing (TT) bit is
set to true.
3. Completion:
o If the input condition remains true for the entire preset time, the
timer’s accumulated value will reach or exceed the preset value.
o The Done (DN) bit is set to true, indicating that the delay has elapsed.
o The Timer-Timing (TT) bit remains true during the counting period
and then becomes false once the timer is done.
4. Reset:
o If the input condition becomes false before the timer’s accumulated
value reaches the preset value, the timer will reset, and the
accumulated value will be cleared.
The figure shows the actual program view of a timer, which includes a Done
bit (DN) and an Enable bit (EN) as outputs. The second figure illustrates the block
diagram and timing diagram of the operation.
• Initially, when the input is off, the timer remains in the off state, with the
Enable bit, Done bit, and Timer Timing bit all turned off (EN = 0, DN = 0, TT =
0).
• When the input is turned on, the Timer Enable bit is activated (EN = 1),
and the timer starts counting. However, the Done bit remains in the off state
(TT = 1, DN = 0).
• When The timed output becomes true sometime after the timer rung
becomes true EN=1, TT=0 & DN=1 hence, the timer is said to have an on-delay.
• The length of the time delay can be adjusted by changing the preset
value.
• In addition, some PLCs allow the option of changing the time base, or
resolution, of the timer. As the time base you select becomes smaller, the
accuracy of the timer increases.
timer process – Example 1 Suppose we have one input A and three output B,C
and D connected to Enable bit EN ,timer timing bit TT and Done bit DN
respectively .as figure show
After analyzing these three cases, we can conclude that when input A is turned
on, the final output D, which is connected to the done bit, will be activated after
10 seconds. This behavior indicates that the timer has an on-delay because it
introduces a delay before turning on the output.
Example 2 – Suppose we have 2 switch 1 for start and 1 for stop, and 3 motors
m1 m2 and m3 , our task is when we press the stat switch m1 will on,after 10
sec m2 will on and after 10 sec m3 will on.
Means 30 sec after pressing the start switch all the 3 motors will turn on , and
when I press the stop button the all will turn off .
Lets take another example
Example 3 – Suppose we have a start switch (green) and a stop switch (red).
When the green button is pressed, the horn will sound for 20 seconds. After 20
seconds, the horn will stop, and the motor will turn on. We have to prepare ladder
logic for that.
Summary:
References:
Objectives:
Students will gain an understanding of the PLC off Delay timer.
Students will learn in-depth operation of PLC off Delay timer.
Students will learn various examples to implement TOF timer process
on ladder diagram.
Lecture Content:
This function is commonly used in situations where you want to ensure that
an output remains active for a specified time after the controlling condition
has been removed, such as to allow a machine to run for a few seconds after
a stop command is issued.
The operation of a PLC Off-Delay Timer (TOF) circuit can be understood through
the following steps:
When the input signal is off, the timer remains inactive. At this point:
The TOF timer begins its timing sequence when the input signal goes from on to
off, or from true to false:
Example 1 Suppose we have one input A and three output B,C and D connected
to Enable bit EN ,timer timing bit TT and Done bit DN respectively as shown in
figure
Example 2 – Suppose we have two motors, M1 and M2, with green and red
switches to turn them on and off. When the green button is pressed, both motors
will turn on. When the red button is pressed, M1 will turn off after 10 seconds,
and M2 will turn off 10 seconds later.
Example 3 – Suppose we have three motors, M1 M2 and M3, with green and
red switches to turn them on and off. When the green button is pressed, both
motors will turn on. When the red button is pressed, M1 will turn, off after 10
seconds, M2 will turn off and after 10 sec M3 will turn off.
Summary:
References:
Objectives:
Students will gain an understanding of the PLC Retentive timer
Instruction.
Students will learn in-depth operation and applications of PLC
Retentive timer
Students will learn various examples on how to implement PLC
Retentive timer process on ladder diagram.
Lecture Content:
1. Time Base:
The time base defines the unit of time measurement for the timer.
Common time bases include milliseconds, seconds, or minutes. For
instance, a time base of 1 second means the timer will increment its
count once per second.
1. Start Counting:
When the rung conditions leading to the retentive timer are met (true), the
timer begins incrementing its accumulated value based on the time base.
The enable bit (EN) and timer timing bit (TT) will be true during this
period.
2. Pause or Stop:
If the rung conditions go false before the accumulated value reaches the
preset value, the timer stops counting but retains the current
accumulated value. The timer timing bit (TT) turns off, but the
accumulated value remains stored.
3. Resume Counting:
When the rung conditions become true again, the timer resumes counting
from the stored accumulated value rather than starting from zero. This
allows the timer to pick up where it left off.
4. Completion:
Once the accumulated value equals the preset value, the done bit (DN) is
set to true, indicating that the timer has completed its cycle.
5. Resetting:
To reset the accumulated value of a retentive timer to zero, a separate
reset instruction must be used. When this reset instruction is activated,
the accumulated value resets to zero, and the done bit (DN) is cleared.
For example:
Consider a conveyor belt system that should run for a total of 30 seconds. The
retentive timer will accumulate time every time the conveyor is running. If the
conveyor stops at 15 seconds, the retentive timer holds this value. When the
conveyor restarts, the timer will continue from 15 seconds until it reaches the 30-
second preset value.
• The timer will start to time when time pushbutton PB1 is closed.
• If the pushbutton is closed for 3 s and then opened for 3 s, the timer
accumulated value will remain at 3 s.
• When the time pushbutton is closed again, the timer picks up the time at
3 s and continues timing
• When the accumulated value (9) equals the preset value (9), the timer done
bit T4:2/DN is set to 1 and the pilot light output PL is switched on.
Figure shows a timing chart for the retentive on delay timer program. The timing
operation can be summarized as follows:
• When the timing rung is true (PB1 closed), the timer will commence timing.
• If the timing rung goes false, the timer will stop timing but will recommence
timing for the stored accumulated value each time the rung goes true.
• When the reset PB2 is closed, the T4:2/DN bit is reset to 0 and turns the
pilot light output off. The accumulated value is also reset and held at zero until
the reset pushbutton is opened
When start switch is press output on for 5 sec then off for 5 sec , this process are
continue until we press stop button. Means we have to make diwali light which
blinks in 5 sec.
Example 3 –
There is a machine with a large steel shaft supported by bearings. This shaft is
coupled to a large electric motor. The bearings need lubrication, which is supplied
by an oil pump driven by a small electric motor.
References:
Objectives:
Students will learn about the PLC Counter and its types
Students will learn in-depth Counter Implementation in PLC and Up
Counter operation
Students will learn Allen-Bradley SLC 500 Counter Structure.
Lecture Content:
Mechanical Counters
Operation: Each time the actuating lever is moved, the counter increases
its count by one.
Reset Mechanism: The counter can be reset to zero manually using a
pushbutton. This is typically done at the start of a new process or batch.
Figure of a mechanical counter showing the actuating lever and reset
pushbutton.
Electronic Counters
1. Count Up: Adds to the total count with each input pulse. This type of
counter is most commonly used in industrial applications, such as
counting products on a production line or recording the number of
operations in a process.
2. Count Down: Subtracts from the total count with each input pulse. Down-
counters are useful when you need to track how many items remain before
a certain event occurs, such as the number of products left to process
before a machine needs to be stopped or a batch is complete.
Types of Counters
1. Up Counter: Increments its count value with each input pulse. It is used
in applications where you need to count up to a certain value, like counting
products on a conveyor belt.
2. Down Counter: Decrements its count value with each input pulse. It's
useful in scenarios where you're counting down from a set value, such as
tracking how many items remain to complete a batch.
3. Up/Down Counter: Capable of both incrementing and decrementing based
on different inputs. It is used in more complex applications where both
increase and decrease in counts are required.
Preset Value: The target counts the counter is supposed to reach. Once
the counter reaches this value, it triggers an output or an event.
Current Count: The current value of the counter, which changes as the
input pulses are received.
Reset: Resets the counter’s value to zero or another specified value, often
used to restart the counting process.
Applications of Counters
In a PLC, counters are usually programmed using ladder logic or other IEC
61131-3 standard languages. The counter instruction typically includes inputs
for counting pulses, resetting the counter, and setting the preset value. PLCs
often include different counter instructions like CTU (Count Up), CTD (Count
Down), and CTUD (Count Up/Down), each tailored to specific counting
requirements.
In ladder logic, counters are often represented using two main formats: Coil
Format and Block Format. The Coil Format is a simple and commonly used
method to represent counters, especially in basic applications.
Coil Format
In the Coil Format, the counter is depicted as a coil within a ladder diagram. The
coil is energized each time a specific condition in the rung transitions from false
to true. This transition triggers the counter to increment (in the case of an up-
counter) or decrement (in the case of a down-counter).
Operation: When the rung condition changes from false to true (typically
when a switch is turned on or a sensor is activated), the counter coil is
energized, and the count value increases by one.
Reset: The counter can be reset to zero using a separate reset instruction,
often represented as a normally open contact that, when closed, clears the
counter’s accumulated value.
The Coil Format is particularly useful in simple applications where the counting
operation is straightforward and does not require complex logic. It's easy to
implement and understand, making it ideal for beginners or for use in systems
where counting is only one part of a larger automation process.
This format is a foundational aspect of PLC programming, especially for tasks
that involve basic event counting, such as tracking the number of products on a
conveyor belt or counting the number of machine cycles.
Block Format
In ladder logic, the Block Format provides a more detailed and comprehensive
representation of a counter. This format is particularly useful in applications
where you need to manage and monitor multiple aspects of the counting process,
such as the type of counter, the preset value, and the accumulated value.
Block Format
The Block Format represents the counter as a block in the ladder diagram,
containing specific fields that display important details about the counter’s
operation. This format is more informative compared to the Coil Format and is
often used in more complex PLC programs.
2. Preset Value: The target count that the counter aims to reach. Once the
accumulated count equals this preset value, the counter triggers an output
or initiates an event.
Operation: The block shows the type of counter (e.g., CTU for Count Up),
along with the preset value and the accumulated value. Each time the rung
condition transitions from false to true, the accumulated value increases
by one.
Reset: Similar to the Coil Format, the counter can be reset using a reset
input, which sets the accumulated value back to zero.
Use Cases
The Block Format is ideal for applications that require detailed monitoring and
control over the counting process. It is commonly used in industrial automation
systems where precision is critical, such as in batching processes, inventory
management, or complex sequencing operations. The clear display of both preset
and accumulated values allows operators to easily track the progress of the
counting operation and make adjustments as needed.
This format is essential for scenarios where multiple counters are used, or where
counters need to interact with other parts of the automation system, such as
timers, sensors, or actuators.
Coil-Formatted Up-Counters
Operation
Triggering the Count: When the rung condition changes from false to true,
the up-counter increments its count by 1.
Energizing the Output: Once the accumulated count equals the preset
value, the counter output is energized, meaning the output coil is set to 1.
This typically triggers a subsequent action in the control process.
Resetting a counter is crucial to start the count anew or to prepare the system
for a new batch or process cycle.
Reset Instruction
Counter Reset: The reset instruction is used to bring the count back to
zero for up-counters or to a preset value for down-counters.
Integrated vs. Separate Reset: Some PLC systems include the reset
function within the counter instruction, while others require a separate
reset instruction.
Example: In a ladder diagram, you might see a reset instruction (CTR) used
alongside the up-counter (CTU). The reset instruction activates when its
rung condition is true, clearing the accumulated count.
Block-Formatted Counters
Block-Formatted Counters provide a detailed and structured representation
of counting operations, offering more information than the coil format.
Operation
Counter Type and Values: The block format clearly indicates whether the
counter is an up-counter (CTU) or down-counter (CTD) and displays both
the preset and accumulated values.
Input Conditions:
o Count: An input condition that triggers the counter to increment (for
an up-counter) or decrement (for a down-counter).
o Reset: Another input condition that resets the counter to its initial
state when true.
Leading Edge Trigger: Counters operate on the leading edge of the input
signal, meaning they count when the input signal transitions from off to on
(false to true).
Retentive Counters
Power Failure Handling: Most PLC counters are retentive, meaning the
accumulated count is preserved even after a power shutdown. Upon power
restoration, the counter resumes from where it left off unless the reset
condition is active.
o Ladder Logic Rung: The signal from the input device is integrated
into a ladder logic rung, where it serves as the condition for the
counter instruction. The counter is typically represented in either
Coil Format or Block Format.
o Transition Detection: The counter operates on the principle of
detecting a transition from a false condition to a true condition in the
rung. This transition triggers the counter to increment (in the case of
an up-counter) or decrement (in the case of a down-counter).
o Preset Value: The preset value is the target count that you want to
reach. Once the accumulated count matches the preset value, the
PLC performs a specific action, such as energizing an output coil or
starting another process.
o Accumulated Value: The accumulated value is the current count
stored in the PLC’s memory. It updates with each event detected by
the counter.
5. Output Action
In the Allen-Bradley SLC 500 series PLC, counters are managed within a
dedicated file known as File 5. Each counter within this file is represented by a
counter element consisting of three 16-bit data words. These words are essential
for the counter's operation, storing crucial information about the counter's status
and behavior.
Each counter element in File 5 includes the following three data words:
1. Control Word:
o Purpose: The control word contains the status bits that indicate the
current state of the counter, such as whether the counter is enabled,
whether it has reached its preset value, or whether it has been reset.
2. Preset Word:
o Purpose: The preset word defines the target count value that the
counter aims to reach. Once the accumulated value matches this
preset value, the counter triggers the Done Bit (DN) in the control
word, which can be used to initiate subsequent actions in the control
logic.
o Preset Value: The value stored in this word is set by the programmer
and can be adjusted depending on the requirements of the process
being controlled.
3. Accumulated Word:
All three data words share the same base address, which is the address of the
counter itself. For example, if a counter is assigned the base address C5:1, the
control word, preset word, and accumulated word for that counter would be
addressed as follows:
Control Word: C5:1.CW
Preset Word: C5:1.PRE
Accumulated Word: C5:1.ACC
This structure allows for easy reference and manipulation of the counter's data
within the PLC program.
Example
The counter elements in the Allen-Bradley SLC 500 series are crucial components
of the PLC's counting operations. By organizing counters into three distinct data
words (control, preset, and accumulated), the SLC 500 provides a robust and
flexible system for managing counting tasks in industrial automation.
Understanding how these data words interact is essential for programming and
troubleshooting counters within this PLC system.
Example -1 The operation of the program can be follow the following steps:
• Operating pushbutton PB1 provides the off- to-on transition pulses that
are counted by the counter.
• After 7 pulses, or counts, when the preset counter value equals the
accumulated counter value, output DN is energized.
References:
Lecture Content:
Avoids Multiple Triggers: Even if the input condition remains true or false
for several scan cycles, the one-shot instruction ensures that the
associated output or action is only triggered once per transition. This
helps prevent unintended multiple activations.
Types of One-Shots:
Rising Edge One-Shot (ONS): Activates when an input changes from a low
state (0) to a high state (1).
• Falling Edge One-Shot (OFFS): Activates when an input changes from a
high state (1) to a low state (0).
2. Duration:
3. Resetting:
Once the output of the one-shot instruction turns off after one scan cycle, it
stays off until the input signal returns to the off state (0). When the input
signal subsequently transitions back to the on state (1) again, the one-shot
can be triggered once more. This cycle ensures that the one-shot only
responds to fresh rising edges and does not retrigger unless the input
condition has gone through another complete off-to-on transition.
For inputs that are activated briefly, like a pushbutton press, a one-shot
instruction ensures that the action is registered only once, even if the button
is held down longer. The one-shot triggers on the first transition from off to
on, activating its output for a single scan cycle, and then deactivates
regardless of the button’s continued state. This feature is particularly useful
in preventing multiple outputs or commands from being sent due to the
button remaining pressed. It is ideal in scenarios where each press should
correspond to a single action, such as starting a machine or advancing a step
in a sequence.
When dealing with signals that remain on for a period of time, the one-shot
instruction ensures that only the initial transition to the "on" state causes
an action. Once the one-shot triggers, it will not activate again until the input
signal returns to "off" and then transitions back to "on" again. This
functionality is crucial in applications where a sustained signal should not
cause repeated actions. For example, in a conveyor belt system, a one-shot
can be used to trigger an alarm or notification when a box arrives at a
particular point, ensuring the alarm only sounds once per box, even if the
sensor remains blocked for some time.
Case 2 –
Input - I:0/0 = 1
Output - B3:0/0 =1 for fraction of second because ONS bit on for fraction of
second.
To observe this fraction - we connect one CTU with binary bit and mu counter
increase by 1 when it gets supply by binary bit
Case 3 –
When this switching process happened 5 times, means when switch on and off
for 5 times counter count this fraction output signal and after this preset =
accumulator that’s why done bit on
So, we can say that ONS is input instruction, and the connected output to this
ONS will be on for a fraction of second.
Case 1
Input I:0/0 = 0
B3:0/1 = 0
C5:0/DN=0
Case 2
Input I:0/0 = 1
Case 3
Input I:0/0 = 1
Output
C5:0/DN=1 So O:0/0= 1
Case 4
I:0/1 = 1
Counter accumulator reset = 0
Example 3 related to OSF – Output instruction
Case 1
Input I:0/0 = 0
B3:0/1 = 0 C5:0/DN=0
Case 2
Input I:0/0 = 1
Case 3
Input I:0/0 = 1
When 5 times repeat this process B3:0/1 = 1 for fraction of sec. Accumulator
increase by 1 and equal to preset value = 5, when switch status changes from
ON to OFF
Output
C5:0/DN=1 So O:0/0= 1
Case 4
I:0/1 = 1
Counter accumulator reset = 0
Summary
References:
Lecture Content:
o The preset value is the starting count that the down counter uses.
It represents the maximum count value, from which the counter
will decrement.
2. Accumulator (ACC):
o The CD bit is the input trigger for the counter. It represents the
condition or signal that causes the counter to decrement.
The operation of a down counter in PLC programming can be broken down into
several key steps:
1. Initialization:
2. Counting Down:
3. Completion:
o At this point, any programmed actions that are linked to the DN bit
will be executed. This could involve turning off a motor, sending a
notification, or moving to the next stage in an automated process.
Down counters are versatile tools in industrial automation and are used in
various applications, such as:
1. Inventory Management:
2. Batch Processing:
3. Event Sequencing:
4. Quality Control:
5. Safety Systems:
o Down counters can also play a role in safety systems. For instance,
they can be used to ensure a machine completes a certain number
of operations before a maintenance check is required.
Example 1 -
Pre set = 0
Accumulator = 5
Case 1
when changed it to running mode.
I:0/0= 0 then also Done bit is high that’s why output is also high
C5:0/DN =1
O:0/0 = 1
Case 2
I:0/0= 1 then
B3:0/0 = 1 and also Done bit is high that’s why output is also high
C5:0/DN =1
O:0/0 = 1
Counter start counting in decreasing order as you can see in the diagram
accumulator value decrease by 1 and equal to 4
Case 3
When this on and off process of input switch is repeating 5 times accumulator
goes to 0 and accumulator = pre set value
then also Done bit is high that’s why output is also high
C5:0/DN =1
O:0/0 = 1
Case 4
When accumulator value less then pre set value, then only done bit goes low
Accumulator = -1
Pre set = 0
C5:0/DN =0
O:0/0 = 0
Major conclusion about down counter is –
When accumulator = pre set value the also my done bit is high, but in other
cases like TON TOFF and CTU all the time this type of condition is final
condition when ACC= pre set
This is main drawback of down counter because done bit operate when
accumulator is less then pre set value
Example 2 -
Case 1
I:0/0 = 0
I:0/1 = 0
I:0/2 = 0
C5:0 up counter and down counter
Accumulator = 0
Pre set = 5
C5:0/CU =0
C5:0/CD =0
C5:0/DN =0
Case 2
I:0/0 = 1
I:0/1 = 0
I:0/2 = 0
Accumulator = 1
Pre set = 5
C5:0/CU =1
O:0/0 = 1
C5:0/CD =0
C5:0/DN =0
Case 3
I:0/0 = 1
I:0/1 = 1
I:0/2 = 0
Again Accumulator = 0
Pre set = 5
C5:0/CU =1
O:0/0 = 1
C5:0/CD =1
O:0/1 = 1
C5:0/DN =0
So, up counter increase accumulator by 1, when switch I:0/0 goes on and off ,
And down counter decrease accumulator by 1, when switch I:0/1 goes off and
on
Since, in up counter we get done bit high, when accumulator value is equal to
pre set value. But in case off down counter, we get done bit high when
accumulator is greater than pre set value because in down counter, counter
counts in decreasing order and done bit goes low when accumulator is less then
pre set value.
Or in other words, it means in case of up counter we set pre set value and in
case of down counter we set accumulator value for smooth counter operation.
Case 4
Then Accumulator = 5
Pre set = 5
C5:0/CU =1 O:0/0 = 1
C5:0/CD =1 O:0/1 = 1
C5:0/DN =1 O:0/2 = 1
Case 5
I:0/0 = 0
I:0/1 = 0
I:0/2 = 1
Accumulator = 0
Pre set = 5
C5:0/CU =0
O:0/0 = 0
C5:0/CD =0
O:0/1 = 0
C5:0/DN =0
O:0/2 = 0
Example 3 – related to NEQ – not equal to
Case 1
NEQ output is high when source A and B value are not equal
Equal value output zero
Case 2
NEQ output is high because source A and B value are not equal
Example 4 – related to LES and GRT
Case 1
LES and GRT output are low because source A and B value are equal
Case 2
LES output is High and GRT output is Low because source A value is low as
compare to source B value .
Example 5 – related to LEQ and GEQ
Case 1
LEQ and GEQ output is high because source A and B value are equal
Case 2
LEQ output is Low and GEQ output is high because source A value is high as
compare to source B value .
Summary
Students will learn in -depth about Star –Delta starter PLC program.
Students will learn why Induction Motors is the Preferred Choice in
Industrial Applications.
Students will learn examples related to operation of Star –Delta
starter in PLC via. Ladder diagram
Lecture Content:
Induction motors are one of the most widely used types of electric motors in
industrial settings. Their popularity stems from several advantageous
characteristics that make them particularly suitable for a wide range of
industrial applications. Let's explore the reasons why induction motors are
favored over other types of motors:
Induction motors have a simple and rugged design, which contributes to their
widespread use. Unlike other types of motors that have brushes and
commutators, induction motors do not have these components, making them
less susceptible to wear and tear. The absence of these parts reduces the need
for frequent maintenance, resulting in lower maintenance costs and longer
operational life.
Single phase Induction motor
3. Cost-Effectiveness
Induction motors are generally more cost-effective than other motor types, both
in terms of initial cost and operational expenses. Their straightforward design
makes them less expensive to manufacture, and their high efficiency means
they consume less electricity. Over time, the energy savings and low
maintenance requirements contribute to a lower total cost of ownership.
Three phase Induction motor
Induction motors are straightforward to operate and control. They can easily be
started and stopped using simple control systems, and their speed can be
adjusted using variable frequency drives (VFDs). This ease of control makes
them suitable for applications where precise speed regulation is not critical but
robustness and reliability are.
One of the advantages of induction motors is their relatively low starting current
compared to other motor types. This characteristic reduces the stress on
electrical systems and minimizes the risk of electrical faults during startup. For
industries with sensitive electrical infrastructure, this feature is particularly
beneficial.
Induction motors are designed to operate directly with the standard AC power
supplies available in industrial settings. This compatibility eliminates the need
for complex power conversion equipment, simplifying the electrical design of
industrial facilities.
Induction motors are considered safer compared to other motor types, especially
in environments with flammable or explosive materials. The absence of brushes
and commutators means there are no sparks that could ignite such materials,
making induction motors a safer choice in these applications.
Machine Tools: They are used in lathes, milling machines, and drills
where consistent speed and torque are required.
A star-delta starter is a type of motor starter used to reduce the inrush current
that occurs when an induction motor starts. This method is commonly used in
industrial settings where it is crucial to limit the initial high current draw
associated with starting large motors. The star-delta starter achieves this by
initially connecting the motor windings in a star (Y) configuration and then
switching to a delta (Δ) configuration once the motor reaches a certain speed.
The sudden surge in current caused by DOL starting places a heavy load on the
electrical distribution system. This can lead to electrical stress, characterized
by overheating of conductors, voltage dips, and potential tripping of circuit
breakers or fuses. Electrical stress can compromise the integrity of the power
supply network, affecting not only the motor in question but also other
equipment connected to the same network.
2. Mechanical Stress
Torque Impact:
When a motor starts with DOL or similar methods, the torque generated at
startup is very high—sometimes up to 200% of the motor's rated torque. This
abrupt application of torque can cause mechanical stress on the motor shaft
and driven equipment. Components such as gears, belts, and bearings can
experience excessive strain, leading to premature wear, mechanical failures, or
even catastrophic damage.
Shock Load:
A high starting torque results in a shock load to both the motor and the
mechanical components it drives. This shock load is a sudden force that can
cause vibrations, misalignment, and mechanical fatigue. In systems with
delicate or precise components, this kind of stress can significantly reduce
operational life and reliability, necessitating more frequent maintenance and
replacement.
3. Energy Efficiency
Controlled Start:
Using motor starters like soft starters or variable frequency drives (VFDs) allows
for a controlled start, where the motor gradually reaches its operational speed.
This approach not only reduces the starting current but also improves energy
efficiency. By minimizing the inrush current and reducing mechanical shock,
controlled starts help to lower energy consumption and decrease losses in both
electrical and mechanical systems. Over time, this translates into energy
savings and lower operational costs.
4. System Stability
Voltage Stability:
Starting a large motor directly on line (DOL) can cause significant dips in voltage
due to the high inrush current. These voltage dips can affect other equipment
connected to the same power supply, leading to malfunctions or disruptions in
sensitive devices. Maintaining voltage stability is crucial for the smooth
operation of an entire facility, particularly in industrial environments where
numerous machines and processes rely on a consistent power supply.
Many regions and industries are governed by regulations that limit the impact
of electrical equipment on the power grid. These regulations may dictate the
maximum allowable inrush current or mandate the use of energy-efficient
starting methods. Compliance with these regulations is essential to avoid
penalties and ensure the safe and efficient operation of electrical equipment. By
using controlled start methods, companies can ensure that they meet regulatory
requirements for electrical safety, energy efficiency, and system stability.
While DOL starting is simple and cost-effective for small motors, larger motors
benefit from controlled start methods that minimize electrical and mechanical
stress, improve energy efficiency, enhance system stability, and ensure
regulatory compliance. By understanding these factors, industries can make
informed decisions that optimize performance and reduce operational costs.
Components of a Star-Delta Starter
1. Contactor Set:
2. Timer:
o A timer controls the duration for which the motor remains in the
star configuration before switching to the delta configuration. The
timing is usually set based on the characteristics of the motor and
the load it drives, ensuring a smooth transition with minimal
mechanical and electrical shock.
3. Overload Relay:
4. Switching Mechanism:
3. Cost-Effectiveness:
4. Widely Applicable:
2. Transition Disturbances:
Star-delta starters are a popular choice in industrial settings for reducing the
starting current of induction motors, thereby protecting electrical networks and
reducing mechanical stress on equipment. While they are cost-effective and
widely applicable, their use is best suited for low-inertia applications that do
not require high starting torque. Proper implementation and timing of the star-
to-delta transition are crucial to ensuring smooth operation and minimizing
disturbances.
Momentary Loss of Power: The brief period during which the motor
switches from star to delta configuration can cause a momentary loss of
power, which might be problematic in applications where continuous
operation is critical.
Case 1
Start =0
Main contact = 0
Star connection =0
Timer = 0
Delta connection = 0
Case 2
Start =1
Main contact = 1
Star connection =1
Timer done bit= 0
Start count for 10s
Delta connection = 0
Case 3
Start =1
Main contact = 1
After 10 s
Star connection =0
Timer done bit= 1
Delta connection = 1
Case 4
Start =1
OLR=1
Main contact = 0
Star connection =0
Timer done bit= 0
Delta connection = 0
Summary
Lecture Content:
2. Subtraction (-): Subtracts one number from another. This is often used
in applications where a difference needs to be calculated, such as the
difference between a setpoint and a measured value.
1. Reading Sensor Input: The PLC reads the temperature sensor input,
which provides a raw value.
2. Scaling the Input: The raw sensor value is then scaled using a
mathematical formula (e.g., converting an analog input value to a
temperature in degrees Celsius or Fahrenheit).
3. Calculating Error: The PLC calculates the error between the desired
setpoint and the current temperature using subtraction:
o Integral Term (I): Calculated by summing the error over time and
multiplying by an integral gain (Ki).
6. Actuating the Output: Based on the calculated output, the PLC adjusts
the heating or cooling device to maintain the desired temperature.
Data Logging and Analysis: Summing and averaging data points for
trend analysis and predictive maintenance in facilities management.
1. ADD –ADD Instruction
CASE-1
CASE-2
CASE-1
CASE-2
CASE-1
CASE-2
CASE-1
CASE-2
CASE-1
CASE-2
CASE-1
CASE-2
CASE-1
N7:0 = 12 0001100
N7:1 = 0 0000000
0 0000 0000
1 0001 0001
2 0010 0010
3 0011 0011
4 0100 0100
5 0101 0101
6 0110 0110
7 0111 0111
8 1000 1000
9 1001 1001
• Till number 9 BCD number and binary number are represented by 4 bit
binary and they are same.
CASE-1
N7:0 = 12 0000000000001100
N7:1 = 0 0000000000000000
CASE-2
N7:0 = 12 00001100
N7:1 = 18 00010010
7. FRD – Convert from BCD Number Instruction
CASE-1
CASE-2
N7:0 = 18 00010010
N7:1 = 12 00001100
Gray Code: The Reflected Binary Code
Gray code, also known as reflected binary code, is a type of binary numeral
system where two consecutive numbers differ by only a single bit. This
characteristic makes Gray code particularly useful in digital systems where
minimizing errors during transitions between values is crucial.
o 000 (0 in binary)
o 001 (1 in binary)
o 011 (2 in binary)
o 010 (3 in binary)
o 110 (4 in binary)
o 111 (5 in binary)
o 101 (6 in binary)
o 100 (7 in binary)
Between each number in the sequence, only one bit changes. This property
reduces the chance of errors when switching from one value to another in digital
circuits, such as rotary encoders or analog-to-digital converters (ADCs).
To understand how Gray code is generated and used, consider how binary
numbers are converted into Gray code:
Step 1: The most significant bit (MSB) of the Gray code is the same as the
MSB of the binary number.
Step 2: For each subsequent bit, perform an XOR operation between the current
binary bit and the previous binary bit.
Step 2:
Second bit of Gray = 1 (second bit of binary) XOR 0 (first bit of binary) = 1
Third bit of Gray = 0 (third bit of binary) XOR 1 (second bit of binary) = 1
Fourth bit of Gray = 1 (fourth bit of binary) XOR 0 (third bit of binary) = 1
Step 1: The most significant bit (MSB) of the binary number is the same as the
MSB of the Gray code.
Step 2: For each subsequent bit, perform an XOR operation between the
previous binary bit and the current Gray code bit.
Step 2:
Second bit of Binary = 1 (first bit of binary) XOR 1 (second bit of Gray) = 0
Third bit of Binary = 0 (second bit of binary) XOR 1 (third bit of Gray) = 1
Fourth bit of Binary = 1 (third bit of binary) XOR 0 (fourth bit of Gray) = 1
On a True rung, this instruction sets the value of the Destination to the
integer value corresponding to the Gray code Source.
If the Gray code input is negative (high bit set), the destination is set to 32767
and the overflow flag is set. The GCD instruction only operates on Word
operands.
Entering Parameters:
Source contains the Gray code input. This may be a direct or indirect address
using any O, I, B, T, C, R, or N file type.
Destination contains the integer value corresponding to the Source. This may
be a direct or indirect address using any O, I, B, T, C, R, or N file type.
Arithmetic Flags
S:0/1 - Overflow bit sets if the Gray code input is negative, otherwise reset.
The Math Overflow Trap bit is only set if the Overflow bit is set. Otherwise, it
remains in its last state.
Summary
In our 21st lecture on “Mathematical instruction-based PLC program” we
covered:
Lecture Content:
Once the application requirements are understood, the next step is to design
the control logic. This is often done using one of the PLC programming
languages defined in the IEC 61131-3 standard, such as Ladder Logic,
Function Block Diagram (FBD), Structured Text (ST), or Sequential Function
Chart (SFC).
With the control logic designed, the next step is to program the PLC. This
involves:
Creating the Program: Write the PLC program using the chosen
language(s) in a programming environment compatible with the PLC
hardware. Ensure that the program accurately reflects the control logic
design and meets all application requirements.
Once the PLC program is tested and validated, it is ready for deployment. The
deployment process includes:
Commissioning: Start the PLC in the field and monitor its operation to
ensure it performs as expected. Adjust the program if necessary to fine-
tune the control logic based on real-world conditions.
Example 1
Above figure shows the sketch of a continuous filling operation. This process
requires that boxes moving on a conveyor be automatically positioned and
filled.
• Stop the conveyor when the right edge of the box is first sensed by the photo
sensor.
• With the box in position and the conveyor stopped, open the solenoid valve
and allow the box to fill. Filling should stop when the level sensor goes true.
Energize the full light when the box is full. The full light should remain
energized until the box is moved clear of the photo sensor.
Input Address –
Start - I:0/0
Stop – I:0/1
Level Switch - I:0/2
Photo Sensor - I:0/3
Output Address–
Run – O:0/0
Standby- O:0/1
Full - O:0/2
Motor - O:0/3
Solenoid - O:0/4
Case 1 –
Start =0
Run= 0
So, Standby =1
Case 2 –
Start =1
Run= 1
Motor =1
So, Standby =0
Case 3 –
Start =1
Run= 1
Motor =0
Solenoid =1
Case 4 –
Start =1
Run= 1
photo sensor =1
Start =1
Stop=1
Run= 0
Motor =0
Solenoid =0
Standby = 1
Example 2
Output Address–
North/ South
RED - O:0/0
Yellow - O:0/2
Green - O:0/1
Output Address–
East / west
RED - O:0/5
Yellow - O:0/4
Green - O:0/3
Example 3
Input
Entry sensor –
I:0/0
Exit sensor –
I:0/1
Output
Full – O:0/0
Vacant - O:0/1
Empty - O:0/2
Case -1
Entry =0
Exit = 0
Vacant = 1
Empty =1
Case -2
Vacant - O:0/1= 1
Full =0
Empty =0
Case -3
Entry =1
five times , accumulator increase by 5 and only
Vacant = 0
Full =1
Empty =0
Case -4
Entry =0
Exit =1
accumulator decrease by 1
Vacant = 1
Full =0
Empty =0
Summary
In our 22st lecture on ―Application based PLC programming‖ we covered:
References:
Objectives:
Students will learn about the history of SCADA and basics key
blocks involved in a SCADA system.
Students will learn SCADA architecture/block diagram.
Students will learn working and application of SCADA.
Lecture Content:
SCADA System
SCADA Components:
1. Human Machine Interface (HMI): The HMI is the user interface through
which operators monitor and control processes. It presents real-time data
graphically, using representations like diagrams, animations, and charts
that reflect the plant's operation. This makes it easy to visualize processes
and respond quickly to changing conditions.
SCADA systems are commonly integrated with PLCs to control and monitor
automated industrial processes. Here's how the integration works:
Control and Feedback: Operators can send commands from the SCADA
system to the PLC, which then executes those commands to control the
process (e.g., turning a pump on or off). The PLC, in turn, sends feedback
to SCADA to confirm whether the command was executed and how the
process is performing.
History of SCADA
The history of SCADA (Supervisory Control and Data Acquisition) is closely tied
to the evolution of industrial automation and control systems. Here’s an in-
depth look at its development:
Big Data and Predictive Analytics: Modern SCADA systems can process
vast amounts of data in real-time, allowing for advanced predictive
maintenance and performance optimization.
Cloud-based SCADA: SCADA systems have increasingly migrated to
cloud-based platforms, offering scalability, flexibility, and lower
infrastructure costs.
AI and Machine Learning: Artificial Intelligence (AI) and Machine
Learning (ML) technologies are being integrated with SCADA systems to
optimize decision-making and automate more complex control processes.
Smart Infrastructure: SCADA systems are becoming integral to smart
city infrastructure, automating utilities like water, power, and traffic
systems.
SCADA Basics
2. Supervisory System:
o RTUs are field devices that collect data from sensors and other
equipment in the industrial process. They transmit this data back
to the supervisory system and can receive control signals to perform
actions like opening valves or starting motors.
o RTUs typically operate in remote locations, where they monitor and
control processes in environments such as power plants, pipelines,
or water distribution systems.
5. Communication Infrastructure:
6. SCADA Programming:
Characteristics:
o No networked communication with other systems.
o Early SCADA systems used proprietary hardware and software.
Characteristics:
o Data and control commands can be shared between multiple
control stations.
o Each node has some autonomy and can perform control tasks.
Characteristics:
Overview: The latest SCADA systems utilize IoT and cloud technologies,
allowing for greater flexibility, scalability, and remote access from
anywhere.
Characteristics:
o Field devices and sensors are connected to the cloud, providing
real-time data collection and analysis.
o Centralized monitoring with cloud-based dashboards.
In A SCADA architecture block diagram typically illustrates the flow of data and control
between various components of a SCADA system. Here's a basic description of the
blocks and how they interact in a SCADA system:
5. Communication Infrastructure:
o Enables communication between RTUs, PLCs, and the central
supervisory system.
o Uses various communication protocols (e.g., Modbus, DNP3,
Ethernet) and mediums (wired, wireless, fiber optic, radio, cellular).
1. Field Level:
o Sensors and Actuators are connected to RTUs and PLCs. These
devices collect data (e.g., temperature, flow, pressure) and execute
commands (e.g., open valve, stop motor).
2. Control Level:
o PLCs control the processes based on data from sensors and logic
implemented in the program.
o RTUs act as data collectors, sending the information back to the
supervisory system.
3. Communication Level:
o Communication Infrastructure ensures that data is transmitted
between field devices (RTUs, PLCs) and the supervisory system.
This can involve wired (Ethernet, fiber optic) or wireless
communication (radio, cellular).
4. Supervisory Level:
o The Supervisory System processes data from field devices and
sends commands to control processes.
o HMI interfaces allow operators to visualize data, control processes,
and respond to alarms.
Working of SCADA
A SCADA (Supervisory Control and Data Acquisition) system operates in several
stages, from data acquisition to process control and monitoring. Here’s a
simplified breakdown of how it works:
1. Data Acquisition
Sensors and Field Devices: SCADA systems collect real-time data from
sensors and field devices (e.g., pressure sensors, temperature sensors,
flow meters) that monitor physical parameters of the industrial process.
Remote Terminal Units (RTUs) / Programmable Logic Controllers
(PLCs): These devices interface with the sensors, convert analog signals
into digital data, and transmit it to the SCADA system for processing.
2. Data Communication
Communication Networks: Data collected from field devices is
transmitted to the SCADA system using communication protocols such as
Ethernet, Modbus, or DNP3. The network infrastructure may include
wired or wireless connections, depending on the setup.
Centralized Servers: The data is sent to centralized SCADA servers,
which aggregate and organize the data from various locations.
3. Data Processing
Real-Time Data Processing: The SCADA servers process the incoming
data in real-time, converting it into meaningful information that can be
used for decision-making and process control.
Data Archiving: Historical data is also stored for trend analysis,
reporting, and auditing.
5. Control
Manual and Automatic Control: Based on the data from sensors,
operators can issue manual control commands through the HMI (e.g.,
start/stop equipment, adjust setpoints). In many cases, SCADA systems
also perform automatic control based on predefined logic.
Feedback Loops: SCADA systems provide feedback to the field devices to
ensure that process parameters are maintained within desired limits,
ensuring smooth operation.
6. Monitoring and Reporting
System Monitoring: The SCADA system continuously monitors the
process to detect anomalies, track performance, and maintain operational
efficiency.
Data Reporting: The system generates reports based on the data
gathered, which can be used for operational insights, compliance, and
decision-making.
This cycle of data acquisition, communication, processing, control, and
monitoring enables SCADA systems to efficiently manage complex industrial
processes, ensuring that operations are optimized, safe, and reliable.
Application of SCADA
3) Data analysis: SCADA systems collect and analyse vast amounts of data
from sensors and devices, offering valuable insights into process performance,
trends, and anomalies. This data analysis helps improve efficiency, predict
maintenance needs, and optimise resource utilisation.
Summary
References: