The text of a manual · part 4 of 53
DL06 Micro PLC User Manual, Volume 1 of 2, pages 30 to 39
Pages 30 to 39 of 524
The original document is the PDF (6.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the AutomationDirect Direct Logic DL06 and Koyo DL06 D0-06DD1
Page 30
Chapter 1: Getting Started
Conventions Used
1 2 3 4 5 6 7
When you see the “notepad” icon in the left-hand margin, the paragraph to its immediate right will be a special note. Notes represent information that may make your work quicker or more efficient. The word NOTE: in boldface will mark the beginning of the text.
When you see the “exclamation point” icon in the left-hand margin, the paragraph to its immediate right will be a warning. This information could prevent injury, loss of property, or even death in extreme cases. Any warning in this manual should be regarded as critical information that should be read in its entirety. The word WARNING in boldface will mark the beginning of the text.
Key Topics for Each Chapter The beginning of each chapter will list the key topics that can be found in that chapter.
Getting Started
CHAPTER
1
In This Chapter... General Information .................................................................1-2 Specifications ...........................................................................1-4
8 9 10 11 12 13 14 A B C D
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1–3
Page 31
Chapter 1: Getting Started
DL06 Micro PLC Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
The DL06 micro PLC family is a versatile product line that combines powerful features and a very compact footprint. The DL06 PLCs offer expandable I/O, high-speed counter, floating point, PID, etc. There are a number of communication options and an optional LCD display.
The DL06 PLC Features The DL06 Micro PLC family includes nine different versions. All have the same appearance and CPU performance. The CPU offers an instruction set very similar to our powerful new DL260 CPU including new easy to use ASCII and MODBUS instructions. All DL06 PLCs have two built-in communications ports that can be used for programming, operator interface, networking, etc. Units with DC inputs have selectable high-speed input features on four input points. Units with DC outputs offer selectable pulse output capability on the first and second output points. Details of these features and more are covered in Chapter 3, CPU Specifications and Operation. There are nine versions of the DL06 PLC. The most common industrial I/O types and power supply voltages are available. Consult the following table to find the model number of the PLC that best fits your application. DL06 Micro PLC Family DL06 Part Number D0–06AA D0–06AR D0–06DA D0–06DD1 D0–06DD2 D0–06DR D0–06DD1–D D0–06DD2–D D0–06DR–D
Discrete Input Discrete Output External Power Type Type AC AC DC DC DC DC DC DC DC
AC Relay AC DC Sinking DC Sourcing Relay DC Sinking DC Sourcing Relay
95–240 VAC 95–240 VAC 95–240 VAC 95–240 VAC 95–240 VAC 95–240 VAC 12–24 VDC 12–24 VDC 12–24 VDC
High-Speed Input
Pulse Output
No No Yes Yes Yes Yes Yes Yes Yes
No No No Yes Yes No Yes Yes No
DirectSOFT 5 Programming for Windows™ The DL06 Micro PLC can be programmed with DirectSOFT 5, Ver. 5 or later, a Windowsbased software package that supports familiar features such as cut-and-paste between applications, point-and-click editing, viewing and editing multiple application programs at the same time, floating views, intelligent boxes, etc. Firmware version 2.10 is needed in order to use the intelligent boxes.
1–4
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Page 32
Chapter 1: Getting Started DirectSOFT 5 (part number PC-DSOFT5) supports the DirectLOGIC CPU families. You can use DirectSOFT 5 to program the DL05, DL06, DL105, DL205, DL305, and DL405 CPUs. A separate manual discusses DirectSOFT 5 programming software. DirectSOFT 5 version 5.0 or later is needed to program the DL06.
1 2 Handheld Programmer All DL06 Micro PLCs have a built-in programming port for use with the handheld programmer (D2–HPP), the same programmer used with the DL05, DL105 and DL205 3 families. The handheld programmer can be used to create, modify and debug your application program. A separate manual discusses the Handheld Programmer. Only 4 D2–HPPs with firmware version 2.0 or later will program the DL06. NOTE: Not all instructions are available to use with the HPP, such as the real number instructions. 5 DirectSOFT 5 will be needed to program instructions such as these. 6 I/O Quick Selection Guide The nine versions of the DL06 have input/output circuits which can interface to a wide 7 variety of field devices. In several instances a particular input or output circuit can interface to either DC or AC voltages, or both sinking and sourcing circuit arrangements. Check this 8 guide to find the proper DL06 Micro PLC to interface to the field devices in your application. I/O Selection Guide 9 INPUTS OUTPUTS DL06 Part I/O type/ Voltage I/O type/ Number 10 commons Sink/Source Ranges commons Sink/Source Voltage/ Current Ratings* D0–06AA 11 D0–06AR D0–06DA 12 D0–06DD1 D0–06DD2 13 D0–06DR 14 D0–06DD1–D D0–06DD2–D A D0–06DR–D B * See Chapter 2, Specifications for more information about a particular DL06 version. C D AC / 5
–
90 – 120 VAC
AC / 4
AC / 5
–
90 – 120 VAC
Relay / 4
DC / 5
Sink or Source
12 – 24 VDC
AC / 4
DC / 5
Sink or Source
12 – 24 VDC
DC / 4
DC / 5
Sink or Source
12 – 24 VDC
DC / 4
DC / 5
Sink or Source
12 – 24 VDC
Relay / 4
DC / 5
Sink or Source
12 – 24 VDC
DC / 4
DC / 5
Sink or Source
12 – 24 VDC
DC / 4
DC / 5
Sink or Source
12 – 24 VDC
Relay / 4
–
17 – 240 VAC, 50/60 Hz 0.5A 2A Sink or Source 66 –– 27VDC, 240 VAC, 2A – 17 – 240 VAC, 50/60 Hz 0.5A 6 – 27 VDC, 0.5A (Y0–Y1) Sink 6 – 27 VDC, 1.0A (Y2–Y17) 12 – 24 VDC, 0.5A (Y0–Y1) Source 12 – 24 VDC, 1.0A (Y2–Y17) 2A Sink or Source 66 –– 27VDC, 240 VAC, 2A 6 – 27 VDC, 0.5A (Y0–Y1) Sink 6 – 27 VDC, 1.0A (Y2–Y17) 12 – 24 VDC, 0.5A (Y0–Y1) Source 12 – 24 VDC, 1.0A (Y2–Y17) VDC, 2A Sink or Source 66 –– 27 240 VAC, 2A
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1–5
Page 33
Chapter 1: Getting Started
Quick Start
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
This example is not intended to tell you everything you need to know about programming and starting-up a complex control system. It is only intended to give you an opportunity to demonstrate to yourself and others the basic steps necessary to power up the PLC and confirm its operation. Please look for warnings and notes throughout this manual for important information you will not want to overlook.
Step 1: Unpack the DL06 Equipment Unpack the DL06 and gather the parts necessary to build this demonstration system. The recommended components are: • DL06 Micro PLC • AC power cord or DC power supply • Toggle switches (see Step 2 on next page) • Hook-up wire, 16-22 AWG • DL06 User Manual (this manual) • A small screwdriver, 5/8” flat or #1 Philips type
You will need at least one of the following programming options: • DirectSOFT 5 Programming Software V5.0 or later (PC-DSOFT5), DirectSOFT 5 Programming Software Manual (included with the software), and a programming cable (D2-DSCBL connects the DL06 to a personal computer) or • D2-HPP Handheld Programmer, firmware version 2.0 or later, (comes with programming cable). Please purchase Handheld Programmer Manual D2-HPP-M separately.
0V G LG Y0 Y2 C1 Y5 Y7 Y10 Y12 C3 Y15 Y17 AC(L) AC(N) 24V C0 Y1 Y3 Y4 Y6 C2 Y11 Y13 Y14 Y16 N.C. OUTPUT: 6-240V
50 - 60Hz
2.0A, 6 - 27V
2.0A
PWR: 100-240V
0
1
2
3
4
5
6
7
10
11
12
13
14
15
16
PWR RUN CPU TX1 RX1 TX2 RX2
50-60Hz 40VA
Y 17
20
D0-06DR
21 22
23
X INPUT: 12 - 24V
3 - 15mA
LOGIC
06
K oyo C0
X1 X0
X3 X2
X4 C1
X6 X5
X7
C2 X11 X13 X14 X16 C4 X21 X23 N.C. X10 X12 C3 X15 X17 X20 X22 N.C.
TERM PORT1
1–6
PORT2
RUN STOP
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Page 34
Chapter 1: Getting Started
Step 2: Connect Switches to Input Terminals
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A WARNING: Remove power and unplug the DL06 when wiring B the switches. Use only UL-approved switches rated for at least 250VAC, 1A for AC inputs. Firmly mount the switches before using. C D
To proceed with this quick-start exercise or to follow other examples in this manual, you will need to connect one or more input switches as shown below. If you have DC inputs on an AC-supply DL06, you can use the auxiliary 24VDC supply on the output terminal block or other external 12-24VDC power supply. Be sure to follow the instructions in the accompanying WARNING on this page. D0-06DA, D0-06DD1, D0-06DD2, D0-06DR, D0-DD1-D, and D0-06DR1-D DC Input
06
LOGIC
K oyo C0
X1 X0
X3 X2
X4 C1
X6 X5
X7
12 - 24 VDC
+
C2 X11 X13 X14 X16 C4 X21 X23 N.C. X15 X17 X20 X22 N.C. X10 X12 C3
Toggle Switches UL Listed
D0-06AA and D0-06AR AC input only
LOGIC
06
K oyo C0
X1 X0 fuse
90 - 120 VAC
X3 X2
X4 C1
X6 X5
X7
C2 X11 X13 X14 X16 C4 X21 X23 N.C. X15 X17 X20 X22 N.C. X10 X12 C3
Toggle Switches UL Listed
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1–7
Page 35
Chapter 1: Getting Started
Step 3: Connect the Power Wiring Connect the power input wiring for the DL06. Observe all precautions stated earlier in this manual. For more details on wiring, see Chapter 2 on Installation, Wiring, and Specifications. When the wiring is complete, close the connector covers. Do not apply power at this time. Fuse
+ Fuse
1 2 3 4 5 6 7 8 9 10 11 fuse
110/220 VAC Power Input
12/24 VDC Power Input
G LG Y0 Y2 C1 Y5 Y7 Y 0V AC(L) AC(N) 24V C0 Y1 Y3 Y4 Y6 C2 OUTPUT: 17-240V
50 - 60Hz
0.5A
PWR: 100-240V
50-60
G
1
2
3
4
5
6
7
10
11
12
13
14
N.C. Y0 Y2 C1 Y5 Y7 Y10 Y1 N.C. C0 Y1 Y3 Y4 Y6 C2 Y11 6 - 27V
1.0A
PWR: 12-24
20W
Y
15
0
X INPUT: 90 - 120V
-
OUTPUT: Sinking Output
Y 0
LG
+
1
2
3
4
5
6
7
10
11
12
13
14
15
X
7 - 15mA
INPUT: 12 - 24V
3 - 15mA
Step 4: Connect the Programming Device Most programmers will use DirectSOFT 5 programming software, Version 5.0 or later, installed on a personal computer. An alternative, if you need a compact portable programming device, is the Handheld Programmer (firmware version 2.20 or later). Both devices will connect to COM port 1 of the DL06 via the appropriate cable.
12 13 14 A B C D
G LG Y0 Y2 C1 Y5 Y7 Y10 Y12 C3 Y15 Y17 0V AC(L) AC(N) 24V C0 Y1 Y3 Y4 Y6 C2 Y11 Y13 Y14 Y16 N.C. OUTPUT: 6-240V
Y
X
0
1
2
50 - 60Hz 3
INPUT: 12 - 24V
4
5
2.0A, 6 - 27V 6
7
10
2.0A 11
12
PWR: 100-240V 13
14
15
16
PWR RUN CPU TX1 RX1 TX2 RX2
50-60Hz 40VA 17
20
D0-06DR
21 22
23
3 - 15mA
LOGIC C0
06
K oyo
X1 X0
X3 X2
X4 C1
X6 X5
X7
C2 X11 X13 X14 X16 C4 X21 X23 N.C. X15 X17 X20 X22 N.C. X10 X12 C3
TERM PORT1
PORT2
RUN STOP
Use cable part # D2–DSCBL
(cable comes with HPP) G LG Y0 Y2 C1 Y5 Y7 Y10 Y12 C3 Y15 Y17 0V AC(L) AC(N) 24V C0 Y1 Y3 Y4 Y6 C2 Y11 Y13 Y14 Y16 N.C. OUTPUT: 6-240V
Y
X
0
1
2
50 - 60Hz 3
INPUT: 12 - 24V
4
5
2.0A, 6 - 27V 6
7
10
2.0A 11
12
PWR: 100-240V 13
14
15
16
PWR RUN CPU TX1 RX1 TX2 RX2
50-60Hz 40VA 17
20
D0-06DR
21 22
23
3 - 15mA
LOGIC C0
06
K oyo
X1 X0
X3 X2
X4 C1
X6 X5
X7
C2 X11 X13 X14 X16 C4 X21 X23 N.C. X10 X12 C3 X15 X17 X20 X22 N.C.
TERM PORT1
PORT2
For replacement cable, use part # DV–1000CBL
RUN STOP
NOTE:The Handheld Programmer cannot create or access LCD, ASCII or MODBUS instructions.
1–8
DL06 Micro PLC User Manual, 3rd Edition Rev. A
16
Page 36
Chapter 1: Getting Started
Step 5: Switch on the System Power Apply power to the system and ensure the PWR indicator on the DL06 is on. If not, remove power from the system and check all wiring and refer to the troubleshooting section in Chapter 9 for assistance.
1 2 Step 6: Initialize Scratchpad Memory It’s a good precaution to always clear the system memory (scratchpad memory) on a new 3 DL06. There are two ways to clear the system memory: • In DirectSOFT 5, select the PLC menu, then Setup and Initialize Scratch Pad. Initializing Scratch Pad will return secondary comm port settings and retentive range settings to default. If you have 4 made any changes to these you will need to note these changes and re-enter them after initializing Scratchpad. 5 • For the Handheld Programmer, use the AUX key and execute AUX 54. See the Handheld Programmer Manual for additional information. 6 Step 7: Enter a Ladder Program At this point, DirectSOFT 5 programmers need to refer to Chapter 2 (Quick Start) in the 7 DirectSOFT 5 Programming Software Manual. There you will learn how to establish a communications link with the DL06 PLC, change CPU modes to Run or Program, and enter a program. 8 If you are learning how to program with the Handheld Programmer, make sure the CPU is in Program Mode (the RUN LED on the front of the DL06 should be off ). If the RUN LED is 9 on, use the MODE key on the Handheld Programmer to put the PLC in Program Mode, then switch to TERM. 10 Enter the following keystrokes on the Handheld Programmer. Equivalent Direct SOFT 5 display 11 X0 Y0 12 OUT 13 END 14 A After entering the simple example program put the PLC in Run mode by using the Mode key on the Handheld Programmer. B The RUN indicator on the PLC will illuminate indicating the CPU has entered the Run mode. If not, repeat this step, ensuring the program is entered properly or refer to the C troubleshooting guide in chapter 9. After the CPU enters the run mode, the output status indicator for Y0 should follow the D switch status on input channel X0. When the switch is on, the output will be on. CLR
CLR
C
E
4
2
NEXT
AUX
$
ENT
ENT
A
ENT
STR
GX OUT
SHFT
Clear the Program
0
A
0
E
4
N TMR
3
Move to the first address and enter X0 contact Enter output Y0
ENT
D
CLR
ENT
Enter the END statement
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1–9
Page 37
Chapter 1: Getting Started
Steps to Designing a Successful System
1 2 3 4 5
Step 1: Review the Installation Guidelines Always make safety the first priority in any system design. Chapter 2 provides several guidelines that will help you design a safer, more reliable system. This chapter also includes wiring guidelines for the various versions of the DL06 PLC.
Step 2: Understand the PLC Setup Procedures
6 7
The PLC is the heart of your automation system. Make sure you take time to understand the various features and setup requirements.
8 9
Step 3: Review the I/O Selection Criteria There are many considerations involved when you select your I/O type and field devices. Take time to understand how the various types of sensors and loads can affect your choice of I/O type.
10 11 12 13 14 A B C D
+
Input Sensing
– Common
Step 4: Choose a System Wiring Strategy It is important to understand the various system design options that are available before wiring field devices and field-side power supplies to the Micro PLC.
PLC
Input
AC Power Loads DL06 PLC
Power Input
+24 VDC +
16 Outputs
Commons
20 Inputs
Commons
–
Step 5: Understand the System Operation Before you begin to enter a program, it is very helpful to understand how the DL06 system processes information. This involves not only program execution steps, but also involves the various modes of operation and memory layout characteristics.
1–10
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Power Up Initialize Hardware
Page 38
Chapter 1: Getting Started
Step 6: Review the Programming Concepts The DL06 PLC instruction set provides for three main approaches to solving the application program, depicted in the figure below.
1 • RLL diagram-style programming is the best tool for solving boolean logic and general CPU 2 register/accumulator manipulation. It includes dozens of instructions, which will also be needed to augment drums and stages. • The Timer/Event Drum Sequencer features up to 16 steps and offers both time and/or event-based 3 step transitions. The DRUM instruction is best for a repetitive process based on a single series of steps. 4 • Stage programming (also called RLL ) is based on state-transition diagrams. Stages divide the ladder program into sections which correspond to the states in a flow chart you draw for your process. 5 6 7 8 9 After reviewing the programming concepts above, you’ll be equipped with a variety of tools to 10 write your application program. Step 7: Choose the Instructions 11 Once you have installed the Micro PLC and understand the main programming concepts, you 12 can begin writing your application program. At that time you will begin to use one of the most 13 powerful instruction sets available in a small PLC. 14 Step 8: Understand the Maintenance and Troubleshooting Procedures A Sometimes equipment failures occur when we least expect it. Switches fail, loads short and need to be B replaced, etc. In most cases, the majority of the troubleshooting and maintenance time is spent trying to locate the problem. The DL06 Micro C PLC has many built-in features such as error codes that can help you quickly identify problems. D PLUS
Standard RLL Programming (see Chapter 5)
X0
Timer/Event Drum Sequencer (see Chapter 6)
Stage Programming (see Chapter 7) Push–UP
LIGHT
DOWN
CMPD K309482
SP62
RAISE
LDD V1076
Y0 OUT
Push– DOWN
LOWER
TMR
T1 K30
UP
CNT
CT3 K10
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1–11
Page 39
Chapter 1: Getting Started
Questions and Answers about DL06 Micro PLCs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Q. What is the instruction set like? A. The instruction set is very close to that of our DL260 CPU. The DL06 instructions include the drum sequencing instruction, networking, ASCII, MODBUS, LCD, intelligent boxes and High-Speed I/O capabilities. High-Speed inputs are available on units with DC inputs only; high-speed outputs are available on units with DC outputs only.
Q. Do I have to buy the full DirectSOFT 5 programming package to program the DL06? A. Yes. The part number for DirectSOFT 5 (PC-DSOFT5) is now used for all PLCs in the DirectLOGIC family, and the price is very affordable.
Q. Is the DL06 expandable? A. Yes, the DL06 series function as stand-alone PLCs. However, option card slots allow you to expand the system without changing the footprint.
Q. Does the DL06 have motion control capability? A. Yes, the DL06 has limited motion control capabilities. The High-Speed I/O features offer either encoder inputs with high-speed counting and presets with interrupt, or a pulse/direction output for stepper control. Three types of motion profiles are available, which are explained in Appendix E. The H0-CTRIO option module can also be used to provide more motion functionality.
Q. Are the ladder programs stored in a removable EEPROM? A. No. The DL06 contains a non-removable FLASH memory for program storage, which may be written and erased thousands of times. You may transfer programs to/from DirectSOFT 5 on a PC.
Q. Does the DL06 contain fuses for its outputs? A. There are no output circuit fuses. Therefore, we recommend fusing each channel, or fusing each common. See Chapter 2 for I/O wiring guidelines.
Q. Is the DL06 Micro PLC U.L. approved? A. The Micro PLC has met the requirements of UL (Underwriters’ Laboratories, Inc.), and CUL (Canadian Underwriters’ Laboratories, Inc.). See our website, www.Automationdirect.com, for complete details.
Q. Does the DL06 Micro PLC comply with European Union (EU) Directives?
1–12
A. The Micro PLC has met the requirements of the European Union Directives (CE). See our website, www.Automationdirect.com, for complete details.
DL06 Micro PLC User Manual, 3rd Edition Rev. A