Sol-Assignment No 6 PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Internshala’s PLC Programming Training

Solution Assignment - 6

Q1. Build a ladder logic program to control the switching ON and OFF of lights in a particular order.
The three lights are pink light, yellow light and green light. When the start push button is pressed,
pink light should glow instantly and it should remain ON for 5 seconds only. After 5 seconds, the
yellow light should glow and continue to glow till the 10th second only, that is, from the 5th till the
10th second. At the 11th second, the green light should glow and continue to be light. It should dim
only when the Stop push button is pressed.

Hint: Don’t you think the switching ON & OFF of the lights can be implemented using the comparator
blocks.

Answer:
Q2. Which instruction will be used to find the square root of a number stored in location N7:3. The
destination location is N7:12. Draw the block for the same.

Answer:

Q3. List the differences between Up-counter and Down-Counter.

Answer:
Up counter Down counter

Represented as CTU Represented as CTD

When the counter is triggered the current When the counter is triggered the current
value increases value decreases

When current value becomes equal to preset When the current value becomes less
the output is turned on than or equal to 0 the output is turned on

Q4. Difference between retentive and non-retentive timers

Answer:

Retentive Timer Non retentive Timer

Retains the previous value Does not retain any value

Can be used in case of power failures Power failure resets the accumulator value

Used where the user wants the PLC to Used where the previous values are of no use
remember the last retained value
Example : stop watch Example : traffic signal

Q5. Difference between Move and Copy instructions

Answer:

MOVE COPY

Transfers the data from one place to another Copies the data from one place to another

Will remove the data from the source Will not remove the data from source
destination destination

Usually used to move the data Usually used to create multiple copies of the
same data

You might also like