Foreword I ndustrial Automation Business Unit (IABU) of Delta Electronics focuses our expertise on "Drive, Motion and Control" with our knowledge and experience in automation control. Our R&D teams continue researching and developing key technologies, producing innovative products in industrial automation; for example many OEM’s use our automation products for processing machines used in the food industry, textile industry, chemical industry, electronics industry, metal industry and plastic industry. Our automation equipment is also used in the pharmaceutical industry, printing industry, as well as for energy saving air-conditioning and water treatment facilities. In recent years, we have integrated our industrial automation products, developed industrial control networks, and offered integration services to our clients around the world.
Delta's DVP series high-speed, stable and highly reliable PLCs are applied in various automation machines. In addition to its fast logic operations, abundant instructions, various extension cards and cost-effectiveness, DVP series PLCs support many communication protocols, seamlessly integrating the industrial automation control system as a whole. To meet users’ needs for DVP-PLC programming examples, we provide examples of basic instructions including sequential/position control, timed counting and input/output control in DVP-PLC Application Examples. In addition, in this manual we also provides examples of advanced instructions including elementary arithmetic operations, data processing, high speed input/output control, network connection, and PLC communication(AC motor drive / temperature controller / servo motor).
DVP-PLC Application Examples includes most common applications in automation control, such as parking lot entry/exit control, material mixing, stock monitoring, level monitoring, traffic lights control, and conveyer belt control. This manual explains methods for applying basic instructions as well as advanced instructions of DVP-PLC to accomplish the field application purposes. Users can easily understand how DVP-PLC features in automation applications through this manual. By referring to our DVP-PLC Application Manual- 【 Programming 】 , users can also apply DVP-PLC efficiently on particular purposes and fulfill various control requirements in industrial automation.
DVP-PLC Application Examples CONTENTS 1. Basic Program Design Examples 1.1 Normally Closed Contact in Series Connection .2 Block in Parallel Connection .3 Rising-edge Pulse Output for One Scan Cycle.4 Falling-edge Pulse Output for One Scan Cycle .5 Latching Control Circuit.6 Interlock Control Circuit .7 Automatic Parameter Initialization When Powered Up .8 Common Latched Circuit and SET/RST Instructions Application .9 SET/RST - Latched and Unlatched Circuit .10 Alternate Output Circuit (With Latched Function) .11 Conditional Control Circuit .12 First-in Priority Circuit .13 Last-in Priority Circuit .14 Entry/Exit Control of the Underground Car Park.15 Forward/Reverse Control for the Three-Phase Asynchronous Motor .16 Selective Execution of Programs .17 MC/MCR - Manual/Auto Control .18 STL Manual/Auto Control. Counter Design Examples 2.1 Product Mass Packaging .2 Daily Production Record (16-bit Counting Up Latched Counter).3 Products Amount Calculation (32-bit Counting Up/Down Counter) .4 24-hour Clock Operated by 3 Counters .5 A B-phase Pulse High-speed Counter. Timer Design Examples 3.1 Delay OFF Program .2 Delay ON Program .3 Delay ON/OFF Program .4 Sequential Delay Output (Starting 3 Motors Sequentially) .5 Pulse-Width Modulation .6 Artificial Fishpond Water Level Monitoring System (Flashing Circuit) .7 Burn-in Test System (Timing Extension) .8 Star-Delta Reduced Voltage Starter Control .9 Automatic Door Control .10 Automatic Liquids Mixing Control System .11 Automatic Coffee Maker.12 Automatic Urinal Flushing Control Program .13 Performing Accumulative Function with Normal Timer .14 Performing Teaching Function with Normal Timer .15 Auto Interruption Timer.17 Traffic Lights Control.
Index Registers E, F Design Examples 4.1 Summation of Continuous D Registers .2 Parameter Setting for Product Recipe .3 Controlling Voltage Output of 2 DVP-04DA by 8 VRs (Variable Resistors). Loop Instruction Design Examples 5.1 Recipe Setting by CJ Instruction .2 Reservoir Level Control .3 Fire Alarm in the Office (Interruption Application) .4 Auto Lock up System in the Supermarket (FOR ~ NEXT). Data Transmission and Comparison Design Examples 6.1 CMP - Material Mixing Machine .2 ZCP - Water Level Alarm Control .3 BMOV - Multiple History Data Backup .4 FMOV - Single Data Broadcasting .5 CML - Color Lights Flashing .6 XCH - Exchanging the Upper and Lower 8 bits in a Register .7 DIP Switch Input and 7-segment Display Output. Elementary Arithmetic Operations Design Examples 7.1 Accurate Pipe Flow Measurement .2 INC/DEC - Fine Tuning by JOG Control.3 NEG - Displacement Reverse Control.
Rotation and Shift Design Examples 8.1 ROL/ROR - Neon Lamp Design .2 SFTL - Defective Product Detect.3 WSFL - Automatic Sorting Mixed Products .4 SFWR/SFRD - Room Service Call Control. Data Processing Design Examples 9.1 ENCO/DECO - Encoding and Decoding.2 SUM/BON - Checking and Counting the Number of “1” .3 MEAN/SQR - Mean Value and Square Root.4 MEMR/MEMW - File Register Access .5 ANS/ANR - Level Monitoring Alarm System .6 SORT - Sorting Acquired Data .7 SER - Room Temperature Monitoring. High-speed Input/Output Design Examples 10.1 REF/REFF - DI/DO Refreshment and DI Filter Time Setting .2 DHSCS - Cutting Machine Control .3 DHSZ/DHSCR - Multi-segment Coater Control.4 SPD - Wheel Rotation Speed Measurement .5 PLSY - Production Line Control Program.6 PWM - Sprayer Valve Control Program .7 PLSR - Servo Motor Acceleration/Deceleration Control. Floating Point Operation Design Examples 11.1 Elementary Arithmetic for Integer and Floating Point .2 Elementary Arithmetic for Floating Point.
Communication Design Examples Introduction .1 Communication between PLC and Delta VFD-M Series AC Motor Drive .2 Communication between PLC and Delta VFD-B Series AC Motor Drive .3 Communication between PLC and Delta VFD-V Series AC Motor Drive .4 Communication between PLC and Delta ASD-A Series AC Servo Drive .5 Communication between PLC and Delta ASD-A Series AC Servo Drive .6 Communication between PLC and Delta DTA Temperature Controller .7 Communication between PLC and Delta DTB Temperature Controller .8 PLC LINK 16 Slaves and Read/Write 16 Data (Word) .9 PLC LINK 32 Slaves and Read/Write 100 Data (Word) .10 LINK between PLC, Delta AC Motor Drive and AC Servo Drive .11 LINK between PLC, Delta DTA and DTB Temperature Controllers .12 Controlling START/STOP of 2 DVP PLCs through Communication .13 Communication between Delta PLC and Siemens MM420 Frequency Inverter .14 Communication between Delta PLC and Danfoss VLT6000 Series Adjustable Frequency Drive. Real Time Calendar Time Design Examples 13.1 TRD/TWR/TCMP - Office Bell Timing Control.2 TRD/TZCP - Control of Warehouse Automatic Door .3 HOUR - Control of Switching Motors after a Long Time Running. Simple Positioning Design Examples 14.1 Simple positioning Demonstration System of Delta ASDA AC Servo Drive14-1 14.2 Draw DELTA LOGO by 2-axis Synchronous Motion. Handy Instruction Design Examples 15.1 ALT - Auto Blackboard Cleaner .2 RAMP - Ramp Control of Crane .3 INCD - Traffic Lights Control (Incremental Drum Sequencer) .4 ABSD - Adding Materials in Different Intervals (Absolute Drum Sequencer)15-9 15.5 IST - Electroplating Process Auto Control .6 FTC - Fuzzy Temperature Control of the Oven .7 PID - Oven Temperature Control (Auto-tuning for PID Temperature Control).
Network Connection Design Examples 16. Basic Program Design Examples 1.1 Normally Closed Contact in Series Connection Y0 X1 X0 Control Purpose: z Detecting the standing bottles on the conveyor and pushing the fallen bottles out Devices: Device Function X0 X0 = ON when the detected input signal from the bottle-bottom is sheltered. X1 X1 = ON when the detected input signal from the bottle-neck is sheltered. Y0 Pneumatic pushing pole Control Program: X0 X1 Y0 Program Description: z If the bottle on the conveyor belt is upstanding, the input signal from monitoring photocell at both bottle-bottom and bottle-neck will be detected.
In this case, X0 = ON, and X1 = ON. The normally open (NO) contact X0 will be activated as well as the normally closed (NC) contact X1. Y0 remains OFF and pneumatic pushing pole will not perform any action. z If the bottle from the conveyor belt is down, only the input signal from monitoring photocell at the bottle-bottom will be detected.
In this case, X0 = ON, X1 = OFF. The state of output YO will be ON because the NO contact X0 activates and the NC contact X1 remains OFF. The pneumatic pushing pole will push the fallen bottle out of the conveyor belt. DVP-PLC Application Examples 1-1 1.
Basic Program Design Examples 1.2 Block in Parallel Connection Y0 X1 X0 Control Purpose: z Setting up a lighting system for users to switch on/off the light whether they are at the bottom or the top of the stairs. Devices: Device Function X0 X0 turns ON when the bottom switch is turned to the right X1 X1 turns ON when the top switch is turned to the right. Y1 Stair light Control Program: X0 X1 Y0 X0 X1 Program Description: z If the states of the bottom switch and the top switch are the same, both ON or OFF, the light will be ON. If different, one is ON and the other is OFF, the light will be OFF.
z When the light is OFF, users can turn on the light by changing the state of either top switch at the bottom switch of the stairs. Likewise, when the light is ON, users can turn off the light by changing the state of one of the two switches. 1-2 DVP-PLC Application Examples 1. Basic Program Design Examples 1.3 Rising-edge Pulse Output for One Scan Cycle Control Purpose: z Creating a pulse of one program scan cycle as the condition to trigger the indicator or other devices when the switch (X0) is turned on.
X0 M10 One scan cycle Y0 Devices: Device Function X0 Switch (OFF→ON) M10 Creating a trigger pulse for one program scan cycle Y0 Indicator Control Program: X0 PLS M10 M10 turns on for one scan cycle M10 SET Y0 Program Description: z When X0 is turned on (Rising-edge triggered), PLS instruction will be executed, and M10 will send a pulse for one program scan cycle. z When M10 = ON, [SET Y0] instruction will be executed and Y0 will be ON. In this case, the indicator will be lighted, and other devices will be activated as well. DVP-PLC Application Examples 1-3 1.
Basic Program Design Examples 1.4 Falling-edge Pulse Output for One Scan Cycle X0 Y0(Electromagnetic valve) Control Purpose: z Creating a pulse of one program scan cycle as the condition to trigger the electromagnetic valve or other devices when the switch is turned off. X0 M10 One scan cycle Y0 Devices: Device Function X0 Switch(ON→OFF) M10 Creating a trigger pulse for one program scan cycle Y0 Electromagnetic valve Control Program: X0 PLF M10 M10 turns on for one scan cycle M10 RST Y0 Y0 = OFF Program Description: z When X0 is turned on (Falling-edge triggered), PLF instruction will be executed, and M10 will send a pulse for one program scan cycle. z When M10 = ON, [RST Y0] instruction will be executed and Y0 will be OFF. In this case, the electromagnetic valve will be shut down.
1-4 DVP-PLC Application Examples 1. Basic Program Design Examples 1.5 Latching Control Circuit Y0 X0 START X1 STOP X2 TEST Control Purpose: z Controlling the running state of the ceiling-fan by pressing START and STOP. z Checking if the ceiling-fan is running normally by pressing TEST. Devices: Device Function X0 Press START, X0 = ON.
X1 Press STO, X1 = ON. X2 Press TEST, X2 = ON. X3 Error signal Y1 Ceiling-fan motor control signal Control Program: X0 X1 X3 Y1 Y1 Error Signal X2 TEST button Program Description: z Press START lightly and X0 = ON. The ceiling-fan will keep running if no error occurred (X3 = OFF).
The action can be practiced by a latching circuit which takes output Y1 as one of the input condition to keep the fan running even if the START button is not pressed. z When STOP is pressed, X1 = ON and Y1 = OFF. The ceiling-fan will stop running. z If error occur (X3 = ON), Y1 will be OFF and the ceiling-fan will stop running.
z When TEST is pressed (X2 = ON), Y1 = ON. The ceiling-fan will start running if no error occurred (X3 = OFF).