Delta DVP 14 SS Advanced Commands
Delta DVP 14 SS Advanced Commands
Ladder Program:
MC-MCR
Master Control – used to enable and disable the Zone of ladders
Command Syntax: MC N0
If X27 is TRUE, the zone from ladder 4 to ladder 14 will be enable and
instruction will work as per the logic
If X27 is FALSE, the zone from ladder 4 to ladder 14 will be disabled and all
OUT bits will get FALSE but the SET bit will retain it’s state.
Exercise
There are 3 groups participating in the quiz game: pupils, high school students and professors. If
they want to get the chance of answering the question from the host, they must press the answer
button on their table first. Other groups’ pressing will be invalid if any group gets the chance
successfully
When Y0 gets ON, Y1 will generate pulses with the ON time = 1 seconds
and OFF time = 0.5 sec. In other words duty cycle is 66% and cycle time is
1.5 seconds
Exercise
Generate the train of 500 pulses for Y1. (On time 1 second
and Cycle time 1.5 seconds)
Ladder Program:
Exercise
Create a Timing application such that when X1 is pressed Y0 is ON for 10 seconds. In case
X1 is turned OFF in between or Power failure may occur. The timer should resume the time
from where it gets interrupted.
Sequencer
Used to make sequence of output by accessing word output
Command Syntax: MOV HXX K4Y0
Ladder Program:
Decimal Y3 Y2 Y1 Y0
5 0 1 0 1
10 1 0 1 0
Sequencer
Used to make sequence of output by accessing word output
Command Syntax: MOV HXX K4Y0
Exercise 1
Turn on the output in sequence
shown
Ladder Program:
Sequencer
Used to make sequence of output by accessing word output
Command Syntax: MOV HXX K4Y0
Exercise 2
Turn on the output in the
sequence shown
Ladder Program:
Step Command
Used to perform the operation in a sequential way without
lose of steps even on power loss
Command Syntax: STL S0
Exercise
Design a traffic light program for Y0 (Red- 5 Seconds), Y1 (Yellow- 2
seconds) and Y2 (Green- 10 seconds) using Step commands.
Exercise
Design a traffic light program for Y0 (Red- 5 Seconds), Y1 (Yellow- 2
seconds) and Y2 (Green- 10 seconds) using Step commands.
Ladder Program:
Subroutine
Used to perform a function multiple times by call instruction
Command Syntax: Call P0
Enabling the abnormal situation alarm and draining water from the reservoir when
the level is above the upper bound.
Enabling the abnormal situation alarm and pouring water into the reservoir when the
level is below the lower bound.
Enabling the mechanical failure alarm if the upper bound sensor X0 is still ON after
draining water for 10 minutes.
Enabling the mechanical failure alarm if the lower bound sensor X1 is still ON after
pouring water for 5 minutes.
Resetting all the alarms and valves when the level is in normal position.
Exercise
Exercise
Ladder Program:
Compare
Used to compare data (information) between two sources
Command Syntax: CMP
When X1 is ON, CMP command is driven Second comparison value
and one of Y0, Y1 & Y2 is ON. When X1 is First comparison value Comparison result
OFF, Y0 ~ Y2 remain in previous state
If K10 = D10 , Y1 = ON
Before After
Execution Execution
D20
120 400
Before After
Execution Execution
D20 9 8
D21 20 4
D40 8 9
D41 4 20
Interrupts
Used to compare data register zone
Command Syntax: EI
Interrupt pointers I numbers for SS Models
External Interrupts:
I001 = X0
I101 = X1
I201 = X2
I301 = X3
Exercise
Fire Alarm in the Office (Interruption Application)
Control Purpose:
Starting the alarm and sprayer when the temperature alarm
detects high temperature.
Stopping the alarm and sprayer when the alarm reset button
is pressed.
Exercise
Exercise
• In the program, the interruption pointers I001, I101 correspond to the external
input points X0, X1. When X0, X1 is ON, the subroutines corresponding to
I001, I101 will be executed.
• If the temperature in the office is normal, X0 = OFF. The temperature alarm will
not perform any action. No interruption signal is generated, and no
interruption subroutine will be executed in this case.
• If the temperature in the office is too high, X0 = ON, the temperature alarm
will be enabled. The PLC will stop the main program to execute the
interruption subroutine I001. In this case, sprayer valve Y0 and alarm Y1 will be
enabled. After the execution of I001, the program will return to the main
program and resume execution from the interruption point.
• Press the alarm reset button if the alarm situation is cleared. X1 = ON, the PLC
will stop the main program to execute the interruption subroutine I101. In this
case, sprayer Y0 and alarm Y1 will be shut down. After the execution of I101,
the program will return to the main program and resume execution from the
interruption point.
High Speed Counter Set
Used to set the device by reading high speed input pulses typically from Encoder signal
Command Syntax: DHSCS
High Speed Counter
When PLC RUNS, if M0 is ON, DHSCS command
Compare Value Number
starts to operate. Y0 will be ON immediately Compare result
when C235 present value stepped from 99 to 100
or 101 to 100 and be ON constantly
When C235 present value stepped from 999 to 1000, C235 will be active and Y1 will be SET.
When C235 present value stepped from 999 to 1000, C235 will be active and Y1 will be SET.
nfi