Drum Instruction Programming

Similar documents
F3 08AD 1 8-Channel Analog Input

Chapter. F2-08DA-2, 8-Channel Analog. In This Chapter...

Chapter. F0-04AD-1, 4-Channel Analog Current Input. In This Chapter...

Chapter. F2-02DAS-1, Isolated 2-Channel Analog Current Output. In This Chapter...

F3 16AD 16-Channel Analog Input

Chapter. F2-02DA-1, F2-02DA-1L 2-Channel Analog. Current Output. In This Chapter...

This Errata Sheet contains corrections or changes made after the publication of this manual.

F4 16DA 2 16-Channel Analog Voltage Output

Chapter. F2-08AD-2 8-Channel Analog Voltage Input. In This Chapter...

F4-04DA-1 4-Channel Analog Current Output

Chapter. Output Functions. In This Chapter...

F4 08DA 2 8-Channel Analog Voltage Output

Chapter F2-04RTD. 4-Channel RTD Input. In This Chapter...

ADVANCED PLC PROGRAMMING. Q. Explain the ONE SHOT (ONS) function with an application.

Chapter. F2-04AD-1, 4-Channel Analog Current Input. In This Chapter:

Chapter. F2-02DA-2, F2-02DA-2L 2-Channel Analog. In This Chapter...

F4 04DAS 1 4-Channel Isolated 4 20mA Output

CHAPTER F0-08ADH-1 8-CH. ANALOG CURRENT INPUT. In This Chapter...

F2-04AD-2, F2-04AD-2L 4-Channel Analog Voltage Input

Chapter. F2-4AD2DA 4-Ch. In / 2-Ch. Out. In This Chapter...

F4-04ADS 4-Channel Isolated Analog Input

F2-04AD-1, F2-04AD-1L 4-Channel Analog Current Input

Chapter. F2-04THM 4-Channel. In This Chapter...

Analog Inputs and Outputs

F4-08RTD 8-Channel RTD Input

D0 DEVNETS Think & Do/Entivity Setup

D3 04AD 4-Channel Analog Input

Servo Indexer Reference Guide

Table of Contents. Chapter 1: Introduction to the CTRIO & CTRIO2 Modules. Chapter 2: Getting Started, Basics and Examples

Product Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device

HITACHI. L100-M Series Inverter Quick Reference Guide. Hitachi Industrial Equipment Systems Co., Ltd. Single-phase Input 100V Class

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX.

TOSVERT VF-AS1 My Function Instruction Manual

Digital Logic Circuits

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

DRUM SEQUENCER CIRCUITS

A Sequencing LSI for Stepper Motors PCD4511/4521/4541

A software solution for displacement and angular speed measurement through virtual instrumentation

Electrical Motor Controls Chapter 5 (4 th Edition) Chapter 5 (5 th Edition)

VersaMax Mixed Discrete / High-Speed Counter Module

VersaMax Mixed Discrete / High-Speed Counter Module

Logical Trunked. Radio (LTR) Theory of Operation

Arithmetic Circuits. (Part II) Randy H. Katz University of California, Berkeley. Fall Overview BCD Circuits. Combinational Multiplier Circuit

1. Use of the application program

This Errata Sheet contains corrections or changes made after the publication of this manual.

SJ100 Series Inverter Quick Reference Guide. Single-phase Input 200V Class Three-phase Input 200V Class Three-phase Input 400V Class

How to Guide: Controlling Blinds in C-Bus

Measurement History. Run Control with Measurement History CHAPTER

Ch 5 Hardware Components for Automation

SNGH s Not Guitar Hero

3.0 Operating the MIB* Barrier Gate. 4.0 MLC Controller. Operation Instructions. 4.1 General

FX 3U -20SSC-H Quick Start

Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Single Device Combines Pushbutton On/Off Control, Ideal Diode PowerPath and Accurate System Monitoring

Short-term Scheduling

CHAPTER 1 INTRODUCTION...

ELM313 Stepper Motor Controller

HPVFP High Performance Full Function Vector Frequency Inverter

DPFHP451 HIGH PERFORMANCE BILEVEL STEP MOTOR / MANUAL PRESET INDEXER DRIVER PACK

a8259 Features General Description Programmable Interrupt Controller

Peer Master Example. In This Chapter...

Temperature Monitoring and Fan Control with Platform Manager 2

Chapter 10 Counter modules

LC-10 Chipless TagReader v 2.0 August 2006

AN-SERV-009. Luis Miranda 1

Interactive 1 Player Checkers. Harrison Okun December 9, 2015

Reverse Auction Addon

2016 Motorized Shades Basic Programming

COUNTERS AND REGISTERS

Rapid Part technology technical overview

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

_ Programming Manual RE729 Including Classic and New VoX Interfaces Version 3.0 May 2011

Chapter 9. sequential logic technologies

GS1 Parameter Summary Detailed Parameter Listings...4 9

First Optional Homework Problem Set for Engineering 1630, Fall 2014

Automationdirect.com. D i r e c t L o g i c L o o p P I D C o p r o c e s s o r F P I D

Using the Z8 Encore! XP Timer

OWNERS MANUAL FOR STERLING SERIES CONTROLLERS

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

M-S Quad Driver X12.017

PULSE INPUT MODULE PI232/PI272 USER S MANUAL

745 Transformer Protection System Communications Guide

Standard single-purpose processors: Peripherals

HP 33120A Function Generator / Arbitrary Waveform Generator

Virtual Measurements & Control. Packaging Controller 7/8/99

TAM VALLEY DEPOT. Quad-LN User Manual. Gen2 Firmware v1.1

11 Counters and Oscillators

Chapter 14. using data wires

Module -18 Flip flops

Lazy Clock Electronics and Software

Touch Probe Cycles TNC 426 TNC 430

Temperature Monitoring and Fan Control with Platform Manager 2

Page 1. Last time we looked at: latches. flip-flop

Chapter. F2-8AD4DA-1 8-Ch. In / 4-Ch. Out Current Analog. In This Chapter...

CHAPTER AC DRIVE PARAMETERS. In This Chapter...

SiTime University Turbo Seminar Series

The Architecture of the BTeV Pixel Readout Chip

HCA Tech Note 102. Checkbox Control. Home Mode aka Green Mode

Chapter 9. sequential logic technologies

MicroLab 500-series Getting Started

Transcription:

6 In This hapter.... Introduction Step Transitions Overview of Drum Operation Drum ontrol Techniques s

6- Introduction Purpose Drum Terminology The four drum instructions available in the DL35 PU electronically simulate an electro-mechanical drum sequencer. The instructions offer slight variations on the basic principle. Drum instructions are best suited for repetitive processes consisting of a finite number of steps. They can do the work of many rungs of ladder logic with simplicity. Therefore, drums can save a programming and debugging time. We introduce some terminology associated with drum instructions by describing the original electro-mechanical drum pictured below. The mechanical drum generally has pegs on its curved surface. The pegs are populated in a particular pattern, representing a set of desired actions for machine control. motor or solenoid rotates the drum a precise amount at specific times. During rotation, stationary wipers sense the presence of pegs (present = on, absent = off). This interaction makes or breaks electrical contact with the wipers, creating electrical outputs from the drum. The outputs are wired to devices on a machine for On/Off control. Drums usually have a finite number of positions within one rotation, called steps. ach step represents some process step. t powerup, the drum resets to a particular step. The drum rotates from one step to the next based on a timer,oron some external event. During special conditions, a machine operator can manually increment the drum step using a jog control on the drum s drive mechanism. The contact closure of each wiper generates a unique on/off pattern called a sequence, designed for controlling a specific machine. ecause the drum is circular, it automatically repeats the sequence once per rotation. pplications vary greatly, and a particular drum may rotate once per second, or as slowly as once per week. Pegs Wipers Drum Outputs lectronic 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! DL35 User Manual, nd dition

6-3 Drum hart Representation For editing purposes, the electronic drum is presented in chart form in DirectSOFT and in this manual. Imagine slicing the surface of a hollow drum cylinder between two rows of pegs, then pressing it flat. Now you can view the drum as a chart as shown below. ach row represents a step, numbered through 6. ach column represents an output, numbered through 5 (to match word bit numbering). The solid circles in the chart represent pegs (On state) in the mechanical drum, and the open circles are empty peg sites (Off state). STP 3 5 6 7 8 9 3 5 6 OUTPUTS 5 3 9 8 7 6 5 3 f F f F f f F f f f F f f F f f f F f F F f F f f f f F f f F f f F F F F f F F f f f f f f f f F F f F F f F f F f f f f f f F f f f F f f F f F f F f F f f F f f f F f f F f F f F f F F f F F f f F f f F F F F f F F F f F F f F f f F f F F f f f F f f F f f f f f f f F F f f f F f f f f f f f f f f F F F f f f f f f F f f f F f f f f F f f f f F f f F f f F F f f F f F F f F F f f f F f f f f f f f f F F f F f f f f f f f f F f f f F F f F F F f f f f F f F f F f F f f F F f f F f f f f F f F f F F f f F Output Sequences The mechanical drum sequencer derives its name from sequences of control changes on its electrical outputs. The following figure shows the sequence of On/Off controls generated by the drum pattern above. ompare the two, and you will find they are equivalent! If you can see their equivalence, you are on your way to understanding drum instruction operation. Output 3 5 6 7 8 9 3 5 Step 3 5 6 7 8 9 3 5 6 DL35 User Manual, nd dition

6- Step Transitions Types There are four types of Drum instructions in the DL35 PU: S Timed Drum with Discrete Outputs (DRUM) S Time and vent Drum with Discrete Outputs (DRUM) S Masked vent Drum with Discrete Outputs (MDRUMD) S Masked vent Drum with Word Output (MDRUMW) Timer-Only Transitions The four drum instructions all include time-based step transitions, and three include event-based transitions as well. Other options include outputs defined as a single word or as individual bits, and an output mask (individual output disable/enable). ach drum has 6 steps, and each step has 6 outputs. Refer to the figure below. ach output can be either an X,, or coil, offering programming flexibility. We assign Step an arbitrary unique output pattern (f= Off,F= On) as shown. When programming a drum instruction, you also determine both the output assignment and the On/Off state (pattern) at that time. ll steps use the same output assignment, but each step may have its own unique output pattern. Drums move from step to step based on time and/or an external event (input). ll four drum types offer timer step transitions, and three types also offer events. The figure below shows how timer-only transitions work. Step Outputs: F f f f F f F f f f f FF f f f Increment count timer No Has counts per step expired? es Step Outputs: f f f F f f f f FF f F f f FF Use next transition criteria The drum stays in each step for a specific duration (user-programmable). The timebase of the timer is programmable, from. seconds to 99.99 seconds. This establishes the resolution, or the duration of each tick of the clock. ach step uses the same timebase, but has its own unique counts per step, which you program. The drum spends a specific amount of time in each step, given by the formula: Time in step =. seconds X Timebase x ounts per step DL35 User Manual, nd dition

6-5 For example, if you program a 5 second time base and counts for Step, the drum will spend 6 seconds in Step. The maximum time for any step is given by the formula: Max Time per step =. seconds X 9999 X 9999 = 999,8 seconds = 77.7 hours =.6 days NOT: When first choosing the timebase resolution, a good rule is to make it approximately / the duration of the shortest step in your drum. ou will be able to optimize the duration of that step in % increments. Other steps with longer durations allow optimizing by even smaller increments (percentage-wise). lso, note the drum instruction executes once per PU scan. Therefore, it is pointless to specify a drum timebase faster than the PU scan time. Timer and vent Transitions Time and vent Drums move from step to step based on time and/or external events. The figure below shows how step transitions work for these drums. Step Outputs: F f f f F f F f f f f FF f f f No Is Step event true? es Increment count timer No Has step counts expired? es Step Outputs: f f f F f f f f FF f F f f FF Use next transition criteria When the drum enters Step, the output pattern shown is set. It begins polling the external input programmed for that step. ou can define event inputs as X,, or discrete point types. Suppose we select X for the Step event input. If X is off, then the drum remains in Step. When X is On, the event criteria is met and the timer increments. The timer increments as long as the event remains true. When the counts for Step have expired, the drum moves to Step. The outputs change immediately to match the new pattern for Step. DL35 User Manual, nd dition

6-6 vent-only Transitions Time and vent drums do not have to possess both the event and the timer criteria programmed for each step. ou have the option of programming one of the two, and even mixing transition types among all the steps of the drum. For example, you might want Step to transition on an event, Step to transition on time only, and Step 3 to transition on both time and an event. Furthermore, you may elect to use only part of the 6 steps, and only part of the 6 outputs. Step Outputs: F f f f F f F f f f f FF f f f No Is Step event true? es Step Outputs: f f f F f f f f FF f F f f FF Use next transition criteria ounter ssignments ach drum instruction uses the resources of four counters in the PU. When programming the drum instruction, you select the first counter number. The drum also uses the next three counters automatically. The counter bit associated with the first counter turns on when the drum has completed its cycle, going off when the drum is reset. These counter values and counter bit precisely indicate the progress of the drum instruction, and can be monitored by your ladder program. Suppose you program a timer drum to ounter ssignments have 8 steps, and we select T for the T ounts in step V 58 counter number (remember, counter numbering is in octal). ounter usage is T Timer Value V shown to the right. The right column holds T Preset Step V typical values, interpreted below. T3 urrent Step V3 T shows you are at the 58th count in the current step, which is step (shown in T3). If we have programmed step to have 3 counts, the step is over half completed. T is the count timer, shown in units of. seconds. So, each least-significant-digit change represents. seconds. The value of means you have been in the current count (58) for seconds (. x ). Finally, T holds the preset step value which was programmed into the drum instruction. When the drum s input is active, it presets to step in this case. The value of T does not change without a program edit. ounter bit T turns on when the drum cycle is complete, and turns off when the drum is reset. DL35 User Manual, nd dition

6-7 Last Step ompletion The last step in a drum sequence may be any step number, since partial drums are valid. Refer to the following figure. When the transition conditions of the last step are satisfied, the drum sets the counter bit corresponding to the counter named in the drum instruction box (such as T). Then it moves to a final drum complete state. The drum outputs remain in the pattern defined for the last step (including any output mask logic). Having finished a drum cycle, the Start and Jog inputs have no effect at this point. The drum leaves the drum complete state when the input becomes active (or on a program-to-run mode transition). It resets the drum complete bit (such as T), and then goes directly to the appropriate step number defined as the preset step. Last step Outputs: FFF f f f F f f F f FFF f F No re transition conditions met? (Timer and/or vent criteria) es Set T = Set Drum omplete bit omplete Outputs: FFF f f f F f f F f FFF f F No Input ctive? es T = Drum omplete bit Go to Preset Step DL35 User Manual, nd dition

6-8 Overview of Drum Operation lock Diagram The drum instruction utilizes various inputs and outputs in addition to the drum pattern itself. Refer to the figure below. Inputs DRUM INSTRUTION lock Diagram Outputs Start Realtime Inputs (from ladder) Selections Jog * Preset Step ounts/step Timebase vents * ounter # Step ontrol Step Pointer Drum f f F f f f f f f f f f f f f f F f F F f F F f f F F f F f f F F f F F f F f f F F f F F f f F Outputs Output Mask * Final Drum Outputs Pattern Output Mask * * sterisked inputs are applicable only to particular drum instructions. ounter ssignments T ounts in step V xxxx T Timer Value V xxxx T Preset Step V xxxx T3 urrent Step V3 xxxx The drum instruction accepts several inputs for step control, the main control of the drum. The inputs and their functions are: S S S S Start -- The Start input is effective only when is off. When Start is on, the drum timer runs if it is in a timed transition, and the drum looks for the input event during event transitions. When Start is off, the drum freezes in its current state ( must remain off), and the drum outputs maintain their current on/off pattern. Jog -- The jog input is only effective when is off (Start may be either on or off). The jog input increments the drum to the next step on each off-to-on transition. Note that only the basic timer drum does not have a jog input. -- The input has priority over the Start input. When is on, the drum moves to its preset step. When is off, then the Start input operates normally. Preset Step -- step number from to 6 that you define (typically is step ). The drum moves to this step whenever is on, and whenever the PU first enters run mode. DL35 User Manual, nd dition

6-9 S S S S ounts/step -- The number of timer counts the drum spends in each step. ach step has its own counts parameter. However, programming the counts/step is optional on Timer/vent drums. Timer Value -- the current value of the counts/step timer. ounter # -- The counter number specifies the first of four consecutive counters which the drum uses for step control. ou can monitor these to determine the drum s progress through its control cycle. vents -- ither an X,,, S,, T, or SP type discrete point serves as step transition inputs. ach step has its own event. However, programming the event is optional on Timer/vent drums. WRNING: The outputs of a drum are enabled any time the PU is in Run Mode. The Start Input does not have to be on, and the input does not disable the outputs. Upon entering Run Mode, drum outputs automatically turn on or off according to the pattern of the preset step. This includes any effect of the output mask when applicable. Powerup State of Drum Registers The choice of the starting step on powerup and program-to-run mode transitions are important to consider for your application. Please refer to the following chart. If the counter memory is configured as non-retentive, the drum is initialized the same way on every powerup or program-to-run mode transition. However, if the counter memory is configured to be retentive, the drum will stay in its previous state. ounter Num- ber T(n) T(n + ) Function urrent Step ount ounter Timer Value Non-Retentive ase Initialize = Initialize = Initialization on Powerup Retentive ase Use Previous (no change) Use Previous (no change) T(n + ) Preset Step Initialize = Preset Step # Use Previous (no change) T(n + 3) urrent Step # Initialize = Preset Step # Use Previous (no change) pplications with relatively fast drum cycle times typically will need to be reset on powerup, using the non-retentive option. pplications with relatively long drum cycle times may need to resume at the previous point where operations stopped, using the retentive case. The default option is the retentive case. This means that if you initialize scratchpad V-memory, the memory will be retentive. DL35 User Manual, nd dition

6- Drum ontrol Techniques Drum ontrol Inputs Now we are ready to put together the concepts on the previous pages and demonstrate general control of the drum instruction box. The drawing to the right shows a simplified generic drum instruction. Inputs from ladder logic control the Start, Jog, and Inputs. The first counter bit of the drum (T, for example) indicates the drum cycle is done. X X X Start Jog Setup Info. Steps Outputs Mask f f F f f f f f f f f f f f f f F f F F f F F f f F F f F f f F F f F F f F f f F F f F F f f F The timing diagram below shows an arbitrary timer drum input sequence and how the drum responds. s the PU enters run mode it initializes the step number to the preset step number (typically is Step ). When the Start input goes high the drum begins running, looking for an event and/or running the count timer (depending on the drum type and setup). fter the drum enters Step, turns On while Start is still On. Since has priority over Start, the drum goes to the preset step (Step ). Note the drum is held in the preset step during, and that step does not run (respond to events or run the timer) until turns off. fter the drum has entered step 3, the Start input goes off momentarily, halting the drum s timer until Start turns on again. Start drum drum Hold drum Resume drum Drum omplete drum Inputs Start Jog Drum Status Step # Drum omplete (T) 3 3... 5 6 6 6 Outputs (x 6) When the drum completes the last step (Step 6 in this example), the Drum omplete bit (T) turns on, and the step number remains at 6. When the input turns on, it turns off the Drum omplete bit (T), and forces the drum to enter the preset step. NOT: The timing diagram shows all steps using equal time durations. Step times can vary greatly, depending on the counts/step programmed. DL35 User Manual, nd dition

6- In the figure below, we focus on how the Jog input works on event drums. To the left of the diagram, note the off-to-on transitions of the Jog input increments the step. Start may be either on or off (however, must be off). Two jogs takes the drum to step three. Next, the Start input turns on, and the drum begins running normally. During step 6 another Jog input signal occurs. This increments the drum to step 7, setting the timer to. The drum begins running immediately in step 7, because Start is already on. The drum advances to step 8 normally. s the drum enters step, the Start input turns off. Two more Jog signals moves the drum to step 6. However, note that a third Jog signal is required to move the drum through step 6 to drum complete. Finally, a input signal arrives which forces the drum into the preset step and turns off the drum complete bit. Jog drum drum Jog drum Jog drum Drum omplete Inputs Start Jog Drum Status Step # Drum omplete (T) 3 3 3 5 6,7 8... 5 6 6 6 Outputs (x 6) Self-ting Drum pplications often require drums that automatically start over once they complete a cycle. This is easily accomplished, using the drum complete bit. In the figure to the right, the drum instruction setup is for T, so we logically OR the drum complete bit (T) with the input. When the last step is done, the drum turns on T which resets itself to the preset step, also resetting T. ontact X still works as a manual reset. X X T Start Setup Info. Steps Outputs Mask f f F f f f f f f f f f f f f f F f F F f F F f f F F f F f f F F f F F f F f f F F f F F f f F Initializing Drum Outputs The outputs of a drum are enabled any time the PU is in run mode. On program-to-run mode transitions, the drum goes to the preset step, and the outputs energize according to the pattern of that step. If your application requires all outputs to be off at powerup, there are two approaches: S Make the preset step in the drum a reset step, with all outputs off. S Or, use a drum with an output mask. Initialize the mask to on the first scan using contact SP, and LD K and OUT Vxxx instructions, where Vxxxx is the location of the mask register. DL35 User Manual, nd dition

6- s Timed Drum with Discrete Outputs (DRUM) The DL35 drum instructions may be programmed using DirectSOFT or for the DRUM instruction only you can use a handheld programmer (firmware version v.8 or later. This section covers entry using DirectSOFT for all instructions plus the handheld mnemonics for the DRUM instruction. The Timed Drum with Discrete Outputs is the most basic of the DL35 s drum instructions. It operates according to the principles covered on the previous pages. elow is the instruction in chart form as displayed by DirectSOFT. ounter Number Step Preset Timebase Discrete Output ssignment ontrol Inputs Start Step Number ounts per Step Output Pattern f= Off,F= On The Timed Drum features 6 steps and 6 outputs. Step transitions occur only on a timed basis, specified in counts per step. Unused steps must be programmed with counts per step = (this is the default entry). The discrete output points may be individually assigned as X,, or types, or may be left unused. The output pattern may be edited graphically with DirectSOFT. Whenever the Start input is energized, the drum s timer is enabled. It stops when the last step is complete, or when the input is energized. The drum enters the preset step chosen upon a PU program-to-run mode transition, and whenever the input is energized. Drum Parameters Field Data Types Ranges ounter Number aaa -- -- 77 Preset Step bb K --6 Timer base cccc K -- 99.99 seconds ounts per step dddd K -- 9999 Discrete Outputs Fffff X,, see page 3--9 DL35 User Manual, nd dition

6-3 Drum instructions use four counters in the PU. The ladder program can read the counter values for the drum s status. The ladder program may write a new preset step number to T(n+) at any time. However, the other counters are for monitoring purposes only. ounter Number Ranges of (n) Function ounter it Function T(n) -- ounts in step Tn = Drum omplete T( n+) -- 5 Timer value T(n+) = (not used) T( n+) --6 Preset Step T(n+) = (not used) T( n+3) 3 --7 urrent Step T(n+) = (not used) The following ladder program shows the DRUM instruction in a typical ladder program, as shown by DirectSOFT. Steps through are used, and twelve of the sixteen output points are used. The preset step is step. The timebase runs at ms per count. Therefore, the duration of step is (5 x.) =.5 seconds. In the last rung, the Drum omplete bit (T) turns on output upon completion of the last step (step ). drum reset also resets T. DL35 User Manual, nd dition

6- vent Drum with Discrete Outputs (DRUM) The vent Drum with Discrete Outputs has all the features of the Timed Drum, plus event-based step transitions. It operates according to the general principles of drum operation covered in the beginning of this section. elow is the instruction in chart form as displayed by DirectSOFT. DRUM ounter Number Step Preset Timebase Discrete Output ssignment ontrol Inputs Start Jog Step Number ounts per Step vent per step Output Pattern f= Off,F= On The vent Drum with Discrete Outputs features 6 steps and 6 outputs. Step transitions occur on timed and/or event basis. The jog input also advances the step on each off-to-on transition. Time is specified in counts per step, and events are specified as discrete contacts. Unused steps must be programmed with counts per step =, and event =. The discrete output points may be individually assigned. The output pattern may be edited graphically with DirectSOFT. Whenever the Start input is energized, the drum s timer is enabled. s long as the event is true for the current step, the timer runs during that step. When the step count equals the counts per step, the drum transitions to the next step. This process stops when the last step is complete, or when the input is energized. The drum enters the preset step chosen upon a PU program-to-run mode transition, and whenever the input is energized. Drum Parameters Field Data Types Ranges ounter Number aaa -- -- 77 Preset Step bb K --6 Timer base cccc K -- 99.99 seconds ounts per step dddd K -- 9999 vent eeee X,,, S, T, ST Discrete Outputs Fffff X,,, DL35 User Manual, nd dition

6-5 Drum instructions use four counters in the PU. The ladder program can read the counter values for the drum s status. The ladder program may write a new preset step number to T(n+) at any time. However, the other counters are for monitoring purposes only. ounter Number Ranges of (n) Function ounter it Function T(n) -- ounts in step Tn = Drum omplete T( n+) -- 5 Timer value T(n+) = (not used) T( n+) --6 Preset Step T(n+) = (not used) T( n+3) 3 --7 urrent Step T(n+) = (not used) The following ladder program shows the DRUM instruction in a typical ladder program, as shown by DirectSOFT. Steps through are used, and all sixteen output points are used. The preset step is step. The timebase runs at ms per count. Therefore, the duration of step is (5 x.) =.5 seconds. Note that step is time-based only (event = K ). nd, the output pattern for step programs all outputs off, which is a typically desirable powerup condition. In the last rung, the Drum omplete bit (T) turns on output upon completion of the last step (step ). drum reset also resets T. DL35 User Manual, nd dition

6-6 Start Jog Handheld Programmer Keystrokes $ STR $ STR The handheld programmer can also enter or edit drum instructions. The diagram below lists the keystrokes for entering the drum example on the previous page. NOT: Drum editing requires Handheld Programmer firmware version.8 or later. NT NT NOT: ou may use the NXT and PRV keys to skip past entries for unused outputs or steps. $ STR NT Drum Inst. D 3 R ORN U ISG M ORST NT Preset Step ( DF K) Time ase G 6 Handheld Programmer Keystrokes cont d H 7 F 5 F 5 F 5 F 5 I 8 G 6 J 9 D 3 Outputs ounts/ Step I 8 G 6 D 3 G 6 H 7 skip over unused steps D 3 6 6 (ontinued on next page) DL35 User Manual, nd dition

6-7 Handheld Programmer Keystrokes cont d Handheld Programmer Keystrokes cont d vents X ST X ST X ST X ST X ST skip over unused event F 5 D 3 H 7 Output Pattern J 9 F 5 J 9 J 9 D 3 F 5 I 8 I 8 I 8 D 3 I 8 I 8 step pattern = J 9 H G 7 6 G J 6 9 D 3 I G 8 6 F J 5 9 G 6 H 7 unused steps 6 6 Last rung $ STR G NT NOT: ou may use the NXT and PRV keys to skip past entries for unused outputs or steps. DL35 User Manual, nd dition

6-8 Masked vent Drum with Discrete Outputs (MDRUMD) The Masked vent Drum with Discrete Outputs has all the features of the basic vent Drum plus final output control for each step. It operates according to the general principles of drum operation covered in the beginning of this section. elow is the instruction in chart form as displayed by DirectSOFT. MDRUMD Start ounter Number Step Preset Timebase Discrete Output ssignment Output Mask Word ontrol Inputs Jog Step Number ounts per Step vent per step Output Pattern f= Off,F= On The Masked vent Drum with Discrete Outputs features sixteen steps and sixteen outputs. Drum outputs are logically NDed bit-by-bit with an output mask word for each step. The Ggggg field specifies the beginning location of the 6 mask words. Step transitions occur on timed and/or event basis. The jog input also advances the step on each off-to-on transition. Time is specified in counts per step, and events are specified as discrete contacts. Unused steps must be programmed with counts per step =, and event =. Whenever the Start input is energized, the drum s timer is enabled. s long as the event is true for the current step, the timer runs during that step. When the step count equals the counts per step, the drum transitions to the next step. This process stops when the last step is complete, or when the input is energized. The drum enters the preset step chosen upon a PU program-to-run mode transition, and whenever the input is energized. Drum Parameters Field Data Types Ranges ounter Number aaa -- -- 77 Preset Step bb K --6 Timer base cccc K -- 99.99 seconds ounts per step dddd K -- 9999 vent eeee X,,, S, T, ST Discrete Outputs Fffff X,, Output Mask Ggggg V DL35 User Manual, nd dition

6-9 Drum instructions use four counters in the PU. The ladder program can read the counter values for the drum s status. The ladder program may write a new preset step number to T(n+) at any time. However, the other counters are for monitoring purposes only. ounter Number Ranges of (n) Function ounter it Function T(n) -- ounts in step Tn = Drum omplete T( n+) -- 5 Timer value T(n+) = (not used) T( n+) --6 Preset Step T(n+) = (not used) T( n+3) 3 --7 urrent Step T(n+) = (not used) DirectSOFT Display The following ladder program shows the MDRUMD instruction in a typical ladder program, as shown by DirectSOFT. Steps through are used, and all 6 output points are used. The output mask word is at V. The final drum outputs are shown above the mask word as individual bits. The data bits in V are logically NDed with the output pattern of the current step in the drum. If you want all drum outputs to be off after powerup, write zeros to V on the first scan. Ladder logic may update the output mask at any time to enable or disable the drum outputs. The preset step is step. The timebase runs at ms per count. Therefore, the duration of step is (5 x.) =.5 seconds. Note that step is time-based only (event -- K ). In the last rung, the Drum omplete bit (T) turns on output upon completion of the last step (step ). drum reset also resets T. NOT: The ladder program must load constants in V through V to cover all mask registers for the eleven steps used in this drum. DL35 User Manual, nd dition

6- Masked vent Drum with Word Output (MDRUMW) MDRUMW The Masked vent Drum with Word Output features outputs organized as bits of a single word, rather than discrete points. It operates according to the general principles of drum operation covered in the beginning of this section. elow is the instruction in chart form as displayed by DirectSOFT. Start ounter Number Step Preset Timebase Word Output ssignment Output Mask Word ontrol Inputs Jog Step Number ounts per Step vent per step Output Pattern f= Off,F= On The Masked vent Drum with Word Output features sixteen steps and sixteen outputs. Drum outputs are logically NDed bit-by-bit with an output mask word for each step. The Ggggg field specifies the beginning location of the 6 mask words, creating the final output (Fffff field). Step transitions occur on timed and/or event basis. The jog input also advances the step on each off-to-on transition. Time is specified in counts per step, and events are specified as discrete contacts. Unused steps must be programmed with counts per step =, and event =. Whenever the Start input is energized, the drum s timer is enabled. s long as the event is true for the current step, the timer runs during that step. When the step count equals the counts per step, the drum transitions to the next step. This process stops when the last step is complete, or when the input is energized. The drum enters the preset step chosen upon a PU program-to-run mode transition, and whenever the input is energized. Drum Parameters Field Data Types Ranges ounter Number aaa -- -- 77 Preset Step bb K --6 Timer base cccc K -- 99.99 seconds ounts per step dddd K -- 9999 vent eeee X,,, S, T, ST see page 3--9 Word Output Fffff V see page 3--9 Output Mask Ggggg V see page 3--9 DL35 User Manual, nd dition

6- Drum instructions use four counters in the PU. The ladder program can read the counter values for the drum s status. The ladder program may write a new preset step number to T(n+) at any time. However, the other counters are for monitoring purposes only. ounter Number Ranges of (n) Function ounter it Function T(n) -- ounts in step Tn = Drum omplete T( n+) -- 5 Timer value T(n+) = (not used) T( n+) --6 Preset Step T(n+) = (not used) T( n+3) 3 --7 urrent Step T(n+) = (not used) DirectSOFT Display The following ladder program shows the MDRUMD instruction in a typical ladder program, as shown by DirectSOFT. Steps through are used, and all sixteen output points are used. The output mask word is at V. The final drum outputs are shown above the mask word as a word at V. The data bits in V are logically NDed with the output pattern of the current step in the drum, generating the contents of V. If you want all drum outputs to be off after powerup, write zeros to V on the first scan. Ladder logic may update the output mask at any time to enable or disable the drum outputs. The preset step is step. The timebase runs at 5 ms per count. Therefore, the duration of step is (5 x.) =.5 seconds. Note that step is time-based only (event -- K ). In the last rung, the Drum omplete bit (T) turns on output upon completion of the last step (step ). drum reset also resets T. NOT: The ladder program must load constants in V through V to cover all mask registers for the eleven steps used in this drum. DL35 User Manual, nd dition