Page 1
DL06 Micro PLC User Manual Volume 1 of 2 Manual Number: D0-06USER-M...
Page 2
Copyright 2016, Automationdirect.com Incorporated All Rights Reserved No part of this manual shall be copied, reproduced, or transmitted in any way without the prior, written consent of Automationdirect.com Incorporated. AutomationDirect retains the exclusive rights to all information included in this document.
Page 3
Nulle partie de ce manuel ne doit être copiée, reproduite ou transmise de quelque façon que ce soit sans le consentement préalable écrit de la société Automationdirect.com Incorporated. AutomationDirect conserve les droits exclusifs à l’égard de tous les renseignements contenus dans le présent document.
Page 4
DL06 M PLc USER MANUAL icro Please include the Manual Number and the Manual Issue, both shown below, when communicating with Technical Support regarding this publication. Manual Number: D0-06USER-M Issue: 3rd Edition, Rev. E Issue Date: 8/18 Publication History Issue...
I/O Quick Selection Guide ..................1–5 Quick Start ......................... 1–6 Steps to Designing a Successful System ..............1–10 Questions and Answers about DL06 Micro PLCs ............ 1–12 Chapter 2: Installation, Wiring, and Specifications Safety Guidelines ....................... 2–2 Plan for Safety ......................2–2 Three Levels of Protection ..................
Page 8
Solve PID Loop Equations ..................3–16 Write Outputs ......................3–16 Write Outputs to Specialty I/O ................3–16 Diagnostics ......................3–17 I/O Response Time ....................3–17 Is Timing Important for Your Application? .............. 3–17 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 9
System Parameters and Default Data Locations (V Data Type) ....... 3–29 DL06 Aliases ......................3–31 DL06 Memory Map ....................3–32 X Input/Y Output Bit Map ..................3–33 Stage Control/Status Bit Map ................. 3–34 Control Relay Bit Map ..................... 3–36 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 10
Determining the MODBUS Address ................ 4–12 If Your Host Software Requires the Data Type and Address ........4–13 Example 1: V2100 ....................4–14 Example 2: Y20 ...................... 4–14 Example 3: T10 Current Value ................4–14 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 11
Chapter 5: Standard RLL Instructions Introduction ....................... 5–2 Using Boolean Instructions ..................5–5 END Statement ......................5–5 Simple Rungs ......................5–5 Normally Closed Contact ..................5–6 Contacts in Series ..................... 5–6 Midline Outputs ....................... 5–6 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 12
Using Pointers ......................5–55 Logical Instructions (Accumulator) ................. 5–69 Math Instructions ....................5–86 Transcendental Functions..................5–118 Bit Operation Instructions ..................5–120 Number Conversion Instructions (Accumulator) ..........5–127 Shuffle Digits Block Diagram ................5–139 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 14
Timed Drum with Discrete Outputs (DRUM) ............6–12 Event Drum (EDRUM) .................... 6–14 Handheld Programmer Drum Mnemonics .............. 6–16 Masked Event Drum with Discrete Outputs (MDRMD) ........... 6–19 Masked Event Drum with Word Output (MDRMW) ..........6–21 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 15
Exclusive Transitions ....................7–14 Stage Program Design Considerations ..............7–15 Stage Program Organization .................. 7–15 How Instructions Work Inside Stages ..............7–16 Using a Stage as a Supervisory Process ..............7–17 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 16
Adjusting the Bias ....................8–11 Step Bias Proportional to Step Change in SP ............8–12 Eliminating Proportional, Integral or Derivative Action ........... 8–12 Velocity Form of the PID Equation ................8–12 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 17
PV Analog Filter ...................... 8–55 Creating an Analog Filter in Ladder Logic ............... 8–56 Use the DirectSOFT Filter Intelligent Box Instructions ..........8-57 FilterB Example ....................... 8-57 Ramp/Soak Generator ..................... 8–58 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 18
Standard Maintenance ..................... 9–2 Diagnostics ......................... 9–2 Diagnostics ....................... 9–2 Fatal Errors ....................... 9–2 Non-fatal Errors ......................9–2 V-memory Error Code Locations ................9–3 Special Relays (SP) Corresponding to Error Codes ............ 9–3 xiii DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 19
Bit Override Forcing ....................9–19 Bit Override Indicators .................... 9–19 Reset the PLC to Factory Defaults ................9–20 Chapter 10: LCD Display Panel Introduction to the DL06 LCD Display Panel ............10–2 Keypad .. 10–2 Snap-in installation ....................10–3 Display Priority ......................10–4 Menu Navigation .....................
Page 20
Example program: alarm text from V-memory with embedded V-memory data .. 10–30 Appendix A: Auxiliary Functions Introduction .......................A–2 Purpose of Auxiliary Functions ..................A–2 Accessing AUX Functions via DirectSOFT ..............A–3 Accessing AUX Functions via the Handheld Programmer ..........A–3 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 21
AUX 75 Erase HPP EEPROM ..................A–9 AUX 76 Show EEPROM Type ..................A–9 AUX 8* — Password Operations ................A–9 AUX 81 Modify Password ..................A–9 AUX 82 Unlock CPU ....................A–10 AUX 83 Lock CPU....................A–10 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 22
Instructions ....................C–23 PLUS Drum Instructions ....................C–23 Clock/Calendar Instructions ..................C–24 MODBUS Instructions .....................C–24 ASCII Instructions ....................C–24 Appendix D: Special Relays DL06 PLC Special Relays ................... D–2 Startup and Real-Time Relays .................. D–2 xvii DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 23
Calculating Your Preset Values ................E–13 X Input Configuration .................... E–14 Writing Your Control Program ................E–15 Program Example 1: Counter Without Presets ............E–16 Program Example 2: Counter With Presets ............. E–18 xviii DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 25
Pulse Catch Timing Parameters ................E–72 Setup for Mode 50 ....................E–73 X Input Configuration .................... E–74 Program Example 1: Pulse Catch ................E–75 Mode 60: Discrete Inputs with Filter ..............E–76 Purpose ........................E–76 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 26
Signed vs. Unsigned Integers ..................I–8 AutomationDirect.com Products and Data Types .............I–9 DirectLOGIC PLCs...................... I–9 C-more/C-more Micro-Graphic Panels ............... I–9 Appendix J: European Union Directives (CE) European Union (EU) Directives ................J-2 Member Countries .....................J-2 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 27
Step 2: Load Number of Bytes to Transfer ..............K–10 Step 3: Specify Master Memory Area ..............K–11 Step 4: Specify Slave Memory Area ................K–12 Communications from a Ladder Program ...............K–13 Multiple Read and Write Interlocks .................K–13 xxii DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 28
Table of Contents MODBUS RTU Communications ................K–14 ASCII Communications ...................K–14 Index xxiii DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 29
Table of Contents Notes xxiv DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 30
Introduction ..................1–2 Conventions Used ................1–3 DL06 Micro PLC Overview ............... 1–4 I/O Quick Selection Guide ..............1–5 Quick Start ..................1–6 Steps to Designing a Successful System ......... 1–10 Questions and Answers about DL06 Micro PLCs ......1–12...
Thank you for purchasing a DL06 Micro PLC. This manual shows you how to install, program, and maintain all PLCs in the DL06 family. It also helps you understand how to interface them to other devices in a control system. This manual contains important information for personnel who will install DL06 PLCs and for the PLC programmer.
Key Topics for Each Chapter HAPTER Getting Started The beginning of each chapter will list the key topics that can be found in that chapter. In This Chapter... General Information ..............1-2 Specifications ................1-4 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
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.
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 guide to find the proper DL06 Micro PLC to interface to the field devices in your application. I/O Selection Guide...
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 •...
Page 36
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 AC(L) AC(N) 24V block or other external 12-24VDC power supply.
Page 37
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.
Page 38
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 on, use the MODE key on the Handheld PRogrammer to put the PLC in Program Mode, then switch to TERM.
DL06 system Power Up processes information. This involves not only program execution steps, but also involves Initialize Hardware the various modes of operation and memory layout characteristics. 1-10 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 40
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. • RLL diagram-style programming is the best tool for solving boolean logic and general CPU register/ accumulator manipulation.
Questions and Answers about DL06 Micro PLCs 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;...
Page 42
Chapter 1: Getting Started Q. Which devices can I connect to the communication ports of the DL06? A. Port 1: The port is RS-232C, fixed at 9600 baud, odd parity, address 1, and uses the proprietary K-sequence protocol. The DL06 can also connect to MODBUS RTU and DirectNET networks as a slave device through port 1.
Page 43
Chapter 1: Getting Started Notes 1-14 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 44
IrIng pecIfIcatIons In This Chapter... Safety Guidelines ................2–2 Orientation to DL06 Front Panel ............2–5 Mounting Guidelines ............... 2–7 Wiring Guidelines ................2–11 System Wiring Strategies ..............2–14 Wiring Diagrams and Specifications ..........2–30 Glossary of Specification Terms ............2–48...
• Local and State Agencies — many local governments and state governments have additional requirements above and beyond those described in the NEC Handbook. Check with your local Electrical Inspector or Fire Marshall office for information. DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
WARNING: This equipment is designed for use in Pollution Degree 2 environments (installed within an enclosure rated at least IP54). WARNING: Transient suppression must be provided to prevent the rated voltage from being exceeded by 140%. DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Chapter 2: Installation, Wiring, and Specifications Orientation to DL06 Front Panel Most connections, indicators and labels on the DL06 Micro PLCs are located on its front panel. The communication ports are located on front of the PLC, as are the option card slots and the mode selector switch.
Chapter 2: Installation, Wiring, and Specifications Terminal Block Removal The DL06 terminals are divided into two groups. Each group has its own terminal block. The outputs and power wiring are on one block, and the input wiring is on the other. In some instances, it may be desirable to remove the terminal block for easy wiring.
• Enclosure Selection and Component Dimensions Unit Dimensions The following diagram shows the outside dimensions and mounting hole locations for all versions of the DL06. Make sure you follow the installation guidelines to allow proper spacing from other components. 0.71"...
4. The ground terminal on the DL06 base must be connected to a single point ground. Use copper stranded wire to achieve a low impedance. Copper eye lugs should be crimped and soldered to the ends of the stranded wire to ensure good surface contact.
8. The DL06 systems are designed to be powered by 95–240 VAC or 12–24 VDC normally available throughout an industrial environment. Electrical power in some areas where the PLCs are installed is not always stable and storms can cause power surges.
Chapter 2: Installation, Wiring, and Specifications Environmental Specifications The following table lists the environmental specifications that generally apply to DL06 Micro PLCs. The ranges that vary for the Handheld Programmer are noted at the bottom of this chart. Certain output circuit types may have derating curves, depending on the ambient temperature and the number of outputs ON.
Chapter 2: Installation, Wiring, and Specifications Wiring Guidelines Connect the power input wiring for the DL06. Observe all precautions stated earlier in this manual. When the wiring is complete, close the connector covers. Do not apply power at this time.
DL06 Micro PLCs. Refer to the corresponding specification sheet which appears later in this chapter for specific information on wiring a particular PLC . Each terminal connection of the DL06 PLC can accept one 16 AWG wire or two 18 AWG size wires. Do not exceed this recommended capacity.
Chapter 2: Installation, Wiring, and Specifications Fuse Protection for Input and Output Circuits Input and Output circuits on DL06 Micro PLCs do not have internal fuses. In order to protect your Micro PLC, we suggest you add external fuses to your I/O wiring. A fast-blow fuse, with a lower current rating than the I/O bank’s common current rating, can be wired to...
2 comm. ports Input circuit To programming device 20 discrete Inputs or Operator interface The next figure shows the internal layout of DL06 PLCs, as viewed from the front panel. Power Filter 16 Discrete Outputs Commons Input Output Circuit...
PORT2 RUN STOP C-more operator interface touch panels use a provided 24 VDC plug-in power supply. Connect the DL06 to the serial connector on the rear of the C-more panel using the cable shown below. DL06 Micro PLC 15-pin 15-pin D-shell...
The DC-powered DL06 Micro PLCs have selectable sinking or sourcing inputs and either sinking or sourcing outputs. Any pair of input/output circuits shown below is possible with one of the DL06 models. Sinking Input...
Most DL06 input and output circuits are grouped into banks that share a common return path. The best indication of I/O common grouping is on the wiring label. The I/O common groups are separated by a bold line.
PLC DC input or output), one must be wired as sourcing and the other as sinking. Solid State Input Sensors The DL06’s DC inputs are flexible in that they detect current flow in either direction, so they can be wired as either sourcing or sinking. In the following circuit, a field device has an open- collector NPN transistor output.
Page 62
. Then calculate the power P (in watts), pull-up pull-up in order to size R properly. pull-up input (turn–on) input input – 0.7 supply supply – pull-up input pull-up pullup input 2-19 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
The figure below shows the relays and the internal wiring of the PLC. Note that each group is isolated from the other group of outputs. In the circuit below, all loads use the same AC power supply which powers the DL06 PLC. In this example, all commons are connected together.
140V. Example: Circuit with no Suppression Volts Oscilloscope 24 VDC Relay Coil (24V/125mA/3W, AutomationDirect part no. 750R-2C-24D) 2-21 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 65
As you can see, the transient voltage generated is much worse, peaking at over 50V. Driving an inductive load of this size without additional transient suppression is very likely to permanently damage the PLC output. 2-22 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 66
The most effective protection against transients from a DC coil is a flyback diode. A flyback diode can reduce the transient to roughly 1V over the supply voltage, as shown in this example. DC Flyback Circuit Volts Oscilloscope 24 VDC Sourcing Sinking 2-23 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 67
MOVs or bi-directional TVS diodes would install at the same location, but have no polarity concerns. DC MOV or TVS Diode Circuit 24 VDC ZL-TSD8-24 Transorb Module Sinking Sourcing 2-24 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 68
60VDC. If it were mounted across a 24V coil, transients of roughly 84V (if sinking output) or -60V (if sourcing output) could reach the PLC output. Many semiconductor PLC outputs cannot tolerate such levels. 2-25 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
If installed backwards, it short-circuits the supply when the relay energizes. Inductive Field Device PLC Relay Output Input Output – Common Common 2-26 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
INPUT: 12 - 24V 3 - 15mA In the next example, the first eight inputs are sinking, and the last twelve are sourcing. X13 X14 X23 N.C. N.C. +12 VDC +24 VDC 2-27 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Chapter 2: Installation, Wiring, and Specifications DC Output Wiring Methods DL06 DC output circuits are high-performance transistor switches with low on-resistance and fast switching times. Please note the following characteristics which are unique to the DC output type: • There is only one electrical common for all sixteen outputs. All sixteen outputs belong to one bank.
HSIO. While the HSIO circuit has six modes, we show wiring diagrams for two of the most popular modes in this chapter. The high-speed input interfaces to points X0– X3. Properly configured, the DL06 can count quadrature pulses at up to 7kHz from an incremental encoder as shown below.
Chapter 2: Installation, Wiring, and Specifications Wiring Diagrams and Specifications The remainder of this chapter provides detailed technical information for the DL06 PLCs. A basic wiring diagram, equivalent I/O circuits, and specification tables are laid out for each PLC. D0–06AA I/O Wiring Diagram The D0–06AA PLC has twenty AC inputs and sixteen AC outputs.
Page 74
10mA OFF to ON Response ON to OFF Response 1 ms +1/2 cycle Status Indicators Logic Side Commons 4 channels / common x 4 banks (isolated) Fuses None (external recommended) 2-31 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 76
5mA @ 5VDC OFF to ON Response < 15ms ON to OFF Response < 10ms Status Indicators Logic Side Commons 4 channels / common x 4 banks (isolated) Fuses None (external recommended) 2-33 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
131˚F Ambient Temperature ( ˚ ˚ Equivalent Output Circuit Internal module circuitry OUTPUT Optical Isolator To LED 12-24 Source Sink Input point wiring Standard Inputs (X4-X23) High Speed Inputs (X0-X3) 2-34 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 78
10mA OFF to ON Response ON to OFF Response 1 ms +1/2 cycle Status Indicators Logic Side Commons 4 channels / common x 4 banks (isolated) Fuses None (external recommended) 2-35 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
55°C 131°F Ambient Temperature ( ° ° DC Pulse Outputs (Y0-Y1) DC Standard Outputs (Y2-Y17) 12-24 VDC Input point wiring Source Sink DC Standard Inputs (X4-X23) High Speed Inputs (X0-X3) 2-36 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 80
< 10µs < 10µs ON to OFF Response < 20µs < 60µs Status Indicators Logic Side Logic Side Commons 4 channels / common x 4 banks non-isolated Fuses None (external recommended) 2-37 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
55˚C 131˚F Ambient Temperature ( ˚ ˚ DC Standard Outputs (Y2-Y17) 12-24 VDC DC Pulse Outputs (Y0-Y1) Input point wiring Source Sink High Speed Inputs (X0-X3) DC Standard Inputs (X4-X23) 2-38 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 82
< 10µs ON to OFF Response < 20µs < 0.5 µs Status Indicators Logic Side Logic Side Commons 4 channels / common x 4 banks (non-isolated) Fuses None (external recommended) 2-39 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 84
Smallest Recommended Load OFF to ON Response < 15ms ON to OFF Response < 10ms Status Indicators Logic Side Commons 4 channels / common x 4 banks (isolated) Fuses None (external recommended) 2-41 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
12-24 VDC 55°C 131°F Ambient Temperature ( ° ° Input point wiring Source Sink DC Pulse Outputs (Y0-Y1) High Speed Inputs (X0-X3) DC Standard Outputs (Y2-Y17) Standard Input Circuit (X4-X23) 2-42 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 86
< 10µs < 10µs ON to OFF Response < 20µs < 60µs Status Indicators Logic Side Logic Side Commons 4 channels / common x 4 banks (non-isolated) Fuses None (external recommended) 2-43 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
55˚C 131˚F Ambient Temperature ( ˚ ˚ 12-24 VDC DC Standard Outputs (Y2-Y17) Input point wiring Source Sink High Speed Inputs (X0-X3) DC Pulse Outputs (Y0-Y1) Standard Input Circuit (X4-X23) 2-44 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 88
< 10µs ON to OFF Response < 20µs < 0.5 ms Status Indicators Logic Side Logic Side Commons 4 channels / common x 4 banks (non-isolated) Fuses None (external recommended) 2-45 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Standard Input Circuit (X4-X23) Derating Chart for Relay Outputs Points 2.0A Y0 - Y7 Y10 - Y17 55˚C 131˚F Ambient Temperature ( ˚ ˚ Standard Output Circuit High-speed Input Circuit (X0-X3) DR-D 2-46 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 90
OFF to ON Response < 15ms ON to OFF Response < 10ms Status Indicators Logic Side Commons 4 channels / common x 4 banks isolated commons Fuses None (external recommended) 2-47 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
The time the module requires to process an ON to OFF state transition. Status Indicators The LEDs that indicate the ON/OFF status of an input or output point. All LEDs on DL06 Micro PLCs are electrically located on the logic side of the input or output circuit.
Page 92
CPU Operation ................3–12 I/O Response Time ................. 3–17 CPU Scan Time Considerations ............3–20 Memory Map ................. 3–25 DL06 System V-memory ..............3–29 DL06 Aliases ................... 3–31 DL06 Memory Map ............... 3–32 X Input/Y Output Bit Map .............. 3–33 Stage Control/Status Bit Map ............
Operator interface NOTE: The High-Speed I/O function (HSIO) consists of dedicated but configurable hardware in the DL06. It is not considered part of the CPU because it does not execute the ladder program. For more on HSIO operation, see Appendix E.
Math (Integer and floating point) Drum Sequencer Instruction Time of Day Clock/Calendar Internal diagnostics Password security System error log User error log Optional D2-BAT-1 available Battery backup (not included with unit) DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Cables are available that allow you to quickly and easily connect a Handheld Programmer or a personal computer to the DL06 PLCs. However, if you need to build your cable(s), use the pinout descriptions shown below, or use the Tech Support/Cable Wiring Diagrams located on our website.
Connecting the Programming Devices If you’re using a Personal Computer with the DirectSOFT programming package, you can connect the computer to either of the DL06’s serial ports. For an engineering office environment (typical during program development), this is the preferred method of programming.
Mode Switch Functions The mode switch on the DL06 PLC provides positions for enabling and disabling program changes in the CPU. Unless the mode switch is in the TERM position, RUN and STOP mode changes will not be allowed by any interface device, (handheld programmer, DirectSOFT programming package or operator interface).
MODE Key Mode of Operation at Power-up The DL06 CPU will normally power-up in the mode that it was in just prior to the power interruption. For example, if the CPU was in Program Mode when the power was disconnected, the CPU will power-up in Program Mode (see warning note below).
An optional lithium battery is available to maintain the system RAM retentive memory when the DL06 system is without external power. Typical CPU battery life is five years, which includes PLC runtime and normal shutdown periods. However, consider installing a fresh battery if your battery has not been changed recently and the system will be shut down for a period of more than ten days.
• AUX 23 — Clear Ladder Range • AUX 24 — Clear all Ladders • AUX 31 — Clear V-memory Initializing System Memory The DL06 Micro PLC maintains system parameters in a memory area often referred to as the scratchpad. In some cases, you may make changes to the system setup that will be stored in system memory.
Appendix A contains detailed information about auxiliary functions. WARNING: The DL06 CPUs do not come with a battery. The super capacitor will retain the values in the event of a power loss, but only for a short period of time, depending on conditions (typically 4 to 7 days).
Chapter 3: CPU Specifications and Operation Using a Password The DL06 PLCs allow you to use a password to help minimize the risk of unauthorized program and/or data changes. Once you enter a password you can lock the PLC against access.
• CPU Timing — The two important areas we discuss are the I/O response time and the CPU scan time. • CPU Memory Map — DL06 CPUs offer a wide variety of resources, such as timers, counters, inputs, etc. The memory map section shows the organization and availability of these data types.
Changes during Run Mode become effective immediately. Make sure you thoroughly consider the impact of any changes to minimize the risk of personal injury or damage to equipment. 3-13 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
The CPU performs both read and write requests during this segment. Update Clock, Special Relays and Special Registers The DL06 CPUs have an internal real-time clock and calendar timer which is accessible to the application program. Special V-memory locations hold this information. This portion of the execution cycle makes sure these locations get updated on every scan.
Solve PID Loop Equations The DL06 CPU can process up to 8 PID loops. The loop calculations are run as a separate task from the ladder program execution, immediately following it. Only loops which have been configured are calculated, and then only according to a built-in loop scheduler. The sample time (calculation interval) of each loop is programmable.
Probably one of the more important things that occurs during this segment is the scan time calculation and watchdog timer control. The DL06 CPU has a watchdog timer that stores the maximum time allowed for the CPU to complete the solve application segment of the scan cycle.
I/O Response T ime In this case, you can calculate the response time by simply adding the following items: Input Delay +(2 x Scan Time) + Output Delay = Response Time 3-18 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
It does not use the new status to update the image register. Therefore, any regular instructions that follow will still use the image register values. Any immediate instructions that follow will access the I/O again to update the status. 3-19 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Report the error, set flag, outputs is 41.1 µS. Don’t confuse this with the I/O register, turn on LED response time that was discussed earlier. Fatal error Force CPU into PGM mode 3-20 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Run Mode 27.0 µs Maximum NOTE: The Clock/Calendar is updated while there is energy on the super-capacitor. If the super- capacitor is discharged, the real time and date is lost. 3-21 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
TOTAL TIME = (Program execution time + Overhead) x 1.18 The program above takes only 51.11 µs to execute during each scan. The DL06 spends 0.18ms on internal timed interrupt management, for every 1ms of instruction time. The total scan time is calculated by adding the program execution time to the overhead (shown above) and multiplying the result (ms) by 1.18.
Our circles are in an array of square containers to the right. To access a resource, our PLC instruction will address its location using the octal references shown. If these were counters, CT14 would access the black circle location. 3-23 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
When the timer reaches the preset of 3 seconds (K of 30) timer status contact T1 turns on. When T1 turns on, output Y12 turns on. Turning off X0 resets the timer. 3-26 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
CTA0 (Counter Accumulated) for Counter 0 and CTA01 for Counter 1. V1003 The primary reason for this is programming flexibility. The example shows how you can use relational contacts to monitor the counter values. V1003 V1003 3-27 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
SP5: 100 ms clock 50 ms and de-energize for 50 ms because SP5 is a SP6: 50 ms clock pre–defined relay that will be on for 50 ms and off for 50 ms. 3-28 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
DL06 System V-memory System Parameters and Default Data Locations (V Data Type) The DL06 PLCs reserve several V-memory locations for storing system parameters or certain types of system data. These memory locations store things like the error codes, High-Speed I/O data, and other types of system setup information.
Page 121
Scan — stores the minimum scan time that has occurred since the last Program Mode to Run Mode V7776 transition (milliseconds) V7777 Scan — stores the maximum scan rate since the last power cycle (milliseconds) 3-30 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
V41200 is the word memory reference for discrete bits SP0 through SP17, therefore, its alias is VSP0. V41201 is the V41200 VSP0 word memory reference for discrete bits SP20 through SP37, therefore, its alias is VSP20. 3-31 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
NOTE 1: This area can be used for additional Data Words. NOTE 2: The DL06 systems have 20 fixed discrete inputs and 16 fixed discrete outputs, but the total can be increased by up to 64 inputs or 64 outputs, or a combination of both.
This table provides a listing of individual input and output points associated with each V-memory address bit for the DL06’s twenty integrated physical inputs and 16 integrated physical outputs in addition to up to 64 inputs and 64 outputs for option cards. Actual available references are X0 to X777 (V40400 –...
V40232 V40033 V40233 V40034 V40234 V40035 V40235 V40036 V40236 V40037 V40237 This table is continued on the next page. NOTE: This memory area can be used for additional Data Words. 3-39 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 131
1777 1776 1775 1774 1773 1772 1771 1770 1767 1766 1765 1764 1763 1762 1761 1760 V40077 V40277 This table is continued on the next page. NOTE: This memory area can be used for additional Data Words. 3-40 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 132
2777 2776 2775 2774 2773 2772 2771 2770 2767 2766 2765 2764 2763 2762 2761 2760 V40137 V40337 This table is continued on the next page. NOTE: This memory area can be used for additional Data Words. 3-41 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 133
V40376 3777 3776 3775 3774 3773 3772 3771 3770 3767 3766 3765 3764 3763 3762 3761 3760 V40177 V40377 NOTE: This memory area can be used for additional Data Words. 3-42 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 134
DL06 System Design Strategies ............4–2 Module Placement ................4–3 Power Budgeting ................4–5 Configuring the DL06’s Comm Ports ..........4–7 Connecting to MODBUS and DirectNET Networks ......4–9 Non–Sequence Protocol (ASCII In/Out and PRINT) ......4–11 Network Slave Operation ............... 4–12 Network Master Operation ............
The DL06 PLCs offer a number of different I/O configurations. Choose the configuration that is right for your application, and keep in mind that the DL06 PLCs offer the ability to add I/O with the use of option cards. Although remote I/O isn’t available, there are many option cards available.
Chapter 4: System Design and Configuration Module Placement Slot Numbering The DL06 has four slots, which are numbered as follows: Slot 1 Slot 2 Slot 3 Slot 4 4–3 DL06 Micro PLC User Manual; 3rd Edition Rev. E...
WARNING: If you manually configure an I/O slot, the I/O addressing for the other modules may change. This is because the DL06 CPUs do not allow you to assign duplicate I/O addresses. You must always correct any I/O configuration errors before you place the CPU in RUN mode. Uncorrected errors can cause unpredictable machine operation that can result in a risk of personal injury or damage to equipment.
24VDC power. The 24VDC output can be used to power external devices. For power budgeting, start by considering the power supplied by the base unit. All DL06 PLCs supply the same amount of 5VDC power. Only the AC units offer 24VDC auxiliary power. Be aware of the trade-off between 5VDC power and 24VDC power.
Page 139
Auxiliary 24VDC used to power V+ terminal of D0-06DD1/-D sinking outputs. NOTE 2: If the PLC’s auxiliary 24VDC power source is used to power the sinking outputs, use power choice A, above. 4–6 DL06 Micro PLC User Manual; 3rd Edition Rev. E...
This section describes how to configure the CPU’s built-in networking ports for either MODBUS or DirectNET. This will allow you to connect the DL06 PLC system directly to MODBUS networks using the RTU protocol, or to other devices on a DirectNET network.
Chapter 4: System Design and Configuration Choosing a Network Specification The DL06 PLC’s multi-function port gives you the option of using RS-232C, RS-422, or RS-485 specifications. First, determine whether the network will be a 2-wire RS–232C type, a 4-wire RS–422 type, or a 2-wire/4-wire RS-485 type.
• RTS ON / OFF Delay Time: The RTS ON Delay Time specifies the time the DL06 waits to send the data after it has raised the RTS signal line. The RTS OFF Delay Time specifies the time the DL06 waits to release the RTS signal line after the data has been sent.
• RTS ON / OFF Delay Time: The RTS ON Delay Time specifies the time the DL06 waits to send the data after it has raised the RTS signal line. The RTS OFF Delay Time specifies the time the DL06 waits to release the RTS signal line after the data has been sent.
Non–Sequence Protocol (ASCII In/Out and PRINT) Non-Sequence Port Configuration Configuring port 2 on the DL06 for Non–Sequence allows the CPU to use port 2 to either read or write raw ASCII strings using the ASCII instructions. See the ASCII In/Out instructions and the PRINT instruction in chapter 5.
Write a value into a group of registers The MODBUS function code determines whether the access is a read or a write, and whether to access a single data point or a group of them. The DL06 supports the MODBUS function codes described below.
2. Convert C54 into decimal (44). 3. Add the starting address for the range (3072). 4. Use the MODBUS data type from the table. Control Relays (CR) C0 – C77 3072 – 3583 Coil 4–14 DL06 Micro PLC User Manual; 3rd Edition Rev. E...
Coil Network Master Operation This section describes how the DL06 can communicate on a MODBUS or DirectNET network as a master. For MODBUS networks, it uses the MODBUS RTU protocol, which must be interpreted by all the slaves on the network. Both MODBUS and DirectNet are single master/multiple slave networks.
Chapter 4: System Design and Configuration When using the DL06 PLC as the master station, simple RLL instructions are used to initiate the requests. The WX instruction initiates network write operations, and the RX instruction initiates network read operations. Before executing either the WX or RX commands, we will need to load data related to the read or write operation onto the CPU’s accumulator stack.
The number of bytes specified also depends on the type of data you want to obtain. For example, the DL06 Input points can be accessed by V-memory locations or as X input locations. However, if you only want X0 – X27, you’ll have to use the X input data type because the V-memory locations can only be accessed in 2-byte increments.
When using MODBUS, the RX instructions use function 3 by default, to read MODBUS holding registers (Address 40001). The DL05/DL06, DL250-1/260, DL350, DL454 support function 04, read input register (Address 30001). To use function 04, put the number “4” into the most significant position (4xxx) of the total number of bytes.
MODBUS Function Codes Supported The MODBUS function code determines whether the access is a read or a write, and whether to access a single data point or a group of them. The DL06 supports the MODBUS function codes described below.
Chapter 4: System Design and Configuration MODBUS Read from Network(MRX) The MODBUS Read from Network (MRX) instruction is used by the DL06 network master to read a block of data from a connected slave device and to write the data into V–memory addresses within the master.
MRX Number of Elements MRX Number of Elements DL06 Range Operand Data Type V–memory Constant 1–2000 MRX Exception Response Buffer MRX Exception Response Buffer Operand Data Type DL06 Range V–memory 4–24 DL06 Micro PLC User Manual; 3rd Edition Rev. E...
The MODBUS Write to Network (MWX) instruction is used to write a block of data from the network masters’s (DL06) memory to MODBUS memory addresses within a slave device on the network. The instruction allows the user to specify the MODBUS Function Code, slave station address, starting master and slave memory addresses, number of elements to transfer, MODBUS data format and the Exception Response Buffer.
MWX Number of Elements MWX Number of Elements Operand Data Type DL06 Range V–memory Constant 1–2000 MWX Exception Response Buffer MWX Exception Response Buffer Operand Data Type DL06 Range V–memory 4–26 DL06 Micro PLC User Manual; 3rd Edition Rev. E...
Chapter 4: System Design and Configuration MRX/MWX Example in DirectSOFT DL06 port 2 has two Special Relay contacts associated with it (see Appendix D for comm port special relays). One indicates “Port busy”(SP116), and the other indicates ”Port Communication Error”(SP117). The “Port Busy” bit is on while the PLC communicates with the slave.
Page 161
01 - Read Coil Status Start Slave Memory Address: Start Master Memory Address: Number of Elements: Modbus Data Type: 584/984 Mode Exception Response Buffer: V400 Instruction interlock bit C100 ( RST ) 4–28 DL06 Micro PLC User Manual; 3rd Edition Rev. E...
Page 162
hapter hapter hapter hapter hapter hapter tandard TanDarD nStructIonS nsTrucTions In This Chapter Introduction ..................5–2 Using Boolean Instructions ............... 5–5 Boolean Instructions ..............5–10 Comparative Boolean ..............5–26 Immediate Instructions ..............5–32 Timer, Counter and Shift Register Instructions ....... 5–39 Accumulator/Stack Load and Output Data Instructions ....
Chapter 5: Standard RLL Instructions Introduction DL06 Micro PLCs offer a wide variety of instructions to perform many different types of operations. This chapter shows you how to use each standard Relay Ladder Logic (RLL) instruction. In addition to these instructions, you may also need to refer to the Drum instruction in Chapter 6, the Stage programming instructions in Chapter 7, PID in Chapter 8, LCD in Chapter 10 and programming for analog modules in D0-OPTIONS-M.
Page 164
5–167 Invert (INV) 5–129 Or Negative Differential (ORND) 5–21 5–200 Or Not (ORN) 5–12 Load (LD) 5–57 Or Not (ORN) 5–30 Load Accumulator Indexed (LDX) 5–61 Or Not Bit-of-Word (ORN) 5–13 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 165
SETBIT 5–144 Up Down Counter (UDC) 5–49 Shift Left (SHFL) 5–121 Write to Intelligent I/O Module (WT) 5-195 Shift Register (SR) 5–51 Write to Network (WX) 5–198 Shift Right (SHFR) 5–122 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
END Statement All DL06 programs require an END statement as the last instruction. This tells the CPU that this is the end of the program. Normally, any instructions placed after the END statement will not be executed. There are exceptions to this, such as interrupt routines, etc.
The following example shows how you can use the AND instruction to continue a rung with more conditional outputs. DirectSOFT Direct SOFT32 Example Handheld Mnemonics STR X0 AND X1 OUT Y0 AND X2 OUT Y1 AND X3 OUT Y2 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
OR X2 ANDSTR OUT Y0 Combination Networks You can combine the various types of series and parallel branches to solve almost any application problem.The following example shows a simple combination network. DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Boolean Stack There are limits to how many elements you can include in a rung. This is because the DL06 PLCs use an 8-level boolean stack to evaluate the various logic elements. The boolean stack is a temporary storage area that solves the logic for the rung. Each time the program encounters a STR instruction, the instruction is placed on the top of the stack.
Chapter 5: Standard RLL Instructions Immediate Boolean The DL06 Micro PLCs can usually complete an operation cycle in a matter of milliseconds. However, in some applications you may not be able to wait a few milliseconds until the next I/O update occurs. The DL06 PLCs offer Immediate input and outputs which are special boolean instructions that allow reading directly from inputs and writing directly to outputs during the program execution portion of the CPU cycle.
In the following Store example, when input X1 is on, output Y2 will energize. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes In the following Store Not example, when input X1 is off output Y2 will energize. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes STRN 5-10 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 172
Handheld Programmer Keystrokes SHFT In the following Store Not Bit-of-Word example, when bit 12 of V-memory location V1400 is off, output Y2 will energize. DirectSOFT DirectSOFT32 B1400.12 Handheld Programmer Keystrokes STRN SHFT 5-11 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 173
Direct SOFT32 Handheld Programmer Keystrokes In the following Or Not example, when input X1 is on or X2 is off, output Y5 will energize. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes 5-12 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 174
SHFT In the following Or Bit-of-Word example, when input X1 is on or bit 7 of V1400 is off, output Y7 will energize. DirectSOFT DirectSOFT32 B1400.7 Handheld Programmer Keystrokes SHFT 5-13 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 175
Direct SOFT32 Handheld Programmer Keystrokes In the following And Not example, when input X1 is on and X2 is off output Y5 will energize. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes ANDN 5-14 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 176
In the following And Not Bit-of-Word example, when input X1 is on and bit 4 of V1400 is off output Y5 will energize. DirectSOFT DirectSOFT32 B1400.4 Handheld Programmer Keystrokes ANDN SHFT 5-15 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 177
In the following Or Store example, the branch consisting of X1 and X2 have been ored with the branch consisting of X3 and X4. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes ORST 5-16 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 178
Outputs 0-777 Control Relays 0–1777 In the following example, when X1 or X4 is on, Y2 will energize. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes OR OUT INST# INST# OR OUT 5-17 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 179
X1 will override the logic state controlled by X0. To avoid this situation, multiple outputs using the same location must not be used in programming. B1400.3 B1400.3 5-18 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 180
0–777 Outputs 0–777 Control Relays 0–1777 In the following example, every time X1 makes an Off-to-On transition, C0 will energize for one scan. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT SHFT 5-19 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 181
DirectSOFT Handheld Programmer Keystrokes DirectSOFT32 SHFT In the following example, each time X1 makes an On-to-Off transition, Y4 will energize for one scan. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT 5-20 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 182
In the following example, Y 5 will energize whenever X1 is on, or for one CPU scan when X2 transitions from On to Off. DirectSOFT Handheld Programmer Keystrokes DirectSOFT32 SHFT 5-21 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 183
Handheld Programmer Keystrokes SHFT In the following example, Y5 will energize for one CPU scan whenever X1 is on and X2 transitions from On to Off. DirectSOFT Handheld Programmer Keystrokes DirectSOFT32 SHFT 5-22 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 184
In the following example when X1 is on, Y2 through Y5 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes In the following example when X1 is on, Y2 through Y5 will be reset or de–energized. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes 5-23 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 185
B1400.1 Handheld Programmer Keystrokes SHFT In the following example, when X2 turns on, bit 1 in V1400 is reset to the off state. DirectSOFT DirectSOFT32 B1400.1 Handheld Programmer Keystrokes SHFT 5-24 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 186
Handheld Programmer Keystrokes INST# In some cases, you may want certain output points in the specified pause range to operate normally. In that case, use Aux 58 to over-ride the Pause instruction. 5-25 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
DirectSOFT32 V2000 K4933 SHFT In the following example, when the value in V-memory location V2000 / = 5060, Y3 will energize. DirectSOFT Handheld Programmer Keystrokes DirectSOFT32 SHFT V2000 K5060 STRN 5-26 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 188
In the following example, when the BCD value in V-memory location V2000 = 3916 or V2002 / = 2500, Y3 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT V2000 K3916 V2002 K2500 SHFT 5-27 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 189
In the following example, when the BCD value in V-memory location V2000 = 5000 and V2002 / = 2345, Y3 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes V2000 K5000 V2002 K2345 SHFT SHFT 5-28 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 190
Handheld Programmer Keystrokes DirectSOFT32 V2000 K1000 SHFT In the following example, when the value in V-memory location V2000 < 4050, Y3 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes V2000 K4050 SHFT STRN 5-29 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 191
In the following example when the BCD value in V-memory location V2000 = 1000 or V2002 < 2500, Y3 will energize. DirectSOFT Handheld Programmer Keystrokes DirectSOFT32 SHFT V2000 K1000 SHFT V2002 K2500 5-30 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 192
In the following example, when the value in V-memory location V2000 = 7000 and V2002 < 2500, Y3 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT V2000 K7000 V2002 K2500 SHFT ANDN SHFT 5-31 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Implied The status of the contact will be opposite the status of the Used associated input point at the time the instruction is executed. The image register is not updated. 5-32 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 194
In the following example, when X1 and X2 are on, Y5 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT In the following example, when X1 is on and X2 is off, Y5 will energize. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT ANDN 5-33 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 195
DirectSOFT32 Handheld Programmer Keystrokes OUTI INST# In the following example, when X1 or X4 is on, Y2 will energize. DirectSOFT Handheld Programmer Keystrokes DirectSOFT32 OR OUTI INST# OR OUTI INST# 5-34 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 196
7 6 5 Acc. OUTIF Copy the value in the lower Constant Location 8 bits of the accumulator to Y30-Y37 Handheld Programmer Keystrokes NEXT NEXT NEXT NEXT SHFT ANDST SHFT 5-35 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 197
In the following example, when X1 is on, Y5 through Y22 will be reset (off) in the image register and on the corresponding output module(s). DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes RSTI SHFT 5-36 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 198
7 6 5 Acc. OUTI V40502 Output the value in the accumulator to output points Y40 to Y57 Location V40502 Handheld Programmer Keystrokes NEXT NEXT NEXT NEXT SHFT ANDST SHFT NEXT 5-37 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 199
Acc. OUTIF Location Constant Copy the value of the lower 8 bits of the accumulator to Y30 - - Y37 Handheld Programmer Keystrokes NEXT NEXT NEXT NEXT SHFT ANDST SHFT 5-38 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
1/10 Seconds NOTE: Decimal points are not used in these timers, but the decimal point is implied. The preset and current value for all four timers is in BCD format. 5-39 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 201
You can perform functions when the timer reaches the specified preset using the discrete status bit. Or, use comparative contacts to perform functions at different time intervals, based on one timer. The examples on the following page show these two methods of programming timers. 5-40 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
0 and the comparative contacts will turn off Y3, Y4, and DirectSOFT Timing Diagram Direct SOFT32 Seconds TA20 TA20 TA20 Current Value 1/10th Seconds Handheld Programmer Keystrokes SHFT SHFT SHFT 5-41 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 203
DirectSOFT uses separate references, such as “T2” for discrete status bit for Timer T2, and “TA2” for the current value of Timer T2. 5-42 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
9999. The timing diagram below shows the relationship between the counter input, associated discrete bit, current value, counter preset and reset instruction. SGCNT Current Counter preset Value Counts 5-44 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 206
** With the HPP, both the Counter discrete status bits and current value are accessed with the same data reference. DirectSOFT uses separate references, such as “CT2” for discrete status bit for Counter CT2, and “CTA2” for the current value of Counter CT2. 5-45 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
0, and the comparative contacts will turn off. DirectSOFT DirectSOFT32 Counting diagram CTA2 CTA2 Current Value CTA2 Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT SHFT SHFT 5-46 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 208
** With the HPP, both the Counter discrete status bits and current value are accessed with the same data reference. DirectSOFT uses separate references, such as “CT2” for discrete status bit for Counter CT2, and “CTA2” for the current value of Counter CT2. 5-47 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
CT2 will be held in V-memory location V1002 (CTA2). DirectSOFT Counting diagram DirectSOFT32 SGCNT CTA2 CTA2 Current CTA2 Value Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT SHFT SHFT SHFT 5-48 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 210
** With the HPP, both the Counter discrete status bits and current value are accessed with the same data reference. DirectSOFT uses separate references, such as “CT2” for discrete status bit for Counter CT2, and “CTA2” for the current value of Counter CT2. 5-49 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
(X3) turns on, the counter status bit will turn off, the current value will be 0, and the comparative contacts will turn off. DirectSOFT Counting Diagram DirectSOFT32 V2000 CTA2 CTA2 Current Value Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT SHFT 5-50 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 212
Handheld Programmer Keystrokes Data Input From Clock Input SHFT SHFT SHFT Reset Input Inputs on Successive Scans Shift Register Bits Data Clock Reset 0-1-0 0-1-0 0-1-0 0-1-0 0-1-0 Indicates Indicates 5-51 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Accumulator/Stack Load and Output Data Instructions Using the Accumulator The accumulator in the DL06 internal CPUs is a 32-bit register which is used as a temporary storage location for data that is being copied or manipulated in some manner. For example, you have to use the accumulator to perform math operations such as add, subtract, multiply, etc.
(V2006 & V2007) V2006 Acc. Add the value in the accumulator with the value in V2006 and V2007 OUTD V2010 V2011 V2010 Copy the value in the accumulator to V2010 and V2011 5-53 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
POP is executed, the value which was in the accumulator is cleared and the value that was on top of the stack is in the accumulator. The values in the stack are shifted up one position in the stack. 5-54 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
(commonly known as indirect addressing). Pointers allow instructions to obtain data from V-memory locations referenced by the pointer value. NOTE: DL06 V-memory addressing is in octal. However, the pointers reference a V-memory location with values viewed as HEX. Use the Load Address (LDA) instruction to move an address into the pointer location.
Page 217
V2101 P 2000 contains the value 2635 V2102 V2100 V2103 Accumulator V2104 V2105 Copy the data from the lower 16 bits of the accumulator to V2200 V2200 V 2200 V2201 5-56 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 218
16 bits of the accumulator Acc. V2010 Copy the value in the lower 16 bits of the accumulator to V2010 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT 5-57 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 219
Load the value in V2000 and V2001 into the 32 bit accumulator Acc. OUTD V2011 V2010 V2010 Copy the value in the 32 bit accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT 5-58 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 220
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 OUTF Location Constant Y6 Y5 Copy the value from the specified number of bits in the accumulator to Y0 – Y6 Handheld Programmer Keystrokes SHFT SHFT ANDST SHFT SHFT 5-59 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 221
Used value and loads the HEX value into the accumulator. This O aaa instruction is useful when an address parameter is required, since all addresses for the DL06 system are in octal. Operand Data Type DL06 Range Octal Address See memory map...
Page 222
Copy the value in the lower is 2345 16 bits of the accumulator Level 7 to V1500 Level 8 Handheld Programmer Keystrokes V1500 SHFT ANDST SHFT ANDST PREV PREV PREV 5-61 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 223
16 bits of the accumulator The unused accumulator to V2000 DLBL bits are set to zero Acc. DLBL NCON Offset 0 V2000 K3333 NCON Offset 1 K2323 NCON Offset 2 K4549 5-62 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 224
V1401. Suppose that now we want to retrieve that number. Just use the Load Real with the V data type, as shown to the right. Next we could perform real math on it, or convert it to a binary number. 5-63 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 225
Handheld Programmer Keystrokes V2000 SHFT ANDST Load the value in V2000 and V2001 into the accumulator Acc. OUTD SHFT V2010 Copy the value in the accumulator to V2010 and V2011 V2010 V2011 5-64 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 226
(32 bits) to the accumulator and shifts each Used value in the stack up one level. Discrete Bit Flags Description SP63 ON when the result of the instruction causes the value in the accumulator to be zero. 5-65 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 229
The unused accumulator OUTM 8 bits of the lower 16 bits of bits are set to zero V1500 the accumulator to 1500 Acc. Handheld Programmer Keystrokes V1500 SHFT ANDST SHFT ORST 5-68 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 Acc. V2010 Copy the lower 16 bits of the accumulator to V2010 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-69 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 231
0 0 1 0 1 0 0 0 0 0 36476A38 Acc. OUTD V2010 Copy the value in the V2011 V2010 accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT SHFT SHFT 5-70 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 232
OUTF Acc. Copy the value in the lower 4 bits in accumulator to C20-C23 Location Constant Handheld Programmer Keystrokes SHFT NEXT NEXT NEXT NEXT ANDST SHFT NEXT SHFT PREV PREV 5-71 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 233
Acc. accumulator stack OUTD V1500 Copy the value in the accumulator to V1500 V1501 V1500 and 1501 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-72 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 234
0 1 1 0 1 0 1 0 0 1 1 1 1 0 1 0 Acc. V2010 Copy the value in the lower 16 bits of the accumulator to V2010 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-73 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 235
0 1 1 0 1 0 1 0 0 1 1 1 1 0 1 0 Acc. OUTD V2010 Copy the value in the accumulator to V2010 and V2011 V2010 V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT SHFT SHFT 5-74 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 236
C20-C23 Handheld Programmer Keystrokes Location Constant C23 C22 C21 C20 ON ON ON SHFT NEXT NEXT NEXT NEXT ANDST SHFT NEXT SHFT PREV PREV 5-75 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 237
Acc. OUTD V1500 Copy the value in the accumulator to V1500 and V1501 V1500 V1501 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-76 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 239
0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 Acc. V2010 Copy the value in the accumulator to V2010 and V2011 V2011 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT SHFT SHFT SHFT 5-78 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 240
OUTF Acc. Copy the specified number of bits from the accumulator to C20-C23 Location Constant Handheld Programmer Keystrokes SHFT NEXT NEXT NEXT NEXT ANDST SHFT SHFT NEXT SHFT PREV PREV 5-79 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 241
Acc. accumulator stack OUTD V1500 Copy the value in the accumulator to V1500 and V1501 V1501 V1500 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT 5-80 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 242
Acc. Compared with V2000 Compare the value in the V2000 accumulator with the value in V2000 SP60 Handheld Programmer Keystrokes SHFT SHFT ANDST SHFT SHFT ORST SHFT STRN SHFT 5-81 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 243
CMPD V2010 Compare the value in the V2011 V2010 accumulator with the value in V2010 and V2011 SP60 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT ORST SHFT STRN SHFT 5-82 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 244
The unused accumulator bits are set to zero Compare the value in the CMPF accumulator with the value of the specified discrete Acc. location (Y20- - Y23) Compared SP60 with 5-83 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 245
SP60 Acc. 5 Compared with Handheld Programmer Keystrokes Top of Stack SHFT ANDST SHFT ANDST SHFT SHFT ORST PREV NEXT NEXT NEXT SHFT 5-84 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 246
DirectSOFT DirectSOFT32 Load the real number representation for decimal 7 R7.0 into the accumulator Acc. Compare the value with the CMPR real number representation R6.0 for decimal 6 CMPR SP62 5-85 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
16 bits of the accumulator with the value in V2006 V2010 Copy the value in the lower V2010 16 bits of the accumulator to V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-86 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 248
V2006 and V2007 OUTD V2010 V2001 V2010 Copy the value in the accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT 5-87 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 249
ADDR R15.0 Add the real number 15.0 to the accumulator contents, which is in real number format. OUTD V1400 Copy the result in the accumulator to V1400 and V1401. 5-88 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 250
16 bits of the accumulator V2010 V2010 Copy the value in the lower 16 bits of the accumulator to V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT 5-89 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 251
The in V2006 and V2007 is subtracted from the value in the accumulator OUTD V2010 V2011 V2010 Copy the value in the accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT 5-90 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 252
129 - - 127 = 2 Implies 2 (exp 2) NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE format. You must use DirectSOFT for this feature 5-91 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 253
OUTD V2011 V2010 V2010 Copy the value in the accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT ORST ANDST SHFT 5-92 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 254
Move the result in the OUTD accumulator to V1402 V1402 and V1403 using the OUTD instruction. Handheld Programmer Keystrokes SHFT PREV SHFT SHFT SHFT ANDST SHFT SHFT SHFT PREV ANDST SHFT ORST ANDST SHFT 5-93 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 255
133 - - 127 = 6 Implies 2 (exp 6) NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE format. You must use DirectSOFT for this feature. 5-94 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 256
V2006 V2010 V2010 Copy the value in the lower 16 bits of the accumulator to V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-95 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 257
Copy the value in the V1501 V1500 accumulator to V1500 and V1501 Handheld Programmer Keystrokes Retrieve the remainder SHFT ANDST OUTD SHFT V1502 SHFT Copy the value into V1502 and V1503 5-96 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 258
127 - - 127 = 0 Implies 2 (exp 0) NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE format. You must use DirectSOFT for this feature. 5-97 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 259
In the following decrement example, when C5 makes an Off-to-On transition the value in V1400 is decreased by one. DirectSOFT V1400 V1400 Decrement the value in V1400 by “1”. V1400 Handheld Programmer Keystrokes NEXT NEXT NEXT NEXT SHFT 5-98 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 260
V1420 OUTD V1500 V1500 Copy the value in the lower 16bits of the accumulator to V1500 and V1501 Handheld Programmer Keyst rokes X(IN) SHFT SHFT OU T SHFT 5-99 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 261
SHFT S H F T S H F T ANDST S H F T S H F T SHFT OU T S H F T S H F T SHFT 5-100 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 262
(V1420) the accumulator Acc. V1500 Copy the value in the lower 16 bits of the accumulator to V1500 V1500 Handheld Programmer Keystrokes X(IN) SHFT SHFT SHFT SHFT 5-101 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 263
OUTD V1500 V1501 V1500 Copy the value in the accumulator to V1500 and V1501 Handheld Programmer Keystrokes Handheld Programmer Keystrokes X(IN) SHFT SHFT ANDST SHFT SHFT SHFT SHFT SHFT SHFT 5-102 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 264
OUTD V1500 Copy the value of the accumulator V1501 V1500 to V1500 and V1501 Handheld Programmer Keystrokes SHFT SHFT O UT SHFT 5-103 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 265
First stack location contains the binary value in V1420 the remainder V1500 Copy the value in the lower 16 V1500 bits of the accumulator to V1500 Handheld Programmer Keystrokes SHFT SHFT SHFT 5-104 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 266
In the following example when C5 is on, the value in V2000 is decreased by 1. V2000 DirectSOFT Handheld Programmer Keystrokes DECB SHFT V2000 SHFT Decrement the binary value V2000 in V2000 by“1” 5-105 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 267
C0–C3 Acc. Copy the lower 4 bits of the OUTF accumulator to discrete locations Y10–Y13 Handheld Programmer Keystrokes SHFT ANDST SHFT NEXT NEXT NEXT NEXT SHFT 5-106 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 268
ACC. Copy the lower 4 bits of the OUTF accumulator to discrete locations Y10- - Y13 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT NEXT NEXT NEXT NEXT SHFT 5-107 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 269
C0- - C3 Acc. Copy the lower 4 bits of the OUTF accumulator to discrete locations Y10- - Y13 Handheld Programmer Keystrokes SHFT ANDST SHFT NEXT NEXT NEXT NEXT ANDST ORST SHFT 5-108 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 270
First stack location contains Copy the lower 4 bits of the OUTF the remainder accumulator to discrete locations Y10- - Y13 Handheld Programmer Keystrokes SHFT ANDST SHFT NEXT NEXT NEXT NEXT SHFT 5-109 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 274
Level 1 S FT Level 2 A DST Level 3 S FT Level 4 A DST Level 5 S FT Level 6 Level 7 S FT Level 8 5-113 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 275
OU T D accumulator to V1500 Level 2 V1500 and V1501 Level 3 Level 4 Handheld Programmer Keystrokes Level 5 Level 6 Level 7 SHFT Level 8 ANDST SHFT ANDST SHFT SHFT 5-114 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 278
The remainder resides in the first stack location Level 1 SHFT Level 2 ANDST Level 3 SHFT ANDST Level 4 Level 5 SHFT Level 6 SHFT Level 7 Level 8 5-117 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 279
Chapter 5: Standard RLL Instructions Transcendental Functions The DL06 CPU features special numerical functions to complement its real number capability. The transcendental functions include the trigonometric sine, cosine, and tangent, and also their inverses (arc sine, arc cosine, and arc tangent). The square root function is also grouped with these other functions.
Page 280
NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE format. You must use DirectSOFT for entering real numbers, using the LDR (Load Real) instruction. 5-119 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 281
“1” V1500 V1500 Copy the value in the lower 16 bits of the accumulator to V1500 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT ORST PREV PREV PREV 5-120 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 283
0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 Acc. Copy the value in the accumulator to V2010 and V2011 V2011 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT 5-122 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 284
OUTD V1500 Copy the value in the Acc. accumulator to V1500 and V1501 9 C 1 4 V1501 V1500 Handheld Programmer Keystrokes SHFT ANDST SHFT INST# ANDST SHFT 5-123 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 286
5 bit binary value V2010 Copy the value in the lower 16 bits of the accumulator to V2010 V2010 Binary value for 12. Handheld Programmer Keystrokes SHFT ANDST SHFT INST# SHFT 5-125 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 287
0 0 0 0 1 0 0 0 0 0 0 0 0 pattern in the accumulator and set the corresponding bit position to a “1” Handheld Programmer Keystrokes SHFT ANDST SHFT INST# 5-126 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 288
Handheld Programmer Keys trokes E NT S T R S HF T E NT ANDS T S HF T E NT T MR S HF T E NT OU T 5-127 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 289
OUTD V2010 The BCD value Copy the BCD value in the copied to accumulator to V2010 and V2011 V2011 V2010 V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-128 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 290
1 1 1 1 1 1 0 1 1 0 1 0 1 1 1 1 Invert the binary bit pattern in the accumulator OUTD V2010 V2011 V2010 Copy the value in the accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT 5-129 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 291
H andheld Programmer Keys trokes E NT S T R S H F T E NT ANDS T S H F T E NT ANDS T S H F T E NT OU T 5-130 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 292
V1500 The real number (HEX) value Copy the real value in the copied to V1500 V1501 V1500 accumulator to V1500 and V1501 Handheld Programmer Keystrokes SHFT ANDST SHFT INST# SHFT 5-131 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 293
Acc. OUTD V1500 Copy the real value in the V1501 V1500 accumulator to V1500 and V1501 The binary number copied to V1500. Handheld Programmer Keystrokes SHFT ANDST SHFT INST# SHFT 5-132 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 294
Take the sine of the number in SINR 0.7071067 the accumulator, which is in radians. Copy the value in the OUTD 0.7071067 accumulator to V2000 V2000 and V2001. 5-133 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 295
HEX table (V1600) is specified in the ASCII to HEX instruction. The table below lists valid ASCII values for ATH conversion. ASCII Values Valid for ATH Conversion ASCII Value Hex Value ASCII Value Hex Value 5-134 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 296
Helpful Hint: — For parameters that require HEX values when referencing memory locations, the LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator. 5-135 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 297
SHFT SHFT ANDST SHFT ANDST SHFT The table below lists valid ASCII values for HTA conversion. ASCII Values Valid for HTA Conversion Hex Value ASCII Value Hex Value ASCII Value 5-136 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 298
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Copy the value in the accumulator to Y20- - Y57 Acc. Segment Labels Segment Labels Handheld Programmer Keystrokes ANDST SHFT SHFT SHFT 5-137 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 300
The digits are shuffled and the result resides in the accumulator. Digits to be shuffled (first stack location) Specified order (accumulator) Bit Positions Result (accumulator) 5-139 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 301
. OUTD V2010 V2011 V2010 V2011 V2010 V2011 V2010 Copy the value in the accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT ANDST SHFT SHFT ANDST SHFT 5-140 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 303
When an offset is outside of the source information boundaries, then unknown data values will be transferred into the destination table. 5-142 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 304
V2000 V2000 is the destination starting address for the data to be copied. Handheld Programmer Keystrokes SHFT SHFT ANDST SHFT SHFT ANDST SHFT ANDST ANDST ANDST SHFT ORST INST# ORST 5-143 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 305
17 + 14 = 34 octal. The following program shows how to set 7 6 5 4 3 2 1 the bit as shown to a “1”. 5-144 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 306
O 3000 accumulator. This is the table beginning. Set bit 34 (octal) in the table SETBIT to a ”1”. O 34 Handheld Programmer Keystrokes SHFT PREV ANDST SHFT ANDST SHFT NEXT 5-145 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 307
F ill the table with the value F ILL V1603 in V1400 V1400 V1604 V1605 Handheld Programmer Keystrokes Handheld Programmer Keys trokes SHFT PREV ANDST SHFT ANDST SHFT ANDST ANDST 5-146 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 308
Find instruction. If a value is found equal to the search value, the offset (from the starting location of the table) where the value is located will reside in the accumulator. 5-147 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 309
LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator. NOTE: This instruction does not have an offset, such as the one required for the FIND instruction. 5-148 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 310
Handheld Programmer Keys trokes S T R X(IN) SHFT PREV ANDST K(C ON) S HF T OC T SHFT ANDST S HF T S HF T K(C ON) SHFT NEXT 5-149 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 311
The pointer for this instruction starts at 0 and resets when the table length is reached. At first glance it may appear that the pointer should reset to 0. However, it resets to 1, not 0. 5-150 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 312
SP56 Since Special Relays are reset at the end of the scan, this latch must follow the TTD instruction in the program 5-151 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 313
Table Pointer (Resets to 1, not 0) V1400 V1400 V1401 V1401 V1402 V1402 Destination Destination V1403 V1403 V1500 V1500 V1404 V1404 V1405 V1405 SP56 SP56 V1406 V1406 SP56 = OFF SP56 = OFF V1407 V1407 5-152 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 314
The pointer for this instruction can be set to start anywhere in the table. It is not set automatically. You must load a value into the pointer somewhere in your program. 5-153 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 315
Convert octal 1400 to HEX 300 and load the value into 300 and load the value into the accumulator. This is the the accumulator. This is the table pointer location. table pointer location. 5-154 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 316
V1403 V1403 V1500 V1500 V1404 V1404 V1405 V1405 SP56 SP56 V1406 V1406 SP56 = OFF SP56 = ON V1407 V1407 until end of scan or next instruction that uses SP56 5-155 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 317
NOTE: Status flags (SPs) are only valid until another instruction that uses the same flag is executed, or the end of the scan. The pointer for this instruction starts at 0 and resets to 1 automatically when the table length is reached. 5-156 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 318
O 1400 time the input contact transitions from low to high. Convert octal 1400 to HEX 300 and load the value into the accumulator. This is the starting table location. 5-157 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 319
Table Pointer (Resets to 1, not 0) V1400 V1400 V1401 V1401 V1402 V1402 Source Source V1403 V1403 V1500 V1500 V1404 V1404 V1405 V1405 SP56 SP56 V1406 V1406 SP56 = OFF SP56 = OFF V1407 V1407 5-158 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 320
The pointer for this instruction can be set to start anywhere in the table. It is not set automatically. You must load a value into the pointer somewhere in your program. 5-159 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 321
(PD) to remove one value each time the input O 1400 contact transitions from low to high. Convert octal 1400 to HEX 300 and load the value into the accumulator. This is the table pointer location. 5-160 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 322
V1403 V1403 V1500 V1500 V1404 V1404 V1405 V1405 SP56 SP56 V1406 V1406 SP56 = OFF SP56 = ON V1407 V1407 until end of scan or next instruction that uses SP56 5-161 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 323
The pointer for this instruction can be set to start anywhere in the table. It is not set automatically. You must load a value into the pointer somewhere in your program. 5-162 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 324
Convert octal 1400 to HEX 300 and load the value into from low to high. the accumulator. This is the starting table location. 5-163 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 325
V1500 V1500 V1404 V1404 V1405 V1405 SP56 SP56 V1406 V1406 SP56 = OFF SP56 = V1407 V1407 until end of scan or next instruction Discard Bucket that uses SP56 3074 5-164 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 326
Flag 67 will be set if the last bit shifted (just before it is discarded) is a “1”. Operand Data Type DL06 Range V-memory See memory map 5-165 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 327
0 3000 table beginning. Do a table shift right by 12 TSHFR bits, which is 14 octal. 0 14 Handheld Programmer Keystrokes SHFT PREV ANDST SHFT ANDST SHFT SHFT NEXT 5-166 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 328
Next we load the starting address of the source table, using the LDA instruction. Then we load the data into the accumulator to be ANDed with the table. In the ANDMOV command, we specify the table destination, V3100. 5-167 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 329
V 3000 V 3100 X OR MOV 1 1 1 1 2 2 2 2 K 3333 1 1 1 1 2 2 2 2 5-168 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 330
Step 5: Insert the Find Block instruction. This specifies the starting location of the block of data you are trying to locate. Start Addr. Number Table 1 of words Table 2 Start Addr. Table 3 Number Block of bytes Table n End Addr. 5-169 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 331
Handheld Programmer Keystrokes Swap the contents of the SWAP table in the previous SHFT 0 3100 instruction with the one at V3100. SHFT PREV ANDST SHFT ANDST SHFT SHFT ANDN 5-170 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 332
Set the date in the CPU using the value in V2000 and 2001 Handheld Programmer Keystrokes Year Month Day Day of Week NEXT NEXT NEXT NEXT SHFT PREV ANDST SHFT SHFT 5-171 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 333
V-memory locations (V7766-V7770) Acc. OUTD V2000 Format V2001 V2000 V2001 V2000 TIME V2000 Hour Minutes Seconds Handheld Programmer Keystrokes Used NEXT NEXT NEXT NEXT SHFT PREV ANDST SHFT SHFT SHFT ORST 5-172 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 334
Handheld Programmer Keystrokes SHFT STOP SHFT SHFT INST# Discrete Bit Flags Description SP16 On when the DL06 goes into the TERM_PRG mode. SP53 On when the DL06 goes into the PRG mode. 5-173 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 335
In the following example, the CPU scan timer will be reset to 0 when the RSTWT instruction is executed. See the For/Next instruction for a detailed example. DirectSOFT Direct SOFT 32 Handheld Programmer Keystrokes SHFT ANDN RSTWT 5-174 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 336
E NT INS T# INS T# E NT S TR S HF T E NT S HF T E NT ANDS T ANDS T E NT S TR E NT 5-175 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 337
For / Next loop using the RSTWT instruction. Operand Data Type DL06 Range V-memory See memory map Constant 1-9999 5-176 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 338
Watch Dog Timer setting. For more information on the Watch Dog Timer, refer to the RSTWT instruction. DirectSOFT Direct SOFT32 RSTWT NEXT Handheld Programmer Keystrokes SHFT INST# SHFT ANDN SHFT SHFT 5-177 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 339
The Subroutine Return Conditional instruction is an optional Used instruction used with an input contact to implement a conditional Used return from the subroutine. The Subroutine Return (RT) is still required for termination of the Subroutine. 5-178 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 340
CPU will return to the main body of the program. DirectSOFT Direct SOFT32 Display OUTI OUTI RT C RSTI Handheld Programmer Keystrokes SHFT SHFT SHFT SHFT SHFT SHFT SHFT SHFT SHFT SHFT SHFT STRN SHFT SHFT 5-179 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 341
Subroutine Label K3 and the ladder logic in the subroutine will be executed. The CPU will return to the main body of the program after the RT instruction is executed. DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes SHFT SHFT SHFT SHFT SHFT SHFT SHFT 5-180 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 342
When contact X0 is ON, logic under the first MLS will be executed. When contact X0 and X2 are ON, logic under the second MLS will be executed. The MLR instructions note the end of the Master Control area. 5-181 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 343
X0 is on. The logic between the MLS K2 (C) and MLR K1 (D) will function only if input X10 and X0 is on. The last rung is not controlled by either of the MLS coils. DirectSOFT DirectSOFT32 Handheld Programmer Keystrokes SHFT SHFT SHFT 5-182 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 344
See Chapter 3, the section on Mode 40 (Interrupt) Operation for more details on interrupt configuration. In the DL06, only one software interrupt is available. The software interrupt uses interrupt #00 (INT 0), which means the hardware interrupt #0 and the software interrupt cannot be used together.
Page 345
ANDST Copy the value in the lower SHFT 16 bits of the accumulator to V7634 V7634 SHFT STRN DISI SHFT SHFT SHFT SHFT SHFT SETI SHFT SETI SHFT SHFT 5-184 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 346
Copy the value in the lower SHFT 16 bits of the accumulator to V7634 V7634 STRN SHFT DISI SHFT SHFT SHFT SHFT SHFT STRN SETI SHFT SHFT RSTI 5-185 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 347
DirectSOFT Direct SOFT32 Handheld Programmer Keystrokes FAULT SHFT ANDST DLBL SHFT SHFT ACON ANDST ANDST A SW SHFT INST# ANDN SHFT NCON INST# K 2031 SHFT INST# NCON K 3436 5-186 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 348
HEX ASCII equivalent of numerical data for Used K aaa use with other instructions. Two digits can be stored in an NCON instruction. Operand Data Type DL06 Range Constant 1-FFFF 5-187 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 349
The DV-1000 Manual also has information on displaying messages. DirectSOFT Direct SOFT32 DLBL ACON A SW NCON K 2031 NCON K 3436 Handheld Programmer Keystrokes SHFT SHFT ANDST ANDST SHFT INST# ANDN SHFT INST# SHFT INST# 5-188 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 350
V2004 MOVBLK V2000 V2000 is the destination starting address for the data to be copied. Handheld Programmer Keystrokes SHFT ANDST SHFT ANDST ANDST ANDST SHFT ORST INST# ANDST 5-189 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 351
DL06 Range Constant You may recall, from the CPU specifications in Chapter 3, that the DL06’s ports are capable of several protocols. Port 1 cannot be configured for the non-sequence protocol. To configure port 2 using the Handheld Programmer, use AUX 56 and follow the prompts, making the same choices as indicated below on this page.
Page 352
Chapter 5: Standard RLL Instructions Port 2 on the DL06 has standard RS232 levels, and should work with most printer serial input connections. Text element – this is used for printing character strings. The character strings are defined as the character (more than 0) ranged by the double quotation marks. Two hex numbers preceded by the dollar sign means an 8-bit ASCII character code.
Page 353
Example: V2000 % 16 16 characters in V2000 to V2007 are printed. V2000 % 0 The characters in V2001 to Vxxxx (determined by the number in V2000) will be printed. 5-192 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 354
Bit (ON/OFF format) The handheld programmer’s mnemonic is “PRINT” followed by the DEF field. Special relay flags SP116 and SP117 indicate the status of the DL06 CPU ports (busy, or communications error). See the appendix on special relays for a description.
Page 355
V1400 is the starting location SHFT PREV in the CPU where the specified ANDST V1400 data will be stored. SHFT PREV ANDST SHFT PREV ANDST SHFT 5-194 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 356
V1400 is the starting location SHFT PREV in the CPU where the specified ANDST V1400 data will be written from. SHFT PREV ANDST PREV SHFT ANDST SHFT ANDN 5-195 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 357
V-memory See memory map Pointer See memory map Inputs 0–777 Outputs 0–777 Control Relays 0–1777 Stage 0–1777 Timer 0–377 Counter 0–177 Special Relay 0–777 Program Memory 0–7680 (2K program mem.) 5-196 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 358
Slave CPU where the specified data will be read from Handheld Programmer Keystrokes SHFT ANDN STRN SHFT SHFT SHFT SHFT ANDST SHFT SHFT ANDST SHFT ANDST SHFT 5-197 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 359
V-memory See memory map Pointer See memory map Inputs 0–777 Outputs 0–777 Control Relays 0–1777 Stage 0–1777 Timer 0–377 Counter 0–177 Special Relay 0–777 Program Memory 0–7680 (2K program mem.) 5-198 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 360
Slave CPU where the specified data will be written to Handheld Programmer Keystrokes SHFT ANDN STRN SHFT SHFT SHFT SHFT ANDST SHFT SHFT ANDST SHFT ANDST SHFT ANDN 5-199 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 361
O v e r 5-200 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 362
Note that different data formats require differing numbers of character positions on the display. Line Number: "Count = " V2500:B C o u n t 0 4 1 2 5-201 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 363
C0 replaces leading spaces with leading zeros. 0 is a modification of C0. 0 eliminates any leading zeros in the C0 format version and converts them to spaces. 5-202 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 364
V10007 V10010 Line Number: V10011 Starting V Memory Address: V10010 V10012 Number of Characters: V10013 V10014 V10015 V10016 A d m i V10017 T e m p a r m 5-203 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 365
MODBUS RTU Instructions MODBUS Read from Network (MRX) The MODBUS Read from Network (MRX) instruction is used by the DL06 network master Used to read a block of data from a connected slave device and to write the data into V–memory addresses within the master.
Page 366
V–memory Global Inputs 0–3777 Global Outputs 0–3777 Number of Elements Operand Data Type DL06 Range V–memory Constant Bits: 1–2000 Registers: 1–125 Exception Response Buffer Operand Data Type DL06 Range V–memory 5-205 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 367
Chapter 5: Standard RLL Instructions MRX Example DL06 port 2 has two Special Relay contacts associated with it (see Appendix D for comm port special relays). One indicates “Port busy”(SP116), and the other indicates ”Port Communication Error”(SP117). The “Port Busy” bit is on while the PLC communicates with the slave.
Page 368
The MODBUS Write to Network (MWX) instruction is used to write a block of data from Used the network masters’s (DL06) memory to MODBUS memory addresses within a slave device on the network. The instruction allows the user to specify the MODBUS Function Code, slave station address, starting master and slave memory addresses, number of elements to transfer, MODBUS data format and the Exception Response Buffer.
Page 369
MWX Number of Elements Number of Elements Operand Data Type DL06 Range V–memory Constant Bits: 1–2000 Registers: 1–125 MWX Exception Response Buffer Number of Elements Operand Data Type DL06 Range V–memory 5-208 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 370
Chapter 5: Standard RLL Instructions MWX Example DL06 port 2 has two Special Relay contacts associated with it (see Appendix D for comm port special relays). One indicates “Port busy”(SP116), and the other indicates ”Port Communication Error”(SP117). The “Port Busy” bit is on while the PLC communicates with the slave. When the bit is off, the program can initiate the next network request.
Page 371
CPU ports. The AIN instruction is not used in this case. 3) If a DL06 PLC is a master on a network, the Network Read instruction (RX) can be used to read embedded ASCII data from a slave device via a supported communications protocol using port 2.
Page 372
• Swap Bytes (SWAPB) – usually used to swap V–memory bytes on ASCII data that was written directly to V–memory from an external HMI or similar master device via a communications protocol. The AIN and AEX instructions have a built–in byte swap feature. 5-211 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 373
• Inter–character Timeout Error Bit: is set when the Character Timeout is exceeded. See Character Timeout explanation above. • First Character Timeout Error Bit: is set when the First Character Timeout is exceeded. See First Character Timeout explanation above. 5-212 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 374
AIN Fixed Length Examples Fixed Length example when the PLC is reading the port continuously and timing is not critical Fixed Length example when character to character timing is critical 5-213 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 375
• First Character Timeout Error Bit: is set when the First Character Timeout is exceeded. See First Character Timeout explanation above. • Overflow Error Bit: is set when the ASCII data received exceeds the Maximum Variable Length specified. 5-214 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 376
All V–memory Fixed Length K1–128 Bits: Busy, Complete, C0–3777 Timeout Error, Overflow AIN Variable Length Example AIN variable length example used to read barcodes on boxes (PE = photoelectric sensor) 5-215 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 377
• Search for String: up to 128 characters. Parameter DL06 Range Base Address All V–memory Total Number of Bytes All V–memory or K1–128 Search Starting Index All V–memory or K0–127 Found Index All V–memory 5-216 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 378
Search start Index Number High V3003 High V3004 Forward Direction Search High V3005 High Beginning Index Number V3006 High End Index Number V3007 High Found Index Number = 0012 V4000 5-217 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 379
V2001 Extract at Index: Number of Bytes: Shift ASCII Option: None Byte Swap: Convert ASCII: To BCD (HEX) Destination Base Address: V3000 Give delay time for AFIND instruction to complete 5-218 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 380
“Convert BCD (HEX) ASCII” K1–128 containing BCD value: not checked 1–128 Number of Bytes V-memory location Constant range: containing BCD value: “Convert BCD (HEX) ASCII” K1–4 1–4 checked Destination Base All V–memory Address 5-219 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 381
The CMPV instruction executes when the AIN instruction is complete. If the compared V– memory tables are equal, SP61 will turn ON. AIN Complete CMPV "Compare from" Starting Address: V2001 "Compare to" Starting Address: V10001 Number of Bytes: Strings are equal SP61 5-220 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 382
American standard (month/day/2 digit year) _date:e European standard (day/month/2 digit year) _date:a Asian standard (2 digit year/month/day) _time:12 standard 12 hour clock (0–12 hour:min am/pm) _time:24 standard 24 hour clock (0–23 hour:min am/pm) 5-221 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 383
V–memory Register with Modifier V2000 V2000:B V2000:B0 Example with V2000 = sp sp18 (binary format) where sp = space Number of Characters V–memory Register with Modifier V2000 V2000:B V2000:BS V2000:BC0 5-222 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 384
16 bit binary 32 bit binary 4 digit BCD 8 digit BCD Floating point (real number) Floating point (real with exponent) V-memory/text Bit (1/0 format) Bit (TRUE/FALSE format) Bit (ON/OFF format) 5-223 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 385
Error code 499 will occur in the CPU when the print instruction contains invalid text or no quotations. It is important to test your VPRINT instruction data during the application development. 5-224 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 386
Delay for VPRINT to complete Delay for Vprint to complete PRINTV Port Number: Start Address: V4001 Number of Bytes: V4000 Append: None Byte Swap: None Busy: Complete: Delay Permissive for VPRINT 5-225 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 387
Byte Swap options, and user specified flags for Busy and Complete. • Port Number: must be DL06 port 2 (K2) • Start Address: specifies the beginning of series of V–memory registers that contain the ASCII string to print •...
Page 388
(AIN, AEX, PRINTV, VPRINT) 0005h V2477 V2500 V2501 V2502 Byte Swap All Byte High Low V2477 0005h V2500 V2501 V2502 Byte Swap All but Null Byte High Low 0005h V2477 V2500 V2501 V2502 5-227 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 389
The ASCII Clear Buffer instruction will clear the ASCII receive buffer of the specified Used communications port number. Port Number: must be DL06 port 2 (K2) ACRB Example The AIN Complete bit or the AIN diagnostic bits are used to clear the ASCII buffer.
Page 390
Chapter 5: Standard RLL Instructions This page intentionally left blank. 5-229 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 391
The Intelligent Box Instructions (IBox) listed in this section are additional instructions made available when using DirectSOFT to program your DL06 PLC (the DL06 CPU requires firmware version v2.10 or later to use the new features in DirectSOFT). For more information on DirectSOFT and to download a free demo version, please visit our Web site at: www.
Page 392
CTRIO Run to Limit Mode (CTRRTLM) IB-1011 5-359 CTRIO Run to Position Mode (CTRRTPM) IB-1012 5-362 CTRIO Velocity Mode (CTRVELO) IB-1013 5-365 CTRIO Write File to ROM (CTRWFTR) IB-1006 5-368 5-231 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 393
Since the IBox logic only executes on the first scan, the instruction cannot have any input logic. ANLGCMB Parameters • Base # (K0-Local): must be 0 for DL06 PLC • Slot #: specifies which PLC option slot is occupied by the analog module (1–4) •...
Page 394
V2000 - V2003 in BCD format. Two output channels are enabled and the analog values will be read from V2100 - V2101 in BCD format. Permissive contacts or input logic cannot be used with this instruction. 5-233 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 395
ANLGIN Parameters • Base # (K0-Local): must be 0 for DL06 PLC • Slot #: specifies which PLC option slot is occupied by the analog module (1–4) • Number of Input Channels: specifies the number of input channels to scan •...
Page 396
1. Eight input channels are enabled and the analog data will be written to V2000 - V2007 in BCD format. Permissive contacts or input logic cannot be used with this instruction. 5-235 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 397
ANLGOUT Parameters • Base # (K0-Local): must be 0 for DL06 PLC • Slot #: specifies which PLC option slot is occupied by the analog module (1–4) • Number of Output Channels: specifies the number of analog output channels that will be used •...
Page 398
3. Two output channels are enabled and the analog data will be read from V2100 - V2101 in BCD format. Permissive contacts or input logic cannot be used with this instruction. 5-237 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 399
In the following example, the ANSCL instruction is used to scale a raw value (0-4095 BCD) that is in V2000. The engineering scaling range is set 0-100 (low engineering value - high engineering value). The scaled value will be placed in V2100 in BCD format. 5-238 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 400
In the following example, the ANSCLB instruction is used to scale a raw value (0-4095 binary) that is in V2000. The engineering scaling range is set 0-1000 (low engineering value - high engineering value). The scaled value will be placed in V2100 in binary format. 5-239 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 401
Filter Frequency Time (0.01 sec) K0-9999 Raw Data (BCD) See DL06 V-memory map - Data Words Filter Divisor (1-100) K1-100 Filtered Value (BCD) See DL06 V-memory map - Data Words 5-240 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 402
2. A larger value will increase the smoothing effect of the filter. A value of 1 results with no filtering. The filtered value will be placed in V2100. 5-241 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 403
Filter Frequency Time (0.01 sec) K0-9999 Raw Data (Binary) See DL06 V-memory map - Data Words Filter Divisor (1-100) K1-100 Filtered Value (Binary) See DL06 V-memory map - Data Words 5-242 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 404
The filter constant is set to 3.0. A larger value will increase the smoothing effect of the filter. A value of 1 results with no filtering. The filtered value will be placed in V2100 5-243 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 405
DL06 Range Monitoring Value (BCD) See DL06 V-memory map - Data Words High-High Limit V, K K0-9999; or see DL06 V-memory map - Data Words High-High Alarm X, Y, C, GX,GY, B See DL06 V-memory map High Limit V, K K0-9999;...
Page 406
The low and low-low limits and alarms can be set to the same value if one “low” limit or alarm is desired to be used. 5-245 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 407
DL06 Range Monitoring Value (Binary) See DL06 V-memory map - Data Words High-High Limit V, K K0-65535; or see DL06 V-memory map - Data Words High-High Alarm X, Y, C, GX,GY, B See DL06 V-memory map High Limit V, K K0-65535;...
Page 408
V2013, C103 will turn on. Both bits would be on in this case. The low and low-low limits and alarms can be set to the same V-memory location/value if one “low” limit or alarm is desired to be used. 5-247 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 409
• Output: specifies the output that will be delayed “turning off” by the Off Delay Time. Parameter DL06 Range Timer Number T0-377 Off Delay Time K0-9999; See DL06 V-memory map - Data Words Output X, Y, C, GX,GY, B See DL06 V-memory map 5-248 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 410
When C100 turns on, C20 turns on and will remain on while C100 is on. When C100 turns off, C20 will remain for the specified Off Delay Time (5s), and then turn off. Example timing diagram C100 5 sec 5 sec 5-249 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 411
• Output: specifies the output that will be delayed “turning on” by the On Delay Time. Parameter DL06 Range Timer Number T0-377 On Delay Time K0-9999; See DL06 V-memory map - Data Words Output X, Y, C, GX,GY, B See DL06 V-memory map 5-250 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 412
C21. Timer 1 (T1) is set to 2 seconds, the “on-delay” period. When C101 turns on, C21 is delayed turning on by 2 seconds. When C101 turns off, C21 turns off immediately. Example timing diagram C101 2 sec 2 sec 5-251 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 413
C0 goes from an off to on transition. The input logic must produce an off to on transition to execute the One Shot instruction. Example timing diagram Scan time C100 5-252 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 414
C20 with a single input C10. When C10 is pressed once, C20 turns on. When C10 is pressed again, C20 turns off. C100 is an internal bit used by the instruction. Permissive contacts or input logic are not used with this instruction. 5-253 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 415
See DL06 V-memory map - Data Words MOVEW Example In the following example, the MOVEW instruction is used to move 16-bits of data from V2000 to V3000 when C100 turns on. 5-254 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 416
See DL06 V-memory map - Data Words MOVED Example In the following example, the MOVED instruction is used to move 32-bits of data from V2000 and V2001 to V3000 and V3001 when C100 turns on. 5-255 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 417
V3000 and V3001 when C100 turns on. K2 in the Number of Decimal Points implies the data will have two digits to the right of the decimal point. 5-256 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 418
V3000 and V3001 when C100 turns on. K2 in the Number of Decimal Points implies the data will have two digits to the right of the decimal point. 5-257 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 419
• Expression: specifies the mathematical expression to be executed and the result is stored in specified WORD Result. Each V-memory location used in the expression must be in BCD format. Parameter DL06 Range WORD Result See DL06 V-memory map - Data Words Expression Text 5-258 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 420
In the following example, the MATHBCD instruction is used to calculate the math expression which multiplies the BCD value in V1200 by 1000 then divides by 4095 and loads the resulting value in V2000 when C100 turns on. 5-259 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 421
• Expression: specifies the mathematical expression to be executed and the result is stored in specified WORD Result. Each V-memory location used in the expression must be in binary format. Parameter DL06 Range WORD Result See DL06 V-memory map - Data Words Expression Text 5-260 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 422
In the following example, the MATHBIN instruction is used to calculate the math expression which multiplies the Binary value in V1200 by 1000 then divides by 4095 and loads the resulting value in V2000 when C100 turns on. 5-261 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 423
In the following example, the MATHR instruction is used to calculate the math expression which multiplies the REAL (floating point) value in V1200 by 10.5 then divides by 2.7 and loads the resulting 32-bit value in V2000 and V2001 when C100 turns on. 5-262 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 424
• Result (WORD BCD): specifies the location where the rounded/implied decimal points BCD value will be placed Parameter DL06 Range Value (DWORD Real) V,P,R R ; See DL06 V-memory map - Data Words Number of Decimal Points K0-4 Result (WORD BCD) See DL06 V-memory map - Data Words RTOBCD Example...
Page 425
• Result (DWORD BCD): specifies the location where the rounded/implied decimal points DWORD BCD value will be placed Parameter DL06 Range Value (DWORD Real) V,P,R R ; See DL06 V-memory map - Data Words Number of Decimal Points K0-8 Result (DWORD BCD) See DL06 V-memory map - Data Words RTOBCDD Example...
Page 426
Parameter DL06 Range Value (WORD BCD) V,P,K K0-9999 ; See DL06 V-memory map - Data Words Result (DWORD BCD) See DL06 V-memory map - Data Words SQUARE Example In the following example, the SQUARE instruction is used to square the 4-digit BCD value in...
Page 427
In the following example, the SQUAREB instruction is used to square the single word Binary value in V2000 and store the 8-digit double word Binary result in V3000 and V3001 when C100 turns on. 5-266 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 428
Parameter DL06 Range Value (REAL DWORD) V,P,R R ; See DL06 V-memory map - Data Words Result (REAL DWORD) See DL06 V-memory map - Data Words SQUARER Example In the following example, the SQUARER instruction is used to square the 32-bit floating point REAL value in V2000 and V2001 and store the REAL value result in V3000 and V3001 when C100 turns on.
Page 429
In the following example, the SUMBCD instruction is used to total the sum of all BCD values in words V2000 thru V2007 and store the resulting 8-digit double word BCD value in V3000 and V3001 when C100 turns on. 5-268 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 430
In the following example, the SUMBIN instruction is used to total the sum of all Binary values in words V2000 thru V2007 and store the resulting 8-digit double word Binary value in V3000 and V3001 when C100 turns on. 5-269 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 431
Start Address (inclusive DWORD) See DL06 V-memory map - Data Words End Address (inclusive DWORD) See DL06 V-memory map - Data Words Result (DWORD) See DL06 V-memory map - Data Words 5-270 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 432
In the following example, the SUMR instruction is used to total the sum of all floating point REAL number values in words V2000 thru V2007 and store the resulting 32-bit floating point REAL number value in V3000 and V3001 when C100 turns on. 5-271 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 433
Slot K1-4 Status See DL06 V-memory map - Data Words Workspace See DL06 V-memory map - Data Words Msg Buffer (65 words used) See DL06 V-memory map - Data Words 5-272 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 434
1 common buffer for generating and sending each EMail. These V-Memory registers must not be used anywhere else in your entire program. Permissive contacts or input logic cannot be used with this instruction. V400 V401 V402 - V502 5-273 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 435
K0-255 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words 5-274 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 436
OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 5-275 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 437
K5-127 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words 5-276 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 438
DHCP Server and is assigned a valid IP Address. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 5-277 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 439
DL06 Range ECOM100# K0-255 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map DHCP Enabled X,Y,C,GX,GY,B See DL06 V-memory map 5-278 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 440
The command to read (Query) whether DHCP is enabled or not will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-279 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 441
ECOM100, and keep the To: field small (or even empty), to leave more room for the Subject: and Body: fields. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. 5-280 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 442
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map Text Subject: Text Body: See PRINT and VPRINT instructions 5-281 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 443
If the EMail is sent, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the SMTP error code or other possible error codes. 5-282 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 444
SP Slot Error - the SP error bit for the ECOM100’s slot turned on. Possibly using RX or WX instructions on the ECOM100 and walking on the ECEMAIL execution. Use should use ECRX and ECX IBoxes, 5-283 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 445
Command not implemented Bad sequence of commands Command parameter not implemented <domain> does not accept mail Access denied. Must issue a STARTTLS command first. Encryption required for requested authentication mechanism. 5-284 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 446
K0-255 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words 5-285 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 447
Rung 2: Whenever an EStop is pushed, ensure that president of the company gets copies of all EMails being sent. The ECOM100 EMail Setup IBox allows you to set/change the SMTP EMail settings stored in the ECOM100. (example continued on next page) 5-286 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 448
ECEMSUP IBox). If successful, turn on C102. If there is a failure, turn on C103. If it fails, you can look at V2001 for the specific error code. 5-287 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 449
• Sender EMail: optional parameter that specifies the sender EMail address that will appear in the “From:” field to those who receive the e-mail 5-288 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 450
K0-255 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words 5-289 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 451
IBoxes using this specific ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module. V400 V401 V402 - V502 (example continued on next page) 5-290 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 452
V2000 for the specific error code. Rung 3: Once the EStop is pulled out, take the president off the cc: list by restoring the default EMail setup in the ECOM100. 5-291 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 453
See DL06 V-memory map - Data Words IP Address IP Address 0.0.0.1. to 255.255.255.254 Subnet Mask Address IP Address Mask 0.0.0.1. to 255.255.255.254 Gateway Address IP Address 0.0.0.1. to 255.255.255.254 5-292 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 454
IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 5-293 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 455
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Description See DL06 V-memory map - Data Words Num Chars K1-128 5-294 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 456
The command to read the module description will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-295 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 457
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Gateway IP Address (4 Words) See DL06 V-memory map - Data Words 5-296 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 458
The command to read the Gateway Address will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-297 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 459
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map IP Address (4 Words) See DL06 V-memory map - Data Words 5-298 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 460
The command to read the IP Address will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-299 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 461
K0-255 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Module ID See DL06 V-memory map - Data Words 5-300 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 462
The command to read the module ID will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-301 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 463
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Module Name See DL06 V-memory map - Data Words Num Chars K1-128 5-302 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 464
The command to read the module name will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-303 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 465
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Subnet Mask (4 Words) See DL06 V-memory map - Data Words 5-304 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 466
The command to read the Subnet Mask will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 5-305 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 467
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words Description Text 5-306 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 468
IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 5-307 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 469
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words Gateway Address 0.0.0.1. to 255.255.255.254 5-308 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 470
If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. To configure all of the ECOM100 TCP/IP parameters in one IBox, see the ECOM100 IP Setup (ECIPSUP) IBox. 5-309 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 471
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words IP Address 0.0.0.1. to 255.255.255.254 5-310 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 472
If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. To configure all of the ECOM100 TCP/IP parameters in one IBox, see the ECOM100 IP Setup (ECIPSUP) IBox. 5-311 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 473
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words Module ID K0-65535 5-312 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 474
IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 5-313 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 475
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words Module Name Text 5-314 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 476
IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 5-315 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 477
See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map Error Code See DL06 V-memory map - Data Words Subnet Mask Masked IP Address 5-316 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 478
If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code. To configure all of the ECOM100 TCP/IP parameters in one IBox, see the ECOM100 IP Setup (ECIPSUP) IBox. 5-317 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 479
See DL06 V-memory map Number of Bytes K1-128 To Master Element (Dest) See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-318 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 480
ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module. V400 V401 V402 - V502 (example continued on next page) 5-319 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 481
Using the ECRX and ECWX for all of your ECOM100 network reads and writes is the fastest the PLC can do networking. For local Serial Ports, DCM modules, or the original ECOM modules, use the NETCFG and NETRX/NETWX IBoxes. 5-320 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 482
See DL06 V-memory map - Data Words Number of Bytes K1-128 To Slave Element (Dest) X,Y,C,S,T,CT,GX,GY,V,P See DL06 V-memory map Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-321 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 483
ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module. V400 V401 V402 - V502 (example continued on next page) 5-322 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 484
Using the ECRX and ECWX for all of your ECOM100 network reads and writes is the fastest the PLC can do networking. For local Serial Ports, DCM modules, or the original ECOM modules, use the NETCFG and NETRX/NETWX IBoxes. 5-323 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 485
RX or WX rung yourself. This value is CPU and port specific (check your PLC manual). Use KF2 for the DL06 CPU serial port 2. If using a DCM or ECOM module, use Kx, where x equals the slot where the module is installed.
Page 486
NETRX and NETWX IBoxes in the program. This V-memory register must not be used anywhere else in the entire program. Permissive contacts or input logic cannot be used with this instruction. 5-325 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 487
See DL06 V-memory map Number of Bytes K1-128 To Master Element (Dest) See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-326 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 488
This V-Memory register must not be used anywhere else in the entire program. Permissive contacts or input logic cannot be used with this instruction. (example continued on next page) 5-327 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 489
Using the NETRX and NETWX for all of your serial port, DCM, or original ECOM network reads and writes is the fastest the PLC can do networking. For ECOM100 modules, use the ECOM100 and ECRX/ECWX IBoxes. 5-328 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 490
See DL06 V-memory map - Data Words Number of Bytes K1-128 To Slave Element (Dest) X,Y,C,S,T,CT,GX,GY,V,P See DL06 V-memory map Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-329 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 491
This V-Memory register must not be used anywhere else in the entire program. Permissive contacts or input logic cannot be used with this instruction. (example continued on next page) 5-330 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 492
Using the NETRX and NETWX for all of your serial port, DCM, or original ECOM network reads and writes is the fastest the PLC can do networking. For ECOM100 modules, use the ECOM100 and ECRX/ECWX IBoxes. 5-331 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 493
• Workspace: specifies a V-memory location that will be used by the instruction • CTRIO Location: specifies where the module is located (local base only for DL06) • Input: This needs to be set to the same V-memory register as is specified in CTRIO Workbench as ‘Starting V address for inputs’...
Page 494
CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. Permissive contacts or input logic cannot be used with this instruction 5-333 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 495
K0-65535; See DL06 V-memory map - Data Words Preset Count K0-2147434528; See DL06 V-memory map Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-334 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 496
#0, then turn encoder to value of 10+ (output #0 should turn on) and then continue on to count of 20+ (output #0 should turn off). (example continued on next page) 5-335 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 497
Rung 3: This rung allows the programmer to reset the counter from the ladder logic. Rung 4: This rung allows the operator to enable output #0 from the ladder code. 5-336 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 498
• Error: specifies a bit that will turn on if the instruction does not complete successfully Parameter DL06 Range CTRIO# K0-255 Output# K0-3 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-337 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 499
C1, enable C0 to execute CTRCLRT command to clear the preset table, turn on C2 to enable output #0, then turn encoder to value of 10+ (output #0 should NOT turn on). (example continued on next page) 5-338 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 500
Rung 3: This rung allows the programmer to reset the counter from the ladder logic. Rung 4: This rung allows the operator to enable output #0 from the ladder code. 5-339 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 501
• Success: specifies a bit that will turn on once the instruction has successfully completed • Error: specifies a bit that will turn on if the instruction does not complete successfully 5-340 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 502
CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. Permissive contacts or input logic cannot be used with this instruction (example continued on next page) 5-341 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 503
Note that we must also reload the profile after changing the preset(s), this is why the CTRLDPR command follows the CTREDPT command in this example. (example continued on next page) 5-342 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 504
Rung 3: This rung allows the programmer to reset the counter from the ladder logic. Rung 4: This rung allows the operator to enable output #0 from the ladder code. 5-343 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 505
• Success: specifies a bit that will turn on once the instruction has successfully completed • Error: specifies a bit that will turn on if the instruction does not complete successfully 5-344 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 506
CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. Permissive contacts or input logic cannot be used with this instruction (example continued on next page) 5-345 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 507
30+ and the output #0 light will turn off. Note that it is not necessary to reload this file separately, however, the command can only change one value at a time. (example continued on next page) 5-346 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 508
Rung 3: This rung allows the programmer to reset the counter from the ladder logic. Rung 4: This rung allows the operator to enable output #0 from the ladder code. 5-347 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 509
• Success: specifies a bit that will turn on once the instruction has successfully completed • Error: specifies a bit that will turn on if the instruction does not complete successfully 5-348 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 510
CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. Permissive contacts or input logic cannot be used with this instruction. (example continued on next page) 5-349 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 511
#0 at a count of 15, then turn encoder to value of 15+ (output #0 should turn on). (example continued on next page) 5-350 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 512
Rung 3: This rung allows the programmer to reset the counter from the ladder logic. Rung 4: This rung allows the operator to enable output #0 from the ladder code. 5-351 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 513
• Success: specifies a bit that will turn on once the instruction has successfully completed • Error: specifies a bit that will turn on if the instruction does not complete successfully 5-352 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 514
CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. Permissive contacts or input logic cannot be used with this instruction (example continued on next page) 5-353 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 515
Now turn on C0 to execute the CTRINTR command, reset the counter with C1, then turn encoder to value of 25+ (output #0 should turn on). (example continued on next page) 5-354 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 516
Rung 3: This rung allows the programmer to reset the counter from the ladder logic. Rung 4: This rung allows the operator to enable output #0 from the ladder code. 5-355 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 517
K0-3 File# K0-255; See DL06 V-memory map - Data Words Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-356 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 518
Rung 2: This CTRIO Load Profile IBox will load File #1 into the working memory of Output 0 in CTRIO #1. This example program requires that you load CTRLDPR_IBox.cwb into your Hx-CTRIO(2) module. (example continued on next page) 5-357 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 519
Chapter 5: Standard RLL Instructions CTRLDPR Example (cont’d) Rung 3: If the file is successfully loaded, set Profile_Loaded. 5-358 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 520
• Error Code: specifies the location where the Error Code will be written Parameter DL06 Range CTRIO# K0-255 Workspace See DL06 V-memory map - Data Words Error Code See DL06 V-memory map - Data Words 5-359 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 521
Rung 2: This CTRIO Read Error Code IBox will read the Extended Error information from CTRIO #1. This example program requires that you load CTRRDER_IBox.cwb into your Hx-CTRIO(2) module. 5-360 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 522
• Success: specifies a bit that will turn on once the instruction has successfully completed • Error: specifies a bit that will turn on if the instruction does not complete successfully 5-361 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 523
Rung 2: This CTRIO Run To Limit Mode IBox sets up Output #0 in CTRIO #1 to output pulses at a Frequency of 1000 Hz until Llimit #0 comes on. This example program requires that you load CTRRTLM_IBox.cwb into your Hx-CTRIO(2) module. (example continued on next page) 5-362 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 524
Chapter 5: Standard RLL Instructions CTRRTLM Example (cont’d) Rung 3: If the Run To Limit Mode parameters are OK, set the Direction Bit and Enable the output. 5-363 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 525
• Success: specifies a bit that will turn on once the instruction has successfully completed • Error: specifies a bit that will turn on if the instruction does not complete successfully 5-364 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 526
CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. Permissive contacts or input logic cannot be used with this instruction. (example continued on next page) 5-365 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 527
1500 is reached. This example program requires that you load CTRRTPM_IBox.cwb into your Hx-CTRIO(2) module. Rung 3: If the Run To Position Mode parameters are OK, set the Direction Bit and Enable the output. 5-366 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 528
K0-99; See DL06 V-memory map Step Count K0-2147434528; See DL06 V-memory map Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-367 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 529
Rung 2: This CTRIO Velocity Mode IBox sets up Output #0 in CTRIO #1 to output 10,000 pulses at a Frequency of 1000 Hz. This example program requires that you load CTRVELO_ IBox.cwb into your Hx-CTRIO(2) module. (example continued on next page) 5-368 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 530
Chapter 5: Standard RLL Instructions CTRVELO Example (cont’d) Rung 3: If the Velocity Mode parameters are OK, set the Direction Bit and Enable the output. 5-369 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 531
• Error: specifies a bit that will turn on if the instruction does not complete successfully Parameter DL06 Range CTRIO# K0-255 Output# K0-3 Workspace See DL06 V-memory map - Data Words Success X,Y,C,GX,GY,B See DL06 V-memory map Error X,Y,C,GX,GY,B See DL06 V-memory map 5-370 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 532
Rung 2: This CTRIO Edit Preset Table Entry IBox will change Entry 0 in Table #2 to be a RESET at Count 3456. This example program requires that you load CTRWFTR_IBox.cwb into your Hx-CTRIO(2) module. (example continued on next page) 5-371 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Page 533
Rung 3: If the file is successfully edited, use a Write File To ROM IBox to save the edited table back to the CTRIO’s ROM, thereby making the changes retentive. 5-372 DL06 Micro PLC User Manual, 3rd Edition, Rev. E...
Need help?
Do you have a question about the DL06 and is the answer not in the manual?
Questions and answers