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,...
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.
(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...
+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.
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.
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).
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.
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.
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.
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...
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.
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...
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...
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...
(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...
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...
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...
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.
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”...
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.
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.
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.
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).
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.
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...
+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.
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.
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...
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...
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.
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...
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.
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...
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...
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.
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.
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.
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.
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...
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...
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...
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...
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...
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...
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...
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.
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...
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.
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...
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...
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.
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.
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.
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...
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...
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.
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...
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...
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...
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...
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...
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...
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.
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.
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...
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...
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.
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...
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.
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...
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...
(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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 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...
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 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...
— 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...
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.
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).
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...
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...
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.
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.
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.
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.
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.
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...
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...
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...
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:...
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...
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...
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.
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.
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...
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...
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...
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...
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...
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...
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...
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.
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.
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...
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...
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.
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.
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
(#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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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)
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
“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...
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...
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...
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...
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...
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...
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...
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...
(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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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).
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...
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...
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...
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...
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 —...
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...
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...
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...
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...
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.
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...
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...
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).
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 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.
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...
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...
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.
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.
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.
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.
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...
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...
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...
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...
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...
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.
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...
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...
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...
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...
— 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...
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...
Need help?
Do you have a question about the DL105 and is the answer not in the manual?
Questions and answers