AutomationDirect DL105 User Manual

AutomationDirect DL105 User Manual

Micro plc
Hide thumbs Also See for DL105:
Table of Contents

Advertisement

Quick Links

sales@artisantg.com
artisantg.com
(217) 352-9330 |
|
Visit our website - Click HERE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DL105 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for AutomationDirect DL105

  • Page 1 sales@artisantg.com artisantg.com (217) 352-9330 | Visit our website - Click HERE...
  • Page 2 DL105 PLC User Manual Manual Number D1--USER--M...
  • Page 3 770--844--4200. This publication is based on information that was available at the time it was printed. At AutomationDirect we constantly strive to improve our products and services, so we reserve the right to make changes to the products and/or publications at any time without notice and without any obligation.
  • Page 4 équipements de survie ou les systèmes d’armes, pour lesquels la défaillance du produit peut provoquer la mort, des blessures corporelles ou de graves dommages matériels ou environnementaux (”activités à risque élevé”). La société AutomationDirect nie toute garantie expresse ou implicite d’aptitude à l’emploi en ce qui a trait aux activités à risque élevé.
  • Page 5 Manual Revisions If you contact us in reference to this manual, remember to include the revision number. Title: DL105 Micro PLC User Manual Manual Number: D1--USER--M Edition/Rev Date Description of Changes Original 9/96 Original Issue 2nd Edition 5/98 Updated 2nd Edition,...
  • Page 6: Table Of Contents

    1- -6 Step 1: Unpack the Recommended DL105 Equipment ....... . .
  • Page 7 ........... 2--40 DL105 PLC User Manual, 3rd Edition...
  • Page 8 ............. . . 3- -23 DL105 PLC User Manual, 3rd Edition...
  • Page 9 ........... 3- -51 DL105 PLC User Manual, 3rd Edition...
  • Page 10 4--6 Changing Modes in the DL105 PLC ..........
  • Page 11 ............... 5--11 DL105 PLC User Manual, 3rd Edition...
  • Page 12 Up / Down Counter Example Using Discrete Status Bits ....... . 5--38 DL105 PLC User Manual, 3rd Edition...
  • Page 13 ............5- -77 DL105 PLC User Manual, 3rd Edition...
  • Page 14 ..........6--14 DL105 PLC User Manual, 3rd Edition...
  • Page 15 ..............8- -6 DL105 PLC User Manual, 3rd Edition...
  • Page 16 ..............A--8 DL105 PLC User Manual, 3rd Edition...
  • Page 17 ............F--5 DL105 PLC User Manual, 3rd Edition...
  • Page 18 ..........G--10 Index DL105 PLC User Manual, 3rd Edition...
  • Page 19: Chapter 1: Getting Started

    — Introduction — Conventions Used — DL105 Micro PLC Components — Programming Methods — I/O Selection Quick Chart — Quick Start for PLC Checkout and Programming — Steps to Designing a Successful System — Questions and Answers about DL105 Micro PLCs...
  • Page 20: Introduction

    If you are a new DL105 customer, we suggest you read this manual completely so you can understand the wide variety of features in the DL105 family of products. We believe you will be pleasantly surprised with how much you can accomplish with AutomationDirect products.
  • Page 21: Conventions Used

    (in extreme cases). The entire WARNING: will be in boldface text. Key Topics for The beginning of each chapter will list the Each Chapter key topics that can be found in that chapter. DL105 PLC User Manual, 3rd Edition...
  • Page 22: Dl105 Micro Plc Components

    +24V auxiliary power supply. The DL105 The DL105 Micro PLC family includes eight different versions. All have the same appearance and CPU performance. The CPU offers the same instruction set as our Micro PLC Family popular DL230 CPU, plus several more instructions specifically designed for machine control applications.
  • Page 23: Handheld Programmer

    There is a separate manual that discusses the DirectSOFT programming software which is included with your software package. Handheld All DL105 Micro PLCs have a built-in programming port for use with the handheld programmer (D2--HPP), the same programmer used with the DL205 family. The Programmer handheld programmer can be used to create, modify and debug your application program.
  • Page 24: Quick Start For Plc Checkout And Programming

    Step 1: Unpack the Recommended DL105 Equipment Unpack the DL105 equipment and verify you have the recommended parts necessary to build this demonstration system. The components are: DL105 Micro PLC AC power cord for AC-powered units F1--04SIM input simulator, or toggle switches (see Step 2 on next page).
  • Page 25: Step 2: Connect Switches To Input Terminals

    DC power to the simulator as shown. We recommend using one of the models compatible with the input simulator as you learn the DL105. However, you may wire individual toggle switches to AC-powered units as shown, as long as you follow the instructions in the accompanying WARNING note.
  • Page 26: Step 3: Connect The Power Wiring

    Most programmers will use DirectSOFT programming software, installed on a personal computer. Or, you may need the portability of the Handheld Programmer. Both devices will connect the COM1 port of the DL105 via the appropriate cable. Use cable part no.
  • Page 27: Step 5: Switch On The System Power

    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 DL105 should be off.) If the RUN LED is on, use the MODE key on the Handheld Programmer to put the PLC in Program Mode.
  • Page 28: Steps To Designing A Successful System

    This Guidelines chapter also includes wiring guidelines for the various versions of the DL105 PLC. Step 2: The PLC is the heart of your automation Understand the system. Make sure you take time to...
  • Page 29: Step 6: Review The Programming Concepts

    1- -11 Getting Started Step 6: The DL105 PLC instruction set provides for three main approaches to solving the Review the application program, depicted in the figure below. Programming Concepts RLL diagram-style programming is the best tool for solving boolean logic and general CPU register/accumulator manipulation.
  • Page 30: Questions And Answers About Dl105 Micro Plcs

    High-Speed I/O capability. Q. Do I have to buy the full DirectSOFT5 programming package to program the DL105? A. No, DirectSOFT100R can be used. It has the same features as the full version of DirectSOFT5 but allows only 100 words of ladder code that can be downloaded to the PLC.
  • Page 31 1- -13 Getting Started Q. Which devices can I connect to the Com1 port of the DL105? A. The port is RS-232C, fixed at 9600 baud, and uses the proprietary K-sequence protocol. The port communicates with the following devices: DV-1000 Data Access Unit or Optimation Operator interface panels...
  • Page 32: Chapter 2: Installation, Wiring, And Specifications

    Installation, Wiring, and Specifications In This Chapter..— Safety Guidelines — Orientation to DL105 Front Panel — Mounting Guidelines — Wiring Guidelines — System Wiring Strategies — Wiring Diagrams and Specifications — Glossary of Specification Terms...
  • Page 33: Safety Guidelines

    At a minimum, you should follow these regulations. Also, you should use the following techniques, which may help reduce the risk of safety concerns. Orderly system shutdown sequence in the PLC control program. System power disconnects (guard limits, emergency stop switches, etc.) DL105 PLC User Manual, 3rd Edition...
  • Page 34: Three Levels Of Protection

    (memory error, I/O communications error. etc.). Neutral Use E-Stop and Master Relay Master Control Power On Guard E STOP Relay Limit Guard Limit Switch Emergency Stop L1 to Output Supply Arbor L1 to Input Supply (optional) DL105 PLC User Manual, 3rd Edition...
  • Page 35: Emergency Power Disconnect

    Approval WARNING: Explosion Hazard! Substitution of components may impair suitability for Class 1, Division 2. Do not disconnect equipment unless power has been switched off or area is known to be non- -hazardous. DL105 PLC User Manual, 3rd Edition...
  • Page 36: Orientation To Dl105 Front Panel

    2- -5 Installation, Wiring, and Specifications Orientation to DL105 Front Panel All connections, indicators, and labels on the DL105 Micro PLCs are located on its front panel. Please refer to the drawing below. External Power Input Discrete Output Terminals Output Circuit Power Input...
  • Page 37: Protective Sheet For Dl105 Vents

    Some machine fabrication environments may accidentally cause conductive debris for DL105 Vents to fall through the DL105 cooling vents and into the unit. All DL105 units come with a protective sheet wrapped around the unit, covering the cooling vents. However, it must be removed before electrical operation.
  • Page 38: Mounting Guidelines

    Enclosure Selection and Component Dimensions Unit Dimensions The following diagram shows the outside dimensions and mounting hole locations for all versions of the DL105. Make sure you follow the installation guidelines to allow proper spacing from other components. 5.12” 3.48”...
  • Page 39: Panel Layout & Clearances

    DL105 component Not to Scale 4. The ground terminal on the DL105 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.
  • Page 40: Agency Approvals

    8. The DL105 systems are designed to be powered by 110 VAC , 220 VAC, 125 VDC or 24 VDC normally available throughout an industrial environment.
  • Page 41: Using Mounting Rails

    2- -10 Installation, Wiring, and Specifications Using Mounting DL105 Micro PLCs can also be secured to a cabinet by using mounting rails. We Rails recommend rails that conform to DIN EN standard 50 022. They are approximately 35mm high, with a depth of 7.5mm. If you mount the Micro PLC on a rail, do consider using end brackets on each side of the PLC.
  • Page 42: Wiring Guidelines

    14 AWG is the recommended size. NOTE: You can connect either 115 VAC, 220 VAC, or 125 VDC to AC-powered versions of the DL105. Special wiring or jumpers are not required as with some of the other DirectLOGIC products.
  • Page 43: External Power Source

    DL105 unit. This double fusing technique is required when operating from direct current. The recommended fuse size for the branch circuit to the DL105 is 0.5A (for example, a Littlefuse 312.500 or equivalent).
  • Page 44: Planning The Wiring Routes

    8 or 16, depending on the number of points in an I/O group. For the DL105 the ten inputs use reference numbers X0 -- X7 and X10 -- X11. The eight output points use references Y0 -- Y7.
  • Page 45: System Wiring Strategies

    Operator Interface Boundary The next figure shows the internal layout of DL105 PLCs, as viewed from the front panel. In addition to the basic circuits covered above, it includes an auxiliary +24VDC power supply with its own isolation boundary. Since the supply output is...
  • Page 46: Powering I/O Circuits With The Auxiliary Supply

    +24VDC auxiliary supply. Powering I/O All AC-powered DL105 Micro PLCs feature the internal auxiliary supply. If input Circuits with the devices AND output loads need +24VDC power, the auxiliary supply can power both circuits as shown in the following diagram.
  • Page 47: Powering I/O Circuits Using Separate Supplies

    Some applications will use the Micro PLC power source to also power the input circuit. This typically occurs on a DC-powered DL105, as shown in the drawing below to the left. The inputs share the PLC power source supply, while the outputs have their own separate supply.
  • Page 48: Connecting Operator Interface Devices

    Use cable part no. OP--2CBL Connecting DL105 Micro PLCs can be programmed with either a handheld programmer or with DirectSOFT32 on a PC. Connect the DL105 to a PC using the cable shown below. Programming Devices RJ12 9-pin D-shell...
  • Page 49: Sinking / Sourcing Concepts

    By applying the circuit principle above to the four possible combinations of input/output sinking/sourcing types, we have the four circuits as shown below. DL105 Micro PLCs provide all except the sourcing output I/O circuit types. Sinking Input Sinking Output...
  • Page 50: I/O "Common" Terminal Concepts

    This is especially important in output circuits, where heavier gauge wire is sometimes necessary on commons. Most DL105 input and output circuits are I/O Common Grouping Bar grouped into banks that share a common return path.
  • Page 51: Connecting Dc I/O To "Solid State" Field Devices

    DC circuit, one must be wired as sourcing and the other as sinking. Solid State The DL105’s DC inputs are flexible in that they detect current flow in either direction, Input Sensors 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 52 (turn--on) input input -- 0.7 supply supply pull-up input pull-up input pullup The drawing below shows the actual wiring of the DL105 Micro PLC to the supply and pull-up resistor. Supply Output Common DL105 PLC User Manual, 3rd Edition...
  • Page 53: Relay Output Wiring Methods

    In the circuit on the following page, loads for Y0 -- Y3 use the same AC power supply which powers the DL105 PLC. Loads for Y4 -- Y7 use a separate DC supply. In this example, the commons are separated according to which supply powers the associated load.
  • Page 54: Surge Suppresion For Inductive Loads

    For example, the waveform in the figure below shows the energy released when opening a contact switching a 24 VDC solenoid. Notice the large voltage spike. +24 VDC +24 VDC --24 VDC Module Relay Contact --324 VDC DL105 PLC User Manual, 3rd Edition...
  • Page 55: Prolonging Relay Contact Life

    1N914, 1N941, etc. Be sure the diode is in the circuit correctly before operation. If installed backwards, it short-circuits the supply when the relay energizes. Inductive Field Device PLC Relay Output Input Output Supply Common Common DL105 PLC User Manual, 3rd Edition...
  • Page 56: Dc Input Wiring Methods

    2- -25 Installation, Wiring, and Specifications DC Input Wiring DL105 Micro PLCs with DC inputs are particularly PLC DC Input Methods flexible because they can be either sinking or Input sourcing. The dual diodes (shown to the right) allow current to flow in either direction. The inputs accept either 10 -- 26.4 VDC or 21.6 -- 26.4 VAC.
  • Page 57: Dc Output Wiring Methods

    2- -26 Installation, Wiring, and Specifications DC Output DL105 DC output circuits are high-performance MOSFET switches with low Wiring Methods 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 eight outputs, even though there are three common terminals.
  • Page 58: High-Speed I/O Wiring Methods

    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 DL105 can count quadrature pulses at up to 5 kHz from an incremental encoder as shown below.
  • Page 59: F1--04Sim Input Simulator Wiring

    Polarity does not matter, since the inputs can be sinking or sourcing. NOTE: The Input Simulator will not work on DL105 micros with AC type inputs. The +24 VDC auxiliary supply voltage is less than the required input threshold.
  • Page 60: Wiring Diagrams And Specifications

    Wiring Diagrams and Specifications The remainder of this chapter dedicates two to three pages to each of the eight versions of DL105 Micro PLCs. Each section contains a basic wiring diagram, equivalent I/O circuits, and specification tables. Please refer to the section which describes the particular DL105 version used in your application.
  • Page 61 100 meg ohms @ 500 VDC Smallest Recommended Load 10 mA OFF to ON Response 15 mS ON to OFF Response 5 mS Status Indicators Logic Side Commons 2 channels / common x 4 banks Fuses None (external recommended) DL105 PLC User Manual, 3rd Edition...
  • Page 62: F1--130Dr/F1--130Dr--Ce I/O Wiring Diagram

    These versions have a +24V supply output to power external devices. The output is rated at 0.5 Amperes, and includes short-circuit protection and full isolation from Power Supply internal CPU circuitry. These features make it ideal for powering sensors, solenoids, DL105 PLC User Manual, 3rd Edition...
  • Page 63: F1--130Dr/F1--130Dr--Ce General Specifications

    100 meg ohms @ 500 VDC Smallest Recommended Load 10 mA OFF to ON Response 15 mS ON to OFF Response 5 mS Status Indicators Logic Side Commons 2 channels / common x 4 banks Fuses None (external recommended) DL105 PLC User Manual, 3rd Edition...
  • Page 64: F1--130Ad I/O Wiring Diagram

    Be sure the combined load currents do not exceed 0.5 A. Note that on the F1--130AD, the +24V auxiliary output is not high enough to power its input circuits (input ON threshold is 90VDC). DL105 PLC User Manual, 3rd Edition...
  • Page 65 OFF to ON Response <10 μS 3.5 μS ON to OFF Response <70 μS 110 μS Status Indicators Logic Side Logic Side Commons Internally connected Internally connected Fuses None None DL105 PLC User Manual, 3rd Edition...
  • Page 66 These versions have a +24V supply output to power external devices. The output is rated at 0.5 Amperes, and includes short-circuit protection and full isolation from Power Supply internal circuitry. These features make it ideal for powering sensors, solenoids, and DL105 PLC User Manual, 3rd Edition...
  • Page 67 OFF to ON Response <10 μs 3.5 μs ON to OFF Response <70 μs 110 μs Status Indicators Logic Side Logic Side Commons Internally connected Internally connected Fuses None None DL105 PLC User Manual, 3rd Edition...
  • Page 68: F1--130Aa I/O Wiring Diagram

    CPU circuitry. These features make it ideal for powering sensors, solenoids, and other field devices. Note that on the F1--130AA, the +24V auxiliary output cannot directly power its input and output circuits(input ON threshold is 90VDC, outputs require AC only). DL105 PLC User Manual, 3rd Edition...
  • Page 69: F1--130Aa General Specifications

    10 mS @ 50 Hz, zero-crossing ON to OFF Response 8.33 mS @ 60 Hz, zero-crossing, 10 mS @ 50 Hz, zero-crossing Status Indicators Logic Side Commons 2 channels / common x 4 banks Fuses None (external recommended) DL105 PLC User Manual, 3rd Edition...
  • Page 70: F1--130Da I/O Wiring Diagram

    0.5 Amperes, and includes short-circuit protection and full isolation from internal CPU circuitry. These features make it ideal for powering sensors, solenoids, and other field devices. In fact, it can be used as the DC supply for switches or DL105 PLC User Manual, 3rd Edition...
  • Page 71 10 mS @ 50 Hz, zero-crossing ON to OFF Response 8.33 mS @ 60 Hz, zero-crossing, 10 mS @ 50 Hz, zero-crossing Status Indicators Logic Side Commons 2 channels / common x 4 banks Fuses None (external recommended) DL105 PLC User Manual, 3rd Edition...
  • Page 72: F1--130Dr--D I/O Wiring Diagram

    The relay contacts can switch AC or DC voltages. No Auxiliary +24V The F1--130DR--D does not include a +24V output, as do most other DL105 PLCs. Power Supply Since this unit requires +24V as the main supply input, it it usually most economical to use the same supply to power suitable field devices.
  • Page 73: F1--130Dr--D General Specifications

    100 meg ohms @ 500 VDC Smallest Recommended Load 10 mA OFF to ON Response 15 ms ON to OFF Response 5 ms Status Indicators Logic Side Commons 2 channels / common x 4 banks Fuses None (external recommended) DL105 PLC User Manual, 3rd Edition...
  • Page 74: F1--130Dd--D I/O Wiring Diagram

    The equivalent output circuit shows one channel of the bank of eight. No Auxiliary +24V The F1--130DR--D does not include a +24V output, as do most other DL105 PLCs. Power Supply Since this unit requires +24V as the main supply input, it it usually most economical to use the same supply to power suitable field devices.
  • Page 75: F1--130Dd--D General Specifications

    OFF to ON Response <10 μs 3.5 μs ON to OFF Response <70 μs 110 μs Status Indicators Logic Side Logic Side Commons Internally connected Internally connected Fuses None None DL105 PLC User Manual, 3rd Edition...
  • Page 76: Glossary Of Specification Terms

    Status Indicators The LEDs that indicate the ON/OFF status of an input or output point. All LEDs on DL105 Micro PLCs are electrically located on the logic side of the input or output circuit. DL105 PLC User Manual, 3rd Edition...
  • Page 77: Chapter 3: High-Speed Input And Pulse Output Features

    High-Speed Input and Pulse Output Features In This Chapter..— Introduction — Choosing the HSIO Operating Mode — Mode 10: High-Speed Counter — Mode 20: Quadrature Counter — Mode 30: Pulse Output — Mode 40: High-Speed Interrupt —...
  • Page 78: Availability Of Hsio Features

    These applications usually involve some type of motion control, or high-speed interrupts for time-critical events. The DL105 Micro PLC solves this traditionally expensive problem with built-in CPU enhancements. Let’s take a closer look at the available high-speed I/O features.
  • Page 79: Dedicated High-Speed I/O Circuit

    The internal CPU’s main task is to execute the ladder program and read/write all I/O Speed I/O Circuit points during each scan. In order to service high-speed I/O events, the DL105 includes a special circuit which is dedicated to a portion of the I/O points. Refer to the DL105 block diagram in the figure below.
  • Page 80: Choosing The Hsio Operating Mode

    Regular Output Default Mode Mode 60 (Filtered Inputs) is the default mode. The DL105 is initialized to this mode at the factory, and any time you clear V-memory scratchpad. In the default condition, X0--X3 are filtered inputs (10 mS delay) and Y0--Y1 are standard outputs.
  • Page 81: Configuring The Hsio Mode

    V7634 xxxx points X0 -- X3. Other memory locations V7635 xxxx may require configuring, depending on the V7636 xxxx HSIO mode (see the corresponding V7637 xxxx section for particular HSIO modes). DL105 PLC User Manual, 3rd Edition...
  • Page 82: Mode 10: High-Speed Counter

    Y2 - - Y7 HSIO I/O data V-memory COUNTER Mode Select FILTER V7633 xx10 Reset X1, X2, X3 X4- - X11 Input Circuit Next, we will discuss how to program the high-speed counter and its presets. DL105 PLC User Manual, 3rd Edition...
  • Page 83: Wiring Diagram

    Counter Input Wiring Signal Interfacing to The DL105’s DC inputs are flexible in that they detect current flow in either direction, Counter Outputs so they can be wired to a counter with either sourcing or sinking outputs. In the following circuit, a counter has open-collector NPN transistor outputs. It sinks current from the PLC input point, which sources current.
  • Page 84: Setup For Mode 10

    Execution HSIO X2, external reset Count = Interrupt V-memory Preset Data Preset? Routine V2320 0000 1000 Current Program instruction V2322 0000 2000 SPxxx V2324 0000 2500 Output V2326 0000 3175 Update V2376 0921 0000 DL105 PLC User Manual, 3rd Edition...
  • Page 85 V2367 / V2366 SP563 V2341 / V2340 SP550 V2371 / V2370 SP564 V2343 / V2342 SP551 V2373 / V2372 SP565 V2345 / V2344 SP552 V2375 / V2374 SP566 V2347 / V2346 SP553 V2377 / V2376 SP567 DL105 PLC User Manual, 3rd Edition...
  • Page 86: Calculating Your Preset Values

    V7635 Filtered Input xx06 (xx = filter time) V7636 Counter Reset (no interrupt) 0007 Counter Reset (with interrupt) 0107 FIltered Input xx06 (xx = filter time) V7637 FIltered Input xx06 (xx = filter time) DL105 PLC User Manual, 3rd Edition...
  • Page 87: Writing Your Control Program

    3- -11 High-Speed Input and Pulse Output Features Writing Your You may recall that the counter instruction is a standard instruction in the DL105 Control Program instruction set. Refer to the figure below. The mnemonic for the counter is UDC (up-down counter).The DL105 can have up to 64 counters, labeled CT0 through...
  • Page 88: Program Example Cont'd

    Y0. This technique can make more than 24 comparisons, but it is scan-time dependent. However, use the 24 built-in presets with the interrupt routine if your application needs a very fast response time, as shown in the next example. DL105 PLC User Manual, 3rd Edition...
  • Page 89: Counter With Presets Program Example

    Program Example three grooves in the work-piece at precise positions. When the lead screw turns, the counter device generates pulses which the DL105 can count. The three preset variables A, B, and C represent the positions (number of pulses) corresponding to each of the three grooves.
  • Page 90 X2. The X2 contact will be on (inside the interrupt routine only) if the interrupt was caused by the external reset, X2 input. DL105 PLC User Manual, 3rd Edition...
  • Page 91: Counter With Preload Program Example

    Generate a preload counter input pulse, which causes the counter to preload from V1076-V1077. Enable the counter by setting C0, when the preolad pulse on C1 has occurred (C1 is off). END coil marks the end of the main program. DL105 PLC User Manual, 3rd Edition...
  • Page 92: Troubleshooting Guide For Mode 10

    1. Check the LED status indicator for X2 to make sure it is active when you want a reset. Or, if you are using an internal reset, use the status mode of DirectSOFT to monitor the reset input to the counter. DL105 PLC User Manual, 3rd Edition...
  • Page 93: Mode 20: Quadrature Counter

    HSIO counter counts UP. If Phase B’s rising edge precedes Phase A’s rising edge (indicates counter-clockwise motion), the counter counts DOWN. 90° phase shift Leading Edge Signal Clockwise sequence Phase A Phase B Counterclockwise sequence Phase A Phase B one cycle Leading Edge Signal DL105 PLC User Manual, 3rd Edition...
  • Page 94: Wiring Diagram

    High-speed Input and Pulse Output Features Wiring Diagram A general wiring diagram for encoders to the DL105 in HSIO Mode 20 is shown below. Encoders with sinking outputs (NPN open collector) are probably the best choice for interfacing. If the encoder sources to the inputs, it must output 12 to 24 VDC.
  • Page 95: Setup For Mode 20

    Input Configuration Function Hex Code Register Required V7634 Phase A 0012 V7635 Phase B 0000 V7636 Counter Reset (no interrupt) 0007 V7637 Filtered Input xx06 (xx = filter time) DL105 PLC User Manual, 3rd Edition...
  • Page 96: Writing Your Control Program

    3- -20 High-speed Input and Pulse Output Features Writing Your You may recall that the Up-Down counter instruction is standard in the DL105 Control Program instruction set. Refer to the figure below. The mnemonic for the counter is UDC (up-down counter).The DL105 can have up to 64 counters, labeled CT0 through CT77.
  • Page 97: Program Example Cont'd

    Set Y1 to ON when the counter reaches our comparison value. END coil marks the end of the main program.. To preload the counter, just add the following example rungs to the program above. DL105 PLC User Manual, 3rd Edition...
  • Page 98: Counter Preload Program Example

    Also verify the configuration register V7636 for X2 is set to 7. Or, if you are using an internal reset, use the status mode of DirectSOFT to monitor the reset input to the counter. DL105 PLC User Manual, 3rd Edition...
  • Page 99: Mode 30: Pulse Output

    By programming acceleration and deceleration values, position and velocity target values, the HSIO function automatically calculates the entire motion profile. The figure below shows the DL105 generating pulse and direction signals to the drive amplifier of a stepper positioning system. The pulses accomplish the profile independently and without interruption to ladder program execution in the CPU.
  • Page 100: Functional Block Diagram

    Hopefully, the above discussion will explain why some I/O reference names have dual meanings in Pulse Output Mode. Please read the remainder of this section with care, to avoid confusion about which actual I/O function is being discussed. DL105 PLC User Manual, 3rd Edition...
  • Page 101: Wiring Diagram

    The pulse signals from Y0 and Y1 outputs will typically go to drive input circuits as Drive Inputs shown above. Remember that the DL105’s DC outputs are sinking-only. It will be helpful to locate equivalent circuit schematics of the drive amplifier. The following diagram shows how to interface to a sourcing drive input circuit.
  • Page 102: Motion Profile Specifications

    Preload Position Value -- if motion is stopped and Start Profile is off, you can load a new value in CT76/CT77, and turn on Y1. At that transition, the value in CT76/CT77 becomes the current position. DL105 PLC User Manual, 3rd Edition...
  • Page 103: Setup For Mode 30

    Absolute position targets are referenced to zero. Relative position targets are referenced to the current position (previous target position). You may choose whichever reference method that is most convenient for your application. DL105 PLC User Manual, 3rd Edition...
  • Page 104: Profile Parameter Table

    (see end of section) Velocity Profile V-Memory Function Range Units V2320 Velocity Profile 2000 only V2321/ 2322 Direction Select 80000000=CCW, Pulses 0=CW V2323 Velocity 4 to 700 x 10 pps V2326 Error Code (see end of section) DL105 PLC User Manual, 3rd Edition...
  • Page 105: Trapezoidal Profile

    Only the first velocity value needs to be defined. The remaining velocity values can be created while motion in in progress. Arrows in the profile shown indicate velocity changes. Time DL105 PLC User Manual, 3rd Edition...
  • Page 106: Trapezoidal Profile Operation

    HSIO counter. If the ladder program loads a new value in CT76/CT77 (V1076/V1077), then energizing Y1 will copy that value into the HSIO circuit counter. This must occur before the profile begins, because the HSIO ignores Y1 during motion. DL105 PLC User Manual, 3rd Edition...
  • Page 107: Trapezoidal Profile Program Example

    10 mS filter time constant. K1006 Output this constant to V7635, configuring X1. V7635 Output this constant to V7636, configuring X2. V7636 Output this constant to V7637, configuring X3. V7637 DL105 PLC User Manual, 3rd Edition...
  • Page 108: Program Example Cont'd

    Output this constant to V1076/V1077 (CTA76/CTA77). the OUTD location of the current position value. Velocity V1076 Turn on Y1 for 1 scan. The off-to-on transition causes the HSIO to preload the current position with the value in DL105 PLC User Manual, 3rd Edition...
  • Page 109: Registration Profile Operation

    CPU uses logical output Y0 to start the profile. Immediately the HSIO turns off the Profile Complete signal (logical X0), so the ladder program can monitor the move’s completion by sensing the signal’s on state. DL105 PLC User Manual, 3rd Edition...
  • Page 110 V7635 Output this constant to V7637, configuring X3. V7637 Load the constant K1006 which is required to select the external interrupt. K1006 Output this constant to V7636, configuring X2, the registration interrupt input. V7636 DL105 PLC User Manual, 3rd Edition...
  • Page 111: Program Example Cont'd

    The profile will begin when the start input (X3) is given. Then the motion begins an indefinite move, which lasts until an external interrupt on X2 occurs. Then the motion continues on for 5000 more pulses before stopping. DL105 PLC User Manual, 3rd Edition...
  • Page 112: Home Search Program Example

    Configure the Y0 and Y1 selects a 10 mS filter pulse outputs for pulse Direction K1006 K103 time constant. and direction, respectively. Output this constant to V7636, configuring X2, the V7636 V7634 registration interrupt input. DL105 PLC User Manual, 3rd Edition...
  • Page 113 CW direction. If the CW limit is encountered, the program searches for home in the CCW direction, passes it slightly, and does the final CW search for home. After reaching home, the last ladder rung preloads the current position to “0”. DL105 PLC User Manual, 3rd Edition...
  • Page 114: Velocity Profile Operation

    Unlike the trapezoidal and registration profiles, you must specify the desired direction of travel with velocity profiles. Load the direction select register (V2321/V2322 by default) with 8000 0000 hex for CCW direction, or 0 for CW direction. DL105 PLC User Manual, 3rd Edition...
  • Page 115: Velocity Profile Program Example

    10 mS filter time constant. K1006 Output this constant to V7635, configuring X1. V7635 Output this constant to V7636, configuring X2. V7636 Output this constant to V7637, configuring X3. V7637 DL105 PLC User Manual, 3rd Edition...
  • Page 116: Program Example Cont'd

    Load the constant K600 which is required to select a velocity of 6000 pps when the operator closes X4. K600 Output this constant to V2323, the location of the velocity parameter register. The speed will change immediately. V2323 DL105 PLC User Manual, 3rd Edition...
  • Page 117: Pulse Output Error Codes

    2. Programming error -- If there are no pulses on Y0 or Y1 you may have a programming error. Check the contents of V2326 for an error code that may be generated when the PLC attempts to do the move profile. Error code descriptions are given above. DL105 PLC User Manual, 3rd Edition...
  • Page 118 1. Wiring -- If you have selected CW and CCW type operation, just swap the wires on Y0 and Y1 outputs. 2. Direction control -- If you have selected Pulse and Direction type operation, just change the direction bit to the opposite state. DL105 PLC User Manual, 3rd Edition...
  • Page 119: Mode 40: High-Speed Interrupts

    In this configuration, inputs X0 through X3 are filtered inputs. DL105 Output Circuit Y0, Y1 Y2 - - Y7 HSIO I/O data Interrupt Interrupt V-memory Timer FILTER Mode Select V7633 xx40 X0, X1, X2, X3 X4- - X11 Input Circuit DL105 PLC User Manual, 3rd Edition...
  • Page 120: Setup For Mode 40

    Enable Interrupt (ENI) instruction at the beginning of your program. Otherwise, the interrupt routine will not be executed. CPU Scan Input Update Ladder Program X0, External Interrupt Execution Interrupt Routine Program current TIMER instruction Interrupt source / Time select Input Update V7634 xxx4 DL105 PLC User Manual, 3rd Edition...
  • Page 121: External Interrupt Timing Parameters

    V7635 interrupt is in use) the timed INT timebase V7635 Filtered Input xx06 (xx = filter time) V7636 Filtered Input xx06 (xx = filter time) V7637 Filtered Input xx06 (xx = filter time) DL105 PLC User Manual, 3rd Edition...
  • Page 122 END coil marks the end of the main program.. The INT label marks the beginning of the interrupt service routine program. Interrupt Routine Insert interrupt service routine rungs here for your application. Return to the main ladder program. DL105 PLC User Manual, 3rd Edition...
  • Page 123 END coil marks the end of the main program.. The INT label marks the beginning of the interrupt service routine program. Interrupt Routine Insert interrupt service routine rungs here for your application. Return to the main ladder program. DL105 PLC User Manual, 3rd Edition...
  • Page 124: Mode 50: Pulse Catch Input

    Note that the pulse catch and filtered input functions are opposite in nature. The pulse catch feature on X0 seeks to capture narrow pulses, while the filter input feature on X1, X2, and X3 seeks to reject narrow pulses. DL105 PLC User Manual, 3rd Edition...
  • Page 125: Setup For Mode 50

    Function Hex Code Register Required V7634 Pulse Catch Input 0005 V7635 Filtered Input xx06 (xx = filter time) V7636 Filtered Input xx06 (xx = filter time) V7637 Filtered Input xx06 (xx = filter time) DL105 PLC User Manual, 3rd Edition...
  • Page 126 V7637 Main Program SP100 Use the pulse catch input to set output Y0 on. This will work even for a very short pulse on X0. END coil marks the end of the main program.. DL105 PLC User Manual, 3rd Edition...
  • Page 127: Mode 60: Discrete Inputs With Filter

    In the bottom waveforms, the physical input pulse width is smaller than the filter time. In this case, the logical input to the ladder program remains in the OFF state (input pulse was filtered out). Filter Time Filter Time Physical Input Logical Input Time Physical Input Logical Input DL105 PLC User Manual, 3rd Edition...
  • Page 128: Setup For Mode 60

    Filtered Input xx06 (xx = filter delay time) V7635 Filtered Input xx06 (xx = filter delay time) V7636 Filtered Input xx06 (xx = filter delay time) V7637 Filtered Input xx06 (xx = filter delay time) DL105 PLC User Manual, 3rd Edition...
  • Page 129 99 mS filter time constant. K9906 Output this constant to V7637, configuring X3. V7637 Main Program Insert Main Program rungs here for your application. END coil marks the end of the main program.. DL105 PLC User Manual, 3rd Edition...
  • Page 130: Chapter 4: Cpu Specifications And Operation

    — I/O Response Time — CPU Scan Time Considerations — PLC Numbering Systems — Memory Map — DL105 System V-Memory — X Input Bit Map — Y Output Bit Map — Control Relay Bit Map — Stage Control / Status Bit Map —...
  • Page 131 (AC- -powered versions only) NOTE: The High-Speed I/O function (HSIO) consists of dedicated but configurable hardware in the DL105. It is not considered part of the CPU, because it does not execute the ladder program. For more on HSIO operation, see Chapter 3.
  • Page 132 Immediate I/O Interrupt input (external / timed) Subroutines For/Next Loops Math Integer Drum Sequencer Instruction Time of Day Clock/Calendar Internal diagnostics Password security System error log User error log Battery backup No (uses super-cap.) DL105 PLC User Manual, 3rd Edition...
  • Page 133 Cables are available that allow you to quickly Port Pinout and easily connect a Handheld Programmer or Diagrams a personal computer to the DL105 PLCs. However, if you need to build your own cables, use the pinout diagrams shown. The DL105 Phone Jack...
  • Page 134: Connecting The Programming Devices

    Connecting the If you’re using a Personal Computer with the DirectSOFT programming package, Programming you can connect the computer to the DL105’s programming port. For an engineering office environment (typical during program development), this is the preferred Devices method of programming.
  • Page 135: Cpu Modes

    The DL105 operates as follows when the power is connected. at Power-up 1. The DL105 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).
  • Page 136: Setting Bits In V7633

    Since the changes take affect immediately, you may receive an error message. For example, if you select Power-up in Run Mode and the CPU does not yet contain a program, an error will occur. DL105 PLC User Manual, 3rd Edition...
  • Page 137: Auxiliary Functions

    Modify Program Name Show EEPROM Type (CPU and HPP) Display Scan Time AUX 8* — Password Operations Initialize Scratchpad Modify Password Set Watchdog Timer Unlock CPU Set Retentive Ranges Lock CPU Test Operations HSIO Configuration DL105 PLC User Manual, 3rd Edition...
  • Page 138: Clearing An Existing Program

    AUX 24 — Clear all Ladders AUX 31 — Clear V--Memory Initializing System The DL105 Micro PLC maintain system parameters in a memory area often referred Memory to as the “scratchpad”. In some cases, you may make changes to the system setup that will be stored in system memory.
  • Page 139: Using A Password

    CPU Specifications and Operation Using a Password The DL105 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. Once the CPU is locked you must enter the password before you can use a programming device to change any system parameters.
  • Page 140: Cpu Operation

    CPU Operation Achieving the proper control for your equipment or process requires a good understanding of how DL105 CPUs control all aspects of system operation. There are four main areas to understand before you create your application program: CPU Operating System — the CPU manages all aspects of system control.
  • Page 141: Program Mode

    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. DL105 PLC User Manual, 3rd Edition...
  • Page 142 Then you can use DirectSOFT or a HPP to force outputs on and off. The DL105 PLCs only retain the forced value for one scan. There is an exception to this rule. For example, if the point address is greater than X11 or Y7 or it is not used in the ladder program, then the point will maintain the forced status.
  • Page 143: Read Inputs

    Probably one of the more important things that occurs during this segment is the scan time calculation and watchdog timer control. The DL105 CPU has a “watchdog” timer that stores the maximum time allowed for the CPU to complete the solve application segment of the scan cycle.
  • Page 144: I/O Response Time

    Off/On Delay Output Off/On Delay I/O Response Time In this case, you can calculate the response time by simply adding the following items: Input Delay + Scan Time + Output Delay = Response Time DL105 PLC User Manual, 3rd Edition...
  • Page 145: Normal Maximum I/O Response

    Off/On Delay Output Off/On Delay I/O Response Time 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 DL105 PLC User Manual, 3rd Edition...
  • Page 146: Improving Response Time

    I/O, it only uses the results to solve that one instruction. 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. DL105 PLC User Manual, 3rd Edition...
  • Page 147: Cpu Scan Time Considerations

    I/O response time that was discussed earlier. Writing Outputs The time required to write the output status is 629 μS. Don’t confuse this with the I/O response time that was discussed earlier. DL105 PLC User Manual, 3rd Edition...
  • Page 148 Just add the execution times for all the instructions in your program to determine to total execution time. Appendix C provides a complete list of the instruction execution times for the DL105 Micro PLC. For example, the execution time for running the program shown below is calculated as follows:...
  • Page 149: Plc Numbering Systems

    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. DL105 PLC User Manual, 3rd Edition...
  • Page 150: Memory

    Hexadecimal is just a convenient way for humans to view full binary data. Hexadecimal number 1 0 1 0 0 1 1 1 1 1 1 1 0 1 0 0 V-memory storage DL105 PLC User Manual, 3rd Edition...
  • Page 151: Memory Map

    For example, you need to know how the system identifies input points, output points, data words, etc. The following paragraphs discuss the various memory types used in DL105 Micro PLCs. A memory map overview for the CPU follows the memory descriptions.
  • Page 152: Input Points (X Data Type)

    The discrete input points are noted by an X data type. There are 10 discrete input (X Data Type) points available with DL105 CPUs. In this example, the output point Y0 will be turned on when input X0 energizes. Output Points The discrete output points are noted by a Y data type.
  • Page 153: Counter Current Values (V Data Type)

    Counter CT0, V1001 holds the current value for Counter CT1, etc. V1003 primary reason this programming flexibility. The example shows how you can use relational V1003 contacts to monitor the counter values. V1003 V1003 DL105 PLC User Manual, 3rd Edition...
  • Page 154: Word Memory (V Data Type)

    In this example, control relay C10 will SP6: 50 ms clock energize for 50 ms and de-energize for 50 ms because SP5 is a pre--defined relay that will be on for 50 ms and off for 50 ms. DL105 PLC User Manual, 3rd Edition...
  • Page 155: Dl105 System V-Memory

    CPU Specifications and Operation DL105 System V-memory System Parameters The DL105 PLCs reserve several V-memory locations for storing system and Default Data 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 Locations information.
  • Page 156 Scan — stores the minimum scan time that has occurred since the last Program Mode to Run Mode transition (milliseconds). V7777 Scan — stores the maximum scan time that has occurred since the last Program Mode to Run Mode transition (milliseconds). DL105 PLC User Manual, 3rd Edition...
  • Page 157: Dl105 Aliases

    V41200 is the word memory reference for discrete bits SP0 through SP17, therefore, it’s alias is VSP0. V41201 is the word V41200 VSP0 memory reference for discrete bits SP20 through SP37, therefore, it’s alias is VSP20. DL105 PLC User Manual, 3rd Edition...
  • Page 158: Dl105 Memory Map

    V7620 -- V7647 None specific, used for various parameters V7750--V7777 purposes 1 -- The DL105 systems are limited to 10 discrete inputs and 8 discrete outputs with the present available hardware, but 128 point addresses exist. DL105 PLC User Manual, 3rd Edition...
  • Page 159: Input Bit Map

    X Input Bit Map This table provides a listing of individual Input points associated with each V-memory address bit for the DL105’s ten physical inputs. Actual available references are X0 to X177 (V40400 -- V40407). DL105 Input (X) Points Address...
  • Page 160: Stage Control / Status Bit Map

    Address V41100 V41101 V41102 V41103 Counter Status Bit Map This table provides a listing of individual counter contacts associated with each V-memory address bit. DL105 Counter (CT) Contacts Address Address V41140 V41141 V41142 V41143 DL105 PLC User Manual, 3rd Edition...
  • Page 161: Chapter 5: Standard Rll Instructions

    Standard RLL Instructions In This Chapter..— Boolean Instructions — Comparative Boolean — Immediate Instructions — Timer, Counter and Shift Register Instructions — Accumulator / Stack Load and Output Data Instructions — Logical Instructions (Accumulator) — Math Instructions —...
  • Page 162: Introduction

    Standard RLL Instructions Introduction DL105 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, or the Stage programming instructions in Chapter 7.
  • Page 163: Using Boolean Instructions

    END Statement All DL105 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.
  • Page 164: Normally Closed Contact

    The following example shows how you can use the AND instruction to continue a rung with more conditional outputs. DirectSOFT Example Handheld Mnemonics STR X0 AND X1 OUT Y0 AND X2 OUT Y1 AND X3 OUT Y2 DL105 PLC User Manual, 3rd Edition...
  • Page 165: Parallel Elements

    The following example shows a simple network Branches in Series with contact branches in series with parallel contacts. DirectSOFT Example Handheld Mnemonics STR X0 STR X1 OR X2 ANDSTR OUT Y0 DL105 PLC User Manual, 3rd Edition...
  • Page 166: Comparative Boolean

    Some of them require you to move the data all over the place before you can actually perform the comparison. The DL105 Micro PLCs provide Comparative Boolean instructions that allow you to quickly and easily solve this problem. The Comparative Boolean provides evaluation of two 4-digit values using boolean contacts.
  • Page 167: Boolean Stack

    There are limits to how many elements you can include in a rung. This is because the DL105 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.
  • Page 168: Immediate Boolean

    Boolean Instructions Immediate Boolean The DL105 Micro PLCs usually can 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 DL105 PLCs offer Immediate...
  • Page 169: Boolean Instructions

    In the following Store example, when input X1 is on, output Y2 will energize. DirectSOFT Handheld Programmer Keystrokes In the following Store Not example, when input X1 is off output Y2 will energize. DirectSOFT Handheld Programmer Keystrokes STRN DL105 PLC User Manual, 3rd Edition...
  • Page 170: Or (Or)

    In the following Or example, when input X1 or X2 is on, output Y5 will energize. DirectSOFT Handheld Programmer Keystrokes In the following Or Not example, when input X1 is on or X2 is off, output Y5 will energize. DirectSOFT Handheld Programmer Keystrokes DL105 PLC User Manual, 3rd Edition...
  • Page 171: And (And)

    In the following And example, when input X1 and X2 are on output Y5 will energize. DirectSOFT Handheld Programmer Keystrokes In the following And Not example, when input X1 is on and X2 is off output Y5 will energize. DirectSOFT Handheld Programmer Keystrokes ANDN DL105 PLC User Manual, 3rd Edition...
  • Page 172: And Store (And Str)

    Handheld Programmer Keystrokes DirectSOFT ANDST 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 Handheld Programmer Keystrokes ORST DL105 PLC User Manual, 3rd Edition...
  • Page 173 There are limits to what you can enter with boolean instructions. This is because the DL105 internal CPU uses an 8-level stack to evaluate the various logic elements. The stack is a temporary storage area that helps solve the logic for the rung. Each time you enter a STR instruction, the instruction is placed on the top of the stack.
  • Page 174: Out (Out)

    Operand Data Type DL130 Range Inputs 0--177 Outputs 0--177 Control Relays 0--377 In the following example, when X1 or X4 is on, Y2 will energize. DirectSOFT Handheld Programmer Keystrokes OR OUT INST# INST# OR OUT DL105 PLC User Manual, 3rd Edition...
  • Page 175: Positive Differential (Pd)

    Used point/location is reset it is not necessary HPP Used for the input to remain on. Operand Data Type DL105 Range Inputs 0--11 Outputs 0--7 Control Relays 0--377 Stage 0--377 Timer 0--77 Counter 0--77 DL105 PLC User Manual, 3rd Edition...
  • Page 176: Pause (Pause)

    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. DL105 PLC User Manual, 3rd Edition...
  • Page 177: Comparative Boolean

    In the following example, when the value in V--memory location V2000 = 4933 , Y3 will energize. Handheld Programmer Keystrokes DirectSOFT V2000 K4933 SHFT In the following example, when the value in V--memory location V2000 ¸ 5060, Y3 will energize. Handheld Programmer Keystrokes DirectSOFT SHFT V2000 K5060 STRN DL105 PLC User Manual, 3rd Edition...
  • Page 178: Or If Equal (Ore)

    K4500 V2002 K2345 SHFT In the following example, when the value in V--memory location V2000 = 3916 or V2002 ¸ 2500, Y3 will energize. DirectSOFT Handheld Programmer Keystrokes SHFT V2000 K3916 V2002 K2500 SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 179: And If Equal (Ande)

    K2345 SHFT SHFT In the following example, when the value in V--memory location V2000 = 2550 and V2002 ¸ 2500, Y3 will energize. DirectSOFT Handheld Programmer Keystrokes V2000 K2550 V2002 K2500 SHFT SHFT ANDN DL105 PLC User Manual, 3rd Edition...
  • Page 180: Store (Str)

    In the following example, when the value in V--memory location V2000 ² 1000, Y3 will energize. DirectSOFT Handheld Programmer Keystrokes V2000 K1000 SHFT In the following example, when the value in V--memory location V2000 < 4050, Y3 will energize. Handheld Programmer Keystrokes DirectSOFT V2000 K4050 SHFT STRN DL105 PLC User Manual, 3rd Edition...
  • Page 181: Or Not (Orn)

    K6045 V2002 K2345 SHFT In the following example when the value in V--memory location V2000 = 1000 or V2002 < 2500, Y3 will energize. Handheld Programmer Keystrokes DirectSOFT SHFT V2000 K1000 SHFT V2002 K2500 DL105 PLC User Manual, 3rd Edition...
  • Page 182: And (And)

    SHFT SHFT In the following example, when the value in V--memory location V2000 = 7000 and V2002 < 2500, Y3 will energize. DirectSOFT Handheld Programmer Keystrokes SHFT V2000 K7000 V2002 K2500 SHFT ANDN SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 183: Immediate Instructions

    The Or Not Immediate connects two contacts in parallel. The status of the (ORNI) contact will be opposite the status of the associated input point at the time the instruction is executed. The image register is not updated. DL105 PLC User Manual, 3rd Edition...
  • Page 184: And Immediate (Andi)

    In the following example, when X1 and X2 are on, Y5 will energize. DirectSOFT Handheld Programmer Keystrokes SHFT In the following example, when X1 is on and X2 are off, Y5 will energize. DirectSOFT Handheld Programmer Keystrokes SHFT ANDN DL105 PLC User Manual, 3rd Edition...
  • Page 185: Or Out Immediate (Orouti)

    (#350) as shown, or type each letter of the command. DirectSOFT Handheld Programmer Keystrokes OUTI INST# In the following example, when X1 or X4 is on, Y2 will energize. DirectSOFT Handheld Programmer Keystrokes OR OUTI INST# OR OUTI INST# DL105 PLC User Manual, 3rd Edition...
  • Page 186: Set Immediate (Seti)

    Handheld Programmer Keystrokes SETI SHFT 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). Handheld Programmer Keystrokes DirectSOFT RSTI SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 187: Timer, Counter And Shift Register Instructions

    9999999.9 and 999999.99 seconds respectively. The timing diagram below shows the relationship between the timer input, timer reset, associated discrete bit, current value, and timer preset. Seconds TMRA Start/Stop Reset Input Current Value 1/10 Seconds DL105 PLC User Manual, 3rd Edition...
  • Page 188 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. DL105 PLC User Manual, 3rd Edition...
  • Page 189: Timer Example Using Discrete Status Bits

    When X1 is turned off the timer will be reset to 0 and the comparative contacts will turn off Y3, Y4, and Y5. Timing Diagram DirectSOFT Seconds TA20 TA20 TA20 Current Value 1/10 Seconds Handheld Programmer Keystrokes SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 190 The following examples show two methods of programming timers. One performs functions when the timer reaches the preset value using the discrete status bit, or use comparative contacts to perform functions at different time intervals. DL105 PLC User Manual, 3rd Edition...
  • Page 191: Accumulating Timer Example Using Discrete Status Bits

    The comparative contacts will turn off when the timer is reset. Comparative Contacts Timing Diagram DirectSOFT Seconds TMRA TA20 TA20 TA20 Current Value 1/10 Seconds Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 192: Using Counters

    The maximum count value is 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 DL105 PLC User Manual, 3rd Edition...
  • Page 193: Counter (Cnt)

    NOTE: * 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. DL105 PLC User Manual, 3rd Edition...
  • Page 194: Counter Example Using Discrete Status Bits

    0, and the comparative contacts will turn off. Counting diagram DirectSOFT CTA2 CTA2 Current Value CTA2 Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 195: Stage Counter (Sgcnt)

    NOTE: * 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. DL105 PLC User Manual, 3rd Edition...
  • Page 196: Stage Counter Example Using Discrete Status Bits

    0. The current value for counter CT2 will be held in V--memory location V1002. Counting diagram DirectSOFT SGCNT Current Value Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 197: Up Down Counter (Udc)

    NOTE: * 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. DL105 PLC User Manual, 3rd Edition...
  • Page 198: Up / Down Counter Example Using Discrete Status Bits

    Comparative value will be 0, and the comparative contacts will turn off. Contacts DirectSOFT32 Counting Diagram V2000 CTA2 CTA2 Current Value Handheld Programmer Keystrokes Handheld Programmer Keystrokes (cont) SHFT SHFT SHFT SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 199: Shift Register (Sr)

    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 on - - indicates off DL105 PLC User Manual, 3rd Edition...
  • Page 200: Accumulator / Stack Load And Output Data Instructions

    Accumulator / Stack Load and Output Data Instructions Using the The accumulator in the DL105 internal CPUs is a 32 bit register which is used as a Accumulator temporary storage location for data that is being copied or manipulated in some manor.
  • Page 201 (Accumulator) ADDD (V2006 and 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 DL105 PLC User Manual, 3rd Edition...
  • Page 202: Using The Accumulator Stack

    When a 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. DL105 PLC User Manual, 3rd Edition...
  • Page 203: Using Pointers

    Level 8 V2002 Using Pointers Many of the DL105 series instructions will allow V-memory pointers as a operand (commonly known as indirect addressing). Pointers allow instructions to obtain data from V-memory locations referenced by the pointer value. NOTE: DL105 V-memory addressing is in octal. However, the pointers reference a V-memory location with values viewed as HEX.
  • Page 204 Hex. 440 Hex. = 2100 Octal which V2101 P 2000 contains the value 2635 V2102 V2103 V2100 Accumulator V2104 V2105 Copy the data from the lower 16 bits of the accumulator to V2200 V2200 V 2200 V2201 DL105 PLC User Manual, 3rd Edition...
  • Page 205: Load (Ld)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 206: Load Double (Ldd )

    Load the value in V2000 and V2001 into the 32 bit accumulator Acc. OUTD V2010 V2011 V2010 Copy the value in the 32 bit accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 207: Load Formatted (Ldf)

    0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 OUTF Location Constant Copy the value from the specified number of bits in the accumulator to Y0 -- Y6 Handheld Programmer Keystrokes SHFT SHFT ANDST SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 208: Load Address (Lda)

    HEX value into the accumulator. O aaa This instruction is useful when an address parameter is required since all addresses for the DL105 system are in octal. Operand Data Type DL130 Range Octal Address All V mem. (See page 4--29)
  • Page 209: Out (Out)

    Handheld Programmer Keystrokes V2001 V2000 V2000 Load the value in V2000 and SHFT ANDST V2001 into the accumulator Acc. OUTD SHFT V2010 Copy the value in the accumulator to V2010 and V2011 V2011 V2010 DL105 PLC User Manual, 3rd Edition...
  • Page 210: Pop (Pop)

    Discrete Bit Flags Description SP63 on when the result of the instruction causes the value in the accumulator to be zero. DL105 PLC User Manual, 3rd Edition...
  • Page 211 Copy the value in the lower 16 bits of the accumulator to V2002 Level 4 Level 5 V2002 Level 6 Handheld Programmer Keystrokes Level 7 SHFT Level 8 SHFT SHFT INST# SHFT SHFT SHFT INST# SHFT SHFT SHFT INST# SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 212: Logical Instructions (Accumulator)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 213: And Double (Andd)

    0 0 1 0 1 0 0 0 0 0 1 1 1 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 DL105 PLC User Manual, 3rd Edition...
  • Page 214: Or (Or)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 215: Or Double (Ord)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 216: Exclusive Or (Xor)

    0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 Acc. V2010 Copy the lower 16 bits of the accumulator to V2010 V2010 Handheld Programmer Keystrokes SHFT SHFT SHFT ANDST SHFT SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 217 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 DL105 PLC User Manual, 3rd Edition...
  • Page 218: Compare (Cmp)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 219: Compare Double (Cmpd)

    V2001 into the accumulator Acc. Compared with CMPD V2010 Compare the value in the accumulator with the value V2011 V2010 in V2010 and V2011 SP60 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT ORST SHFT STRN SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 220: Math Instructions

    Add the value in the lower 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 DL105 PLC User Manual, 3rd Edition...
  • Page 221: Add Double (Addd)

    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 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 222: Subtract (Sub)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 223: Subtract Double (Subd)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 224: Multiply (Mul)

    The value in V2006 is multiplied by the value in the accumulator OUTD V2010 V2010 V2010 Copy the value in the accumulator to V2010 and V2011 Handheld Programmer Keystrokes SHFT ANDST SHFT ORST ANDST SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 225: Divide (Div)

    First stack location contains accumulator is divided by the remainder the value in V2006 V2010 V2010 Copy the value in the lower 16 bits of the accumulator to V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 226: Increment Binary (Incb)

    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 the accumulator by“1” DL105 PLC User Manual, 3rd Edition...
  • Page 227: Bit Operation Instructions

    1 0 0 1 1 1 0 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 Acc. accumulator to V2010 and V2011 V2011 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT ANDST SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 228: Shift Right (Shfr)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 229: Encode (Enco)

    “1” in the accumulator to a 5 bit binary value V2010 Copy the value in the lower 16 bits of the accumulator to V2010 Binary value V2010 for 12. Handheld Programmer Keystrokes SHFT ANDST SHFT INST# SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 230: Decode (Deco)

    0 0 0 0 1 0 0 0 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# DL105 PLC User Manual, 3rd Edition...
  • Page 231: Number Conversion Instructions (Accumulator)

    OUTD V2010 The binary (HEX) value Copy the binary value in the copied to V2010 accumulator to V2010 and V2011 V2011 V2010 Handheld Programmer Keystrokes SHFT ANDST SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 232: Binary Coded Decimal (Bcd)

    1 0 0 0 0 1 0 1 0 0 1 0 1 0 0 1 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 DL105 PLC User Manual, 3rd Edition...
  • Page 233: Invert (Inv)

    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 DL105 PLC User Manual, 3rd Edition...
  • Page 234: Move (Mov)

    V2003 V2033 Copy the specified table V2004 V2034 locations to a table V2030 beginning at location V2030 V2005 V2035 V2006 V2036 Handheld Programmer Keystrokes V2007 V2037 SHFT SHFT ANDST SHFT ANDST SHFT ORST INST# DL105 PLC User Manual, 3rd Edition...
  • Page 235 Step 4:— Insert the MOVMC instruction which specifies destination V--memory (Vaaa), or data label (Kaaa). This is the copy destination. Operand Data Type DL130 Range V--memory All (See page 4--28) NOTE:See Appendix E for an explanation of the DL105 memory system. DL105 PLC User Manual, 3rd Edition...
  • Page 236: Copy Data From A Data Label Area To V--Memory

    Instruction DLBL K1 SHFT SHFT ANDST V2000 C O N SHFT SHFT ANDST V2001 SHFT C O N ANDST ANDST ANDST SHFT V2002 ORST INST# ORST C O N V2003 C O N V2004 DL105 PLC User Manual, 3rd Edition...
  • Page 237: Cpu Control Instructions

    PLC operation in an error condition. In the following example, when C0 turns on, the CPU will stop operation and switch to the program mode. DirectSOFT Handheld Programmer Keystrokes SHFT STOP SHFT SHFT INST# DL105 PLC User Manual, 3rd Edition...
  • Page 238 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. DL105 PLC User Manual, 3rd Edition...
  • Page 239: Mls/Mlr Example

    (B) will function only if input 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 Handheld Programmer Keystrokes SHFT SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 240: Interrupt Instructions

    See Chapter 3, the section on Mode 40 (Interrupt) Operation for more details on interrupt configuration. In the DL105, only one interrupt is available. Operand Data Type DL130 Range...
  • Page 241: External Interrupt Program Example

    16 bits of the accumulator to V7634 V7634 STRN SHFT DISI SHFT SHFT SHFT SHFT SETI SHFT SHFT SETI SHFT NOTE: Only one interrupt is available in the DL105 and it must be Int 0. DL105 PLC User Manual, 3rd Edition...
  • Page 242: Timed Interrupt Program Example

    16 bits of the accumulator to V7634 V7634 STRN SHFT DISI SHFT SHFT SHFT SHFT SHFT STRN SHFT SETI SHFT RSTI NOTE: Only one interrupt is available in the DL105 and it must be Int 0. DL105 PLC User Manual, 3rd Edition...
  • Page 243: Message Instructions

    20, a 1 is 31, 4 is 34 ...) DirectSOFT 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 DL105 PLC User Manual, 3rd Edition...
  • Page 244: Data Label (Dlbl)

    DLBL instruction to store the Constant HEX ASCII equivalent of numerical data (NCON) NCON for use with other instructions. Two digits K aaa can be stored in an NCON instruction. Operand Data Type DL130 Range Constant 0--FFFF DL105 PLC User Manual, 3rd Edition...
  • Page 245: Data Label Example

    The DV-1000 Manual also has information on displaying messages. DirectSOFT DLBL ACON A SW NCON K 2031 NCON K 3436 Handheld Programmer Keystrokes SHFT SHFT ANDST ANDST SHFT INST# ANDN SHFT INST# SHFT INST# DL105 PLC User Manual, 3rd Edition...
  • Page 246: Chapter 6: Drum Instruction Programming

    Drum Instruction Programming In This Chapter..— Introduction — Step Transitions — Overview of Drum Operation — Drum Control Techniques — Drum Instruction...
  • Page 247: Purpose

    Electronic drums provide the benefits of mechanical drums and more. For example, they have a preset feature that is impossible for mechanical drums: The preset function lets you move from the present step directly to any other step on command! DL105 PLC User Manual, 3rd Edition...
  • Page 248: Output Sequences

    Compare the two, and you will find that they are equivalent! If you can see their equivalence, you are well on your way to understanding drum instruction operation. Step Output DL105 PLC User Manual, 3rd Edition...
  • Page 249: Drum Instruction Parameters

    Step 2. The drum spends a specific amount of time in each step, given by the formula: Time in step = 0.01 seconds X Timebase x Counts per step DL105 PLC User Manual, 3rd Edition...
  • Page 250: Timer And Event Transitions

    The timer increments as long as the event (X0) remains true. When the counts for Step 1 have expired, then the drum moves to Step 2. The outputs change immediately to match the new pattern for Step 2. DL105 PLC User Manual, 3rd Edition...
  • Page 251: Event-Only Transitions

    The value of CT12 changes only if the ladder program writes to it, or the drum instruction is edited and the program is restarted. Counter bit CT10 turns on when the drum cycle is complete, and turns off when the drum is reset. DL105 PLC User Manual, 3rd Edition...
  • Page 252: Last Step Completion

    Event criteria) Set Drum Complete bit CT0 = 1 Complete Outputs: F F F f f f F F F Reset Input Active? Reset Reset Drum Complete bit CT0 = 0 Go to Preset Step DL105 PLC User Manual, 3rd Edition...
  • Page 253: Overview Of Drum Operation

    Preset Step -- A step number from 1 to 16 that you define (typically is step 1). The drum moves to this step whenever Reset is on, and whenever the CPU first enters run mode. DL105 PLC User Manual, 3rd Edition...
  • Page 254: Powerup State Of Drum Registers

    Counter # -- The counter number specifies the first of four consecutive counters which the drum uses for step control. You can monitor these to determine the drum’s progress through its control cycle. The DL105 has 64 counters (CT0 -- CT77 in octal).
  • Page 255: Drum Control Techniques

    Drum Complete bit (CT0), and forces the drum to enter the preset step. NOTE: The timing diagram shows all steps using equal time durations. Step times can vary greatly, depending on the counts/step programmed. DL105 PLC User Manual, 3rd Edition...
  • Page 256: Self-Resetting Drum

    However, this does not limit events to just one contact. Just use a control relay Transitions contact such as C0 for the step transition event. Elsewhere in ladder logic, you may use C0 as an output coil, making it dependent on many other “events” (contacts). DL105 PLC User Manual, 3rd Edition...
  • Page 257: Drum Instruction

    Timer base cccc 0.01 -- 99.99 seconds Counts per step dddd 0 -- 9999 Event eeee X, Y, C, S, T, CT see page 4--29 Discrete Outputs ffff X, Y, C see page 4--29 DL105 PLC User Manual, 3rd Edition...
  • Page 258 1 programs all outputs off, which is a typically desirable powerup condition. In the last rung, the Drum Complete bit (CT4) turns on output Y0 upon completion of the last step (step 10). A drum reset also resets CT4. DL105 PLC User Manual, 3rd Edition...
  • Page 259: Handheld Programer Drum Mnemonics

    NOTE: Default entries for output points and events are “DEF 0000”, which means they are unassigned. If you need to go back and change an assigned output as unused again, enter “K0000”. The entry will again show as “DEF 0000”. DL105 PLC User Manual, 3rd Edition...
  • Page 260 ( DEF 0000 ) SHFT NEXT NEXT ( DEF K0000 ) ( DEF K0000 ) ( DEF 0000 ) SHFT NEXT NEXT ( DEF 0000 ) SHFT NEXT ( DEF K0000 ) NEXT (Continued on next page) DL105 PLC User Manual, 3rd Edition...
  • Page 261 ( DEF K0000 ) ( DEF 0000 ) NEXT NEXT ( DEF K0000 ) NEXT Last rung SHFT NEXT NOTE: You may use the NXT and PREV keys to skip past entries for unused outputs or steps. DL105 PLC User Manual, 3rd Edition...
  • Page 262: Chapter 7: Rll

    PLUS Stage Programming In This Chapter..— Introduction to Stage Programming — Learning to Draw State Transition Diagrams — Using the Stage Jump Instruction for State Transitions — Stage Program Example: Toggle On/Off Lamp Controller — Four Steps to Writing a Stage Program —...
  • Page 263: Introduction To Stage Programming

    Start at the beginning and do not skip over any sections. Study each stage programming concept by working through each example. The examples build progressively on each other. Read the stage Questions and Answers at the end of the chapter for a quick review. DL105 PLC User Manual, 3rd Edition...
  • Page 264: Learning To Draw State Transition Diagrams

    Y0, which is true any time we are in the ON state. In a boolean sense, Y0=ON state. Next, we will implement the state diagram first as RLL, then as a stage program. This will help you see the relationship between the two methods in problem solving. DL105 PLC User Manual, 3rd Edition...
  • Page 265: Rll Equivalent

    S0. On the next PLC scan, the CPU will not execute stage S1, so the motor output Y0 will turn off. The Off state (stage 0) will be ready for the next cycle. DL105 PLC User Manual, 3rd Edition...
  • Page 266: Let's Compare

    NOTE: If the ISG is within the retentive range for stages, the ISG will remain in the state it was in before power down and will NOT turn itself on during the first scan. DL105 PLC User Manual, 3rd Edition...
  • Page 267: What Stage Bits Do

    Octal numbering -- Stages are numbered in octal, like I/O points, etc. So “S8” is not valid. Total Stages -- The DL105 offers up to 256 stages (S0 to S377 in octal). No duplicates -- Each stage number is unique and can be used just once.
  • Page 268: Using The Stage Jump Instruction For State Transitions

    JMP S1 executes, because stage S1 is located above stage S0. Executes on next scan after Jmp Executes on same scan as Jmp NOTE: Assume we start with Stage 0 active and Stage 1 inactive for both examples. DL105 PLC User Manual, 3rd Edition...
  • Page 269: Stage Program Example: Toggle On/Off Lamp Controller

    SP1, Push- -Off State which is always on. Note that even as our programs grow more complex, it is still easy to correlate the state transition diagram with the stage program! DL105 PLC User Manual, 3rd Edition...
  • Page 270: Four Steps To Writing A Stage Program

    Translate the state transition diagram into a stage program. Make each state a stage. Remember to number stages in octal. Up to 256 total stages are available in the DL105, numbered 0 to 377 in octal. Put transition logic inside the stage which originates each transition (the stage each arrow points away from).
  • Page 271: Stage Program Example: A Garage Door Opener

    Down limit The controller has two outputs to drive the Lower motor. Y1 is the up (raise the door) command, and Y2 is the down (lower the door) command. DL105 PLC User Manual, 3rd Edition...
  • Page 272: Draw The State Diagram

    Stage S5 to the DOWN stage S0, where we began. NOTE: The only special thing about an initial stage (ISG) is that it is automatically active at powerup. Afterwards, it is just like any other. DL105 PLC User Manual, 3rd Edition...
  • Page 273: Add Safety Light Feature

    T0 turns on and resets the Light stage. The path out of the Light stage goes nowhere, indicating the Light stage just becomes inactive, and the light goes out! Output equations: Y1 = RAISE Y2 = LOWER Y3 = LIGHT RAISE Push--UP DOWN LIGHT LOWER Push--DOWN DL105 PLC User Manual, 3rd Edition...
  • Page 274: Using A Timer Inside A Stage

    K1800 stage transitions in the primary path continue normally and independently of Stage 6. That is, the door can go up, down, or whatever, but the light will be on for precisely 3 minutes. DL105 PLC User Manual, 3rd Edition...
  • Page 275: Add Emergency Stop Feature

    Push-UP unchanged. The second and third rungs implement the transitions we need. Note the opposite relay contact usage for X3, to DOWN which ensures the stage will execute only one of the JMP instructions. DL105 PLC User Manual, 3rd Edition...
  • Page 276: Stage Program Design Considerations

    Monitor Status to the right. The monitor stage could set the stage bit for Status and Reset the E-Stop and stages Control and Recipe. Alarm Monitoring DL105 PLC User Manual, 3rd Edition...
  • Page 277 Drum -- Realize that the drum sequencer is its own process, and is a different programming method than stage programming. If you need to use a drum with stages, be sure to place the drum instruction in an ISG stage that is always active. DL105 PLC User Manual, 3rd Edition...
  • Page 278: Using A Stage As A Supervisory Process

    The standard Counter instruction does not have this global reset capability. You may still use a regular Counter instruction inside a stage... however, the reset input to the counter is the only way to reset it. DL105 PLC User Manual, 3rd Edition...
  • Page 279: Power Flow Transition Technique

    Stage Reference to Transition Jump Set Stage a stage Logic Reset Stage The following diagram is a typical stage view of a ladder program containing stages. Note the left-to-right direction of the flow chart. DL105 PLC User Manual, 3rd Edition...
  • Page 280: Rll Plus Stage Instructions

    DL130 Range Stage 0--377 The following example is a simple RLL PLUS Stage program. This program utilizes an initial stage, and jump instructions to create a structured program. DirectSOFT Handheld Programmer Keystrokes SHFT SHFT DL105 PLC User Manual, 3rd Edition...
  • Page 281: Initial Stage (Isg)

    NOTE: The F1--130 CPU does not have the Not Jump instruction (as does other PLC families). You may still achieve the same result by using the Jump instruction, while inverting the sense of contact logic that activates that instruction. DL105 PLC User Manual, 3rd Edition...
  • Page 282: Questions And Answers About Stage Programming

    Jump instruction executed in the stage above, naming the stage below. Power flow transitions are more difficult to edit in DirectSOFT, we list them separately from two preceding questions. DL105 PLC User Manual, 3rd Edition...
  • Page 283 And a good process design will be mostly sequential, with only one stage on at a time. However, all the processes in the program may be active simultaneously. DL105 PLC User Manual, 3rd Edition...
  • Page 284: Chapter 8: Maintenance And Troubleshooting

    Maintenance and Troubleshooting In This Chapter..— Hardware System Maintenance — Diagnostics — CPU Indicators — Communications Problems — I/O Point Troubleshooting — Noise Troubleshooting — Machine Startup and Program Troubleshooting...
  • Page 285 Fuses or breakers -- verify that all fuses and breakers are intact. DL105 Air Vents -- check that all air vents are clear. If the exterior case needs cleaning, disconnect the input power, and carefully wipe the case using a damp cloth.
  • Page 286 Fault instruction was executed SP70 Result is negative (sign) SP51 Watchdog timeout SP71 Pointer reference error SP52 Syntax error SP73 Overflow SP53 Cannot solve the logic SP75 Data is not in BCD SP76 Load zero DL105 PLC User Manual, 3rd Edition...
  • Page 287 E640 Mis-compare E506 Invalid operation E650 Handheld Programmer system error E520 Bad operation -- CPU in Run E651 Handheld Programmer ROM error E524 Bad operation -- CPU in Program E652 Handheld Programmer RAM error DL105 PLC User Manual, 3rd Edition...
  • Page 288 Logic Error E436 Invalid INT address E464 Missing Circuit E438 Invalid IRT address E471 Duplicate coil reference E440 Invalid Data Address E472 Duplicate TMR reference E441 ACON/NCON E473 Duplicate CNT reference E451 Bad MLS/MLR DL105 PLC User Manual, 3rd Edition...
  • Page 289 4. If the connections are acceptable, reconnect the system power and verify the voltage at the DL105 power input is within specification. If the voltage is not correct shut down the system and correct the problem.
  • Page 290 For problems in communicating with DirectSOFT on a personal computer, refer to the DirectSOFT manual. It includes a troubleshooting section that can help you diagnose PC problems in communications port setup, address or interrupt conflicts, etc. DL105 PLC User Manual, 3rd Edition...
  • Page 291 The Input or Output Circuit has failed Some Quick Steps When troubleshooting the DL105 Micro PLCs there are a few facts you should be aware of. These facts may assist you in quickly correcting an I/O problem. HSIO configuration errors are commonly mistaken for I/O point failure during program development.
  • Page 292 8- -9 Maintenance and Troubleshooting Testing Output Output points can be set on or off in the DL105 series CPUs. If you want to do an I/O Points check out independent of the application program, follow the procedure below: Step...
  • Page 293 PLC and I/O circuits. Installing an isolation transformer for all AC sources can correct this problem. DC sources should be well-grounded good quality supplies. Separate input wiring from output wiring. Never run low-voltage I/O wiring close to high voltage wiring. DL105 PLC User Manual, 3rd Edition...
  • Page 294 8- -11 Maintenance and Troubleshooting Machine Startup and Program Troubleshooting The DL105 Micro PLCs provide several features that can help you debug your program before and during machine startup. This section discusses the following topics which can be very helpful.
  • Page 295 When this instruction is executed the CPU automatically exits Run Mode and enters Program Mode. Remember, all outputs are turned off during Program Mode. The following diagram shows an example of a condition that returns the CPU to Program Mode. DL105 PLC User Manual, 3rd Edition...
  • Page 296 NOTE: You can use the same coil in more than one location, especially in programs containing Stage instructions and / or OROUT instructions. The Duplicate Reference check will find occurrences, even though they are acceptable. DL105 PLC User Manual, 3rd Edition...
  • Page 297 Maintenance and Troubleshooting Run Time Edits The DL105 Micro PLC allows you to make changes to the application program during Run Mode. These edits are not “bumpless.” Instead, CPU scan is momentarily interrupted (and the outputs are maintained in their current state) until the program change is complete.
  • Page 298 Press the arrow key to move to the X. Then enter the new contact (C10). RUNTIME EDIT? SHFT STR C10 Press ENT to confirm the change (Note, once you press ENT, the next address is displayed. OR C0 DL105 PLC User Manual, 3rd Edition...
  • Page 299 I/O point to be either on or off. Before you use a programming device to force any data type it is important you understand how the DL105 CPUs process the forcing requests. WARNING: Only authorized personnel fully familiar with the application should make program changes.
  • Page 300: Appendix A: Auxiliary Functions

    Auxiliary Functions In This Appendix..— Introduction — AUX 2* — RLL Operations — AUX 3* — V-memory Operations — AUX 4* — I/O Configuration — AUX 5* — CPU Configuration — AUX 6* — Handheld Programmer Configuration —...
  • Page 301 (CPU and HPP) Set Watchdog Timer AUX 8* — Password Operations Set Retentive Ranges Modify Password Test Operations / Pause Over- Unlock CPU ride Lock CPU HSIO Interface Configuration — supported HP — Handheld Programmer function DL105 PLC User Manual, 3rd Edition...
  • Page 302: Accessing Aux Functions Via Directsoft

    AUX 3* V OPERATIONS AUX 31 CLR V MEMORY You can also enter the exact AUX number to go straight to the sub-menu. Enter the AUX number directly AUX 3* V OPERATIONS AUX 31 CLR V MEMORY DL105 PLC User Manual, 3rd Edition...
  • Page 303: Aux 2* - Rll Operations

    This AUX function is available on the PLC/Clear PLC sub-menu within DirectSOFT. AUX 4* — I/O Configuration AUX 41 This AUX function allows you to display the current I/O configuration on the DL105. Both the Handheld Programmer and DirectSOFT will show the I/O configuration is Show I/O Configuration fixed at F1--130:10 DI / 8 DO.
  • Page 304: Aux 5* - Cpu Configuration

    The following auxiliary AUX functions allow you to setup, view, or change the CPU configuration. AUX 51 DL105 PLCs can use a program name for the CPU program or a program stored on EEPROM in the Handheld Programmer. (Note, you cannot have multiple programs Modify Program stored on the EEPROM.) The program name can be up to eight characters in length...
  • Page 305 Use AUX 57 to change the retentive ranges. You can also perform this operation from within DirectSOFT by using the PLC/Setup sub-menu. WARNING: The DL105 CPUs do not have battery-backed RAM. The super-capacitor will retain the values in the event of a power loss, but only up to 3 weeks.
  • Page 306: Aux 7* - Eeprom Operations

    AUX 72 copies information from the EEPROM installed in the Handheld HPP EEPROM Programmer to CPU memory in the DL105. You can copy different portions of to CPU EEPROM (HP) memory to the CPU memory as shown in the previous table.
  • Page 307: Aux 8* - Password Operations

    CPU to the factory for password removal. NOTE: The DL105 CPUs support multi-level password protection of the ladder program. This allows password protection while not locking the communication port to an operator interface.
  • Page 308: Dl105 Error Codes

    DL105 Error Codes In This Appendix..— Error Code Table...
  • Page 309 Correct any grounding problems. If the error returns replace the CPU. E210 A short duration power drop-out occurred on the main power line supplying POWER FAULT power to the base. DL105 PLC User Manual, 3rd Edition...
  • Page 310 An ISG or SG instruction must not be placed after the end statement (such as INVALID ISG/SG inside a subroutine). SP52 will be on and the error code will be stored in ADDRESS V7755. DL105 PLC User Manual, 3rd Edition...
  • Page 311 Two or more OUT instructions reference the same I/O point. DUPLICATE COIL REFERENCE E472 Two or more TMR instructions reference the same number. DUPLICATE TMR REFERENCE E473 Two or more CNT instructions reference the same number. DUPLICATE CNT REFERENCE DL105 PLC User Manual, 3rd Edition...
  • Page 312 The password used to unlock the CPU with AUX82 was incorrect. WRONG PASSWORD E542 The CPU powered up with an invalid password and reset the password to PASSWORD RESET 00000000. A password may be re-entered using AUX81. DL105 PLC User Manual, 3rd Edition...
  • Page 313 If the error returns replace the handheld programmer. E652 A RAM error has occurred in the handheld programmer. Power cycle the HPP RAM ERROR handheld programmer. If the error returns replace the handheld programmer. DL105 PLC User Manual, 3rd Edition...
  • Page 314: Appendix C: Instruction Execution Times

    Instruction Execution Times In This Appendix..— Introduction — Instruction Execution Times...
  • Page 315 Introduction This appendix contains several tables that provide the instruction execution times for DL105 Micro PLCs. Many of the execution times depend on the type of data used with the instruction. Registers may be classified into the following types: Data (word) Registers...
  • Page 316: Boolean Instructions

    77 μs 13.8 μs V:Bit Reg. 158 μs 13.8 μs K:Constant 57 μs 13.8 μs V: Bit Reg. V:Data Reg. 158 μs 13.8 μs V:Bit Reg. 240 μs 13.8 μs K:Constant 139 μs 13.8 μs DL105 PLC User Manual, 3rd Edition...
  • Page 317 78 μs 13.8 μs V:Bit Reg. 159 μs 13.8 μs K:Constant 57 μs 13.8 μs V: Bit Reg. V:Data Reg. 159 μs 13.8 μs V:Bit Reg. 241 μs 13.8 μs K:Constant 139 μs 13.8 μs DL105 PLC User Manual, 3rd Edition...
  • Page 318 76 μs 12.0 μs V:Bit Reg. 158 μs 12.0 μs K:Constant 55 μs 12.0 μs V: Bit Reg. V:Data Reg. 158 μs 12.0 μs V:Bit Reg. 240 μs 12.0 μs K:Constant 137 μs 12.0 μs DL105 PLC User Manual, 3rd Edition...
  • Page 319: Immediate Instructions

    V:Data Reg. 68 μs 61 μs V:Bit Reg. 148 μs 141 μs K:Constant 56 μs 45 μs SGCNT V:Data Reg. 57 μs 64 μs V:Bit Reg. 140 μs 148 μs K:Constant 46 μs 53 μs DL105 PLC User Manual, 3rd Edition...
  • Page 320: Accumulator Data Instructions

    276 μs 8.4 μs P:Indir. (Data) 196 μs 8.4 μs P:Indir. (Bit) 384 μs 8.4 μs OUTF X, Y, C K:Constant 36 μs+7.6 μs xN 8 μs (N pt) None 55 μs 7.2 μs DL105 PLC User Manual, 3rd Edition...
  • Page 321: Logical Instructions

    1108 μs 10.6 μs K:Constant 899 μs 8.4 μs INCB V:Data Reg. 83 μs 10.4 μs V:Bit Reg. 349 μs 10.4 μs DECB V:Data Reg. 82 μs 10.4 μs V:Bit Reg. 351 μs 10.4 μs DL105 PLC User Manual, 3rd Edition...
  • Page 322: Bit Instructions

    Move V:Data Reg. to E — — Move V:Bit Reg. to E — — Move from E to V:Data Reg. 250μs+201xN 6.2μs Move from E to V:Bit Reg. — — N= #of words LDLBL 58μs 8.4μs DL105 PLC User Manual, 3rd Edition...
  • Page 323: Cpu Control Instructions

    NCON 0 μs 0 μs ACON 0 μs 0 μs PLUS PLUS Instructions DL105 Instructions Instruction Legal Data Types Execute Not Execute 31 μs 32 μs 31 μs 32 μs 14 μs 8 μs DL105 PLC User Manual, 3rd Edition...
  • Page 324: Appendix D: Special Relays

    Special Relays In This Appendix..— DL105 PLC Special Relays...
  • Page 325: Startup And Real-Time Relays

    CPU is error running or if the syntax check is run. V7755 will hold the exact error code. SP53 Solve logic error on if CPU cannot solve the logic. DL105 PLC User Manual, 3rd Edition...
  • Page 326: Accumulator Status

    V2372. SP566 Current = target value on when the counter current value equals the value in V2374. SP567 Current = target value on when the counter current value equals the value in V2376. DL105 PLC User Manual, 3rd Edition...
  • Page 327: Appendix E: Plc Memory

    PLC Memory In This Appendix..— DL105 PLC Memory...
  • Page 328 When designing a PLC application, it is important for the PLC user to understand the different types of memory in the PLC. Two types of memory are used by the DL105 CPU, RAM and EEPROM. This memory can be configured by the PLC user as either retentive or non--retentive memory.
  • Page 329: Appendix F: European Union Directives (Ce)

    European Union Directives (CE) In This Appendix..— European Union (EU) Directives — Basic EMC Installation Guidelines...
  • Page 330: Member Countries

    You are also responsible for testing any combination of products that may (or may not) comply with the Directives when used together. DL105 PLC User Manual, 3rd Edition...
  • Page 331 Directives and to keep up with applicable Directives and/or practices that are required for compliance. As of August 1, 2002, the DL105 (F1--130DR--CE, F1--130DD--CE, F1--130DR--D, and F1--130DD--D versions only), DL05, DL06, DL205, DL305, and DL405 PLC...
  • Page 332: Special Installation Manual

    L--2985 Luxembourg; quickest contact is via the World Wide Web at http://euro--op.eu.int/indexn.htm Another source is: British Standards Institution - - Sales Department Linford Wood Milton Keynes MK14 6LE United Kingdom; the quickest contact is via the World Wide Web at http://www.bsi.org.uk DL105 PLC User Manual, 3rd Edition...
  • Page 333: Basic Emc Installation Guidelines

    EMC Directive limits, certain configurations can increase emission levels. Holes in the enclosure, for the passage of cables or to mount operator interfaces, will often increase emissions. DL105, DL205 and DL305 AC powered base AC Mains Filters power supplies require extra mains filtering...
  • Page 334: Communications And Shielded Cables

    Shielded cables are also efficient emitters of RF noise from the PLC system, and can interact in a parasitic manner in networks and between multiple sources of interference. Conductive Screened Adapter Cable Serial To Earth Block Equi-potential Bond Control Cubicle DL105 PLC User Manual, 3rd Edition...
  • Page 335 Again, for further information on EU directives we recommend that you get a copy of our EU Installation Manual (DA--EU--M). Also, if you are connected to the World Wide Web, check Commision’s official site http://eur--op.eu.int/ DL105 PLC User Manual, 3rd Edition...
  • Page 336: Appendix G: Numbering Systems

    — Octal Numbering System — Binary Coded Decimal (BCD) Numbering System — Real (Floating Point) Numbering System — BCD/Binary/Decimal/Hex/Octal - - What is the Difference? — Data Type Mismatch — Signed vs. Unsigned Integers — AutomationDirect.com Products and Data Types...
  • Page 337 9 (1*2 + 1*2 or 8 ). A byte of 11010101 would be equal to 213 (1*2 + 1*2 +1*2 + 1*2 +1*2 or 128 + 16 Table 2 DL105 PLC User Manual, 3rd Edition...
  • Page 338 “D8AFh“, where the lower case “h” at the end is just a label to make sure we know that it is a hex number. Also, D8AF can be written with a labeling prefix as “0xD8AF”. DL105 PLC User Manual, 3rd Edition...
  • Page 339 ) + (d x 8 ) + (d x 8 where “d“ means digit. This is the same format used in the binary, decimal, or hexadecimal systems except that the base number for octal is 8. DL105 PLC User Manual, 3rd Edition...
  • Page 340 15 14 13 12 11 10 Bit # Power Bit Value Max Value Table 5 One plus for BCD is that it reads like a decimal number, whereas 867 in BCD would mean 867 decimal. No conversion is needed. DL105 PLC User Manual, 3rd Edition...
  • Page 341 The first bit of the mantissa is typically assumed to be “1.fff“, where “f“ is the field of fraction bits. The Internet can provide a more in--depth explanation of the floating point numbering system. One website to look at is: http://www.psc.edu/general/software/packages/ieee/ieee.php DL105 PLC User Manual, 3rd Edition...
  • Page 342 This allows both formats to use the same display method. The unfortunate side effect is that unless the data type is documented, it’s difficult to know what the data type is unless it contains the letters A--F. DL105 PLC User Manual, 3rd Edition...
  • Page 343 Look at the following examples and note the same value represented by the different numbering systems. The decimal values of 67 and 4660 are used. Decimal Decimal 0110 0111 0100 0110 0110 0000 0100 0011 Binary 0001 0010 0011 0100 Binary Octal Octal DL105 PLC User Manual, 3rd Edition...
  • Page 344 More information about 2’s complement can be found on the Internet, however most of the websites deal with 8--bit examples. Two fairly good websites are listed below, you can also do a search and checkout more websites. http://www.evergreen.edu/biophysics/technotes/program/2s_comp.htm http://www.website.masmforum.com/tutorials/fptute/fpuchap2.htm DL105 PLC User Manual, 3rd Edition...
  • Page 345: Directlogic Plcs

    Panels int 16“ depending on whether or not the value can be negative. Real number format is “Floating PT 32”. More available formats are, “BCD int 32“, “Unsigned int 32“ and “Signed int 32“. DL105 PLC User Manual, 3rd Edition...
  • Page 346 And Store instruction, 5--12 DIN rail mounting, 2--10 ASCII Constant instruction, 5--84 Disable Interrupts instruction, 5--80 Auxiliary functions, 4--8, A--2 Divide instruction, 5--65 DL105 Micro PLC front panel, 2--5 mounting guidelines, 2--7 BCD numbers, 4--21 DL105 Aliases, 4--28 Binary Coded Decimal instruction, 5--72...
  • Page 347 Initial Stages, 7--5 Master Line Reset instruction, 5--78 Input simulator, 1--7, 2--28 Master Line Set instruction, 5--78 Installation Memory map, 4--22, 4--26 grounding, 2--8 Message instructions, 5--83 panel design specifications, 2--8 Motion control profile, 3--23 DL105 PLC User Manual, 3rd Edition...
  • Page 348 F1--130DR--D, 2--42 Pop instruction, 5--50 motion profiles, 3--26 Positive Differential instruction, 5--15 panel design, 2--8 Power wiring, 1--8 Stack, 5--7 Presets, 3--8, 3--10 Stage Counter instruction, 5--35 Program control instructions, 5--78 Stage instructions, 7--19 DL105 PLC User Manual, 3rd Edition...
  • Page 349 Trapezoidal profile, 3--30 Troubleshooting, 8--2 Troubleshooting, 8--2 counter input, 3--7 electrical noise, 8--10 error codes, B--2 !/O points, 8--8 program debug, 8--11 Troubleshooting guide HSIO Mode 10, 3--16 HSIO Mode 20, 3--22 HSIO Mode 30, 3--41 DL105 PLC User Manual, 3rd Edition...

Table of Contents