Home
Chapter 6 - AutomationDirect
Contents
1. operation Step 2 3 4 5 6 F 8 9 10 11 12 13 14 15 16 Output 0 qi 1 1 a i 2 o 1 3 qi Jj 1 4 o LL 5 o 1 6 o 1 7 9 1 8 o 1 9 o 1 10 o 1 Hoa 1 12 3 1 13 Q ___ 14 0 1 15 Q DL05 Micro PLC User Manual 6th Edition Rev C 6 3 Chapter 6 Drum Instruction Programming pn Step Transitions Drum Instruction Types There are two types of Drum instructions in the DL05 CPU Timed Drum with Discrete Outputs DRUM Time and Event Drum with Discrete Outputs EDRUM The two drum instructions include time based step transitions and the EDRUM includes event based transitions as well Each drum has 16 steps and each step has 16 outputs Refer to the figure below Each output can be either a Y or C coil offering programming flexibility We assign Step 1 an arbitrary unique output pattern Timer Only Transitions Drums move from one step to another based on time and or an external event input Each step has its own transition condition which you assign during the drum instruction entry The figure below shows how timer only transitions work Outputs 80DOO 00690000809000 Increment count timer as counts per Step expired Outputs OO0O 000000000000 Use next transition criteria The drum stays in Step 1 for a specific duration user programmable The timebase of the
2. Overview of Drum Operation Drum Instruction Block Diagram The drum instruction utilizes various inputs and outputs in addition to the drum pattern itself Refer to the figure below Inputs DRUM INSTRUCTION Outputs Block Diagram Realtime Inputs from ladder ES Preset Step Final Drum Counts Step Timebase Programming Selections Events Counter Pattern Counter Assignments CTA10 Counts in step CTA13 Current Step The drum instruction accepts several inputs for step control the main control of the drum The inputs and their functions are Start The Start input is effective only when Reset 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 Reset must remain off and the drum outputs maintain their current on off pattern Jog The jog input is only effective when Reset 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 only EDRUM supports the jog input Reset The Reset input has priority over the Start input When Reset is on the drum moves to its preset step When Reset is off then the Start input operates normally 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
3. Outputs 6DO 6000000000060 converts to 9 8 1 2 The following diagram shows the method for entering the previous EDRUM example on the HHP The default entries of the form are in parenthesis After the drum instruction entry on the fourth row the remaining keystrokes over write the numeric portion of each default DEF statement NOTE Drum editing requires Handheld Programmer firmware version 1 7 or later Handheld Programmer Keystrokes A Start sm o ENT Note You may use the NXT and PREV keys J B to skip past entries for unused outputs or steps 9 sm gt 1 m Cc Reset em 5 ENT E U M E owe sr T Te s TES T 18 Preset Step DEF K0001 NEXT Handheld Programmer Keystrokes cont d Time Base DEF K0000 G 4 E i id 1 DEF 0000 SHFT 2 e n NEXT DEF K0000 F g NEXT DEF O00 mm jm ES I5 NEXT DEF K0000 m A vex Y B B F A DEF 0000 SHFT vig 4 Next DEF K0000 1 5 o JE Y E E F DEF 0000 SHFT us NEXT DEF K0000 i 3 vex DEF 0000 SHET ug amp NEXT DEF K0000 5 s o NEXT DEF 0000 SHFT ET s NEXT DEF K0000
4. timer is programmable from 0 01 seconds to 99 99 seconds This establishes the resolution or the duration of each tick of the clock Each step uses the same timebase but has its own unique counts per step which you program 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 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 6 4 DL05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming For example if you program a 5 second time base and 12 counts for Step 1 then the drum will spend 60 seconds in Step 1 The maximum time for any step is given by the formula Max Time per step 0 01 seconds X 9999 X 9999 999 800 seconds 277 7 hours 11 6 days NOTE When first choosing the timebase resolution a good rule of thumb is to make it about 1 10 the duration of the shortest step in your drum Then you will be able to optimize the duration of that step in 10 increments Other steps with longer durations allow optimizing by even smaller increments percentage wise Also note that the drum instruction executes once per CPU scan Therefore it is pointless to specify a drum timebase that is much faster than the CPU scan time Timer and Event Transitions how step transitions work in these cases Step transitions may also occur ba
5. l is le I step Coun E A da L 1 d Rose ESHA GEERS ECHR THES n i PEE PPEEET oo dHgucgEBELSE D hi bPEEPPELELIP E D mbbbiib bbbbb bti dcm OHO A fakafai Io ls HHHdHH RHEHEMdHMiHH apuuudduduuuududuuduuddH 13 HEHBHHEHHHHHHHEHH M m ES mS SF m ES AEREE num Complete CTIO YO DirectSOFT 5 Display DL05 Micro PLC User Manual 6th Edition Rev C 6 13 Chapter 6 Drum Instruction Programming Event Drum EDRUM Instruction The Event Drum EDRUM features time based and event based step transitions It operates according to the general principles of drum operation covered in the beginning of this chapter Below is a diagram representing the instruction as displayed by DirectSOFT 5 DirectSOFT 5 Display Counter Number Step Preset Timebase 1 Er 7 Control Jog m 34 E Inputs Reset T Step Number Discrete Output Assignment Counts per Step Event per Step Output Pattern Off W On The Event Drum features 16 steps and 16 discrete 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 and events must be left blank The discrete output points may be individually assigned Whenever the Start input is e
6. DRUM INSTRUCTION PROGRAMMING In This Chapter DLOS Drum Introduction v ux aoi e ce eee aco eR s 6 2 Step Transitions 2 08 t eed dsde hens ete ee neeee seen eas bao dx 6 4 Overview of Drum Operation svlls ke tdeerseeieeen 6 8 Drum Control Techniques eese grace poo eee cere deemed 6 10 Drum Instruction usse sos kr hh RR RR REX rar RE ed 6 12 Event Drum EDRUM Instruction isis 440006 e 6 14 Chapter 6 Drum Instruction Programming i M DLO5 Drum Introduction Purpose The Drum DRUM instruction in the DL05 CPU electronically simulates an electro mechanical drum sequencer The instruction offers enhancements to the basic principle which we describe first Drum Terminology Drum instructions are best suited for repetitive processes that consist of a finite number of steps They can do the work of many rungs of ladder logic with elegant simplicity Therefore drums can save a lot of programming and debugging time We introduce some terminology associated with the drum instruction by describing the original mechanical drum shown 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 A 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
7. DRUM instruction supports the Jog Input The first counter bit of the drum CTO for example indicates the drum cycle is done eeeoj oojoo oejeejeejoo The timing diagram below shows an arbitrary timer drum input sequence and how the drum responds As the CPU enters Run mode it initializes the step number to the preset step number typically it is Step 1 When the Start input turns on the drum begins running waiting for an event and or running the timer depends on the setup After the drum enters Step 2 Reset turns On while Start is still On Since Reset has priority over Start the drum goes to the preset step Step 1 Note that the drum is e d in the preset step during Reset and that step does not run respond to events or run the timer until Reset turns off After the drum has entered step 3 the Start input goes off momentarily halting the drum s timer until Start turns on again Start Reset Hold Resume drum drum drum drum a Fd Start e Oo Jog a a ae A EE E CNN 1 Drum Reset Complete drum Reset Q H Drum Status Step 1 1 2 1 1 2 3 3 4 B5B 6 6 6 1 1 Drum l Complete CT10 0 H Oupus x160 QI I j H When the drum completes the last step Step 16 in this example the Drum Complete bit CTO turns on and the step number remains at 16 When the Reset input turns on it turns off the Drum Complete bit CTO and forces the drum to enter the preset step NOT
8. E The timing diagram shows all steps using equal time durations Step times can vary greatly depending on the counts step programmed 6 10 DLO05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming ae In the figure below we focus on how the Jog input works on event drums To the left of the diagram note that the off to on transitions of the Jog input increments the step Start may be either on or off however Reset 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 0 The drum begins running immediately in step 7 because Start is already on The drum advances to step 8 normally As the drum enters step 14 the Start input turns off Two more Jog signals moves the drum to step 16 However note that a third Jog signal is required to move the drum through step 16 to drum complete Finally a Reset input signal arrives which forces the drum into the preset step and turns off the drum complete bit Drum Completed Jog Jog Jog Reset drum drum drum drum Y sy Y Y v Y Inputs 1 1 L Start Q Fy 1 Jog Q Reset i Ht T Drum Status Step 1 2 d 3 3 4 5 67 PT 14 15 16 6 16 1 Drum Complete CTO H Self Resetting Drum i E i Xo Start Appl
9. EF K0000 DEF 0000 A a MEI DEF K0000 N Outputs OF MI Pe J BEA Output DEF K0000 DEF 0000 SHFT NEXT Pattern ser P DEF K0000 Y H DEF 0000 SHFT NEXT MLS 7 DEF K0000 DEF 0000 SHFT um u i DEF K0000 DEF 0000 NEXT sig DEF K0000 DEF 0000 NEXT DEF K0000 DEF 0000 NEXT DEF K0000 unused steps DEF 0000 NEXT DEF K0000 16 DEFO0000 NEXT 16 DEF K0000 Last rung NOTE You may use the NXT and PREV keys to skip past entries for unused outputs or steps 6 18 DL05 Micro PLC User Manual 6th Edition Rev C
10. Reset input is active it presets to step 1 in this case 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 6 6 DL05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming MK Last Step Completion 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 met the drum sets the counter bit corresponding to the counter named in the drum instruction box such as CTO Then it moves to a final drum complete state The drum outputs remain in the pattern defined for the last step 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 Reset input becomes active or on a program to run mode transition It resets the drum complete bit such as CTO and then goes directly to the appropriate step number defined as the preset step Outputs 8066 D OO e 00eceeece Last step Timer and or Event criteria Set Drum Complete bit Outputs 8990 OO e CO e ce e ece Reset Input Active Reset Drum Complete bit Go to Preset Step DL05 Micro PLC User Manual 6th Edition Rev C 6 7 Chapter 6 Drum Instruction Programming
11. 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 Each step represents some process step At powerup the drum resets to a particular step The drum rotates from one step to the next based on a timer or on some external event During special conditions a machine operator can manually increment the drum step using a jog control on the drums drive mechanism The contact closure of each wiper generates a unique on off pattern called a sequence designed for controlling a specific machine Because the drum is circular it automatically repeats the sequence once per rotation Applications vary greatly and a particular drum may rotate once per second or as slowly as once per week Outputs RM 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 6 2 DL05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming E KI Drum Chart Representation For editing purposes the electronic drum is presented in chart form in DirectSOFT 5 and in this manual Imagine slicing the surface of a hollow drum cylinder between two rows of pe
12. ent true Step 2 Outputs OOOeOoOoooceeoceocoee Use next transition criteria Counter Assignments Each drum instruction uses the resources of four counters in the CPU 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 the counter bit precisely indicate the progress of the drum instruction and can be monitored by ladd 1 z su ak Counter Assignments Counts in step V1010 Suppose we program a timer drum to have 8 steps and we select CT10 for the counter number RC Timer Value V1011 remember counter numbering is in octal Counter usage is shown to the right The right Preset Step VIOT2 column holds typical values interpreted below Current Step V1013 CT10 shows that we are at the 1528th count in the current step which is step 4 shown in CT13 If we have programmed step 4 to have 3000 counts then the step is just over half completed CT11 is the count timer shown in units of 0 01 seconds So each least significant digit change represents 0 01 seconds The value of 200 means that we have been in the current count 1528 for 2 seconds 0 01 x 100 Finally CT12 holds the preset step value which was programmed into the drum instruction When the drums
13. er 6 Drum Instruction Programming Program Using the Handheld Programmer The EDRUM instruction may be programmed using either DzrectSOFT 5 or a handheld programmer This section covers entry via the handheld programmer Refer to the DirectSOFT 5 manual for drum instruction entry using that tool First enter Store instructions for the ladder rungs controlling the drum s ladder inputs In the example to the right the timer drums Start Jog and Reset inputs are controlled by X0 X1 and X2 respectively The required keystrokes are listed beside the mnemonic K Start X1 These keystrokes precede the EDRUM instruction mnemonic Note that the ladder rungs for Start Jog and Reset inputs are not limited to being single contact rungs After the Store instructions enter the EDRUM using Counter CTO as shown Handheld Programmer Keystrokes sow Fea gt E Repeat for Store X1 and Store X2 Handheld Programmer Keystrokes EDRUM CNTO sHer YO bai sa Mest ENT ts After entering the EDRUM mnemonic as above the handheld programmer creates an input form for all the drum parameters The input form consists of approximately fifty or more default mnemonic entries containing DEF define statements The default mnemonics are already input for you so they appear automatically Use the NXT and PREV keys to move forward and backward through
14. gs then pressing it flat Now you can view the drum as a chart as shown below Each row represents a step numbered 1 through 16 Each column represents an output numbered 0 through 15 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 OUTPUTS STEP 1514 1312111009 8 76543210 1 o e o elo ole ojo o e ojo ejo o 2 o 0 e o oje ojo ojo ejo ofe o 3 Seje e e ofe elo olo ole ofo o 4 e o o o o ole oje olo o o olo e 5 o0ooloceooleojleo e eoc eo oe 6 ooloejloojljeojeoj e o e ejo e T eeloelooleej jee oe jeeoe 8 eo leoloejloejleoj oojeo oe 9 00 00 ooloejleoj ooleo oo 10 o0joojlooloeleeloojloojoo qfil eoloo leoj ooj oej ooj ooJ eo 12 o elo ole elo o e ofe ejo eleo 13 o ole olo oloo oo o ele ole o 14 o olo olo ofo e o ofo ele ole 15 leoloo loe loeloej oelooj ee 16 o o e o o o o elo ejo ele ojo e 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 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
15. hown by DirectSOFT 5 Steps 1 through 11 are used and all sixteen output points are used The preset step is step 1 The timebase runs at K10 x 0 01 0 1 second per count Therefore the duration of step 1 is 1 x 0 1 0 1 second Note that step 1 is time based only 6 event is left blank And the output pattern for step 1 programs all outputs off which is a typically desirable powerup condition In the last rung the Drum Complete bit CT4 turns on output YO upon completion of the last step step 11 A drum reset also resets CT4 START EDRUM CTA rdv Na O 1 w Step Preset C 1 0 01 sec Count Kio v2 5 icz e jiivs Me Step Count Event JOG kI dJaauaagaguuualuuullui Xi jac v4 31W L L W L L1 L1 CL LJ CJ ogo kso dL LJ WI D I C C C I C C IJ 0 w 00O Ke 2 L Ww LLL LL L w Ww iw O Ww EO Kisolco d I J C m mimilm ii RESET Kiet ma NW o gaa K2hko0 1L WI DL D LJ W LI L1 I D CD CD C I ED ke4p5 L L W Lj L W 1 L i D IL o kz jLuugugzcuss iZLLDZL LN 0 kao O NW L amp L LI L D LJ WI gmo BOOOCODBOOOBOODCO8SE E Juuugmd guuauauuuacdgL ct Lt ugugugauauauuuuuudtulil u uuugugaauuuuuuuutudltio uduududgaaduuauuuauuututid L1 C EJ CJ BJ CJ BD CJ BJ BJ BD B BD DJ D DJ DRUM COMPLETE cT4 YO 2 rR HH our DL05 Micro PLC User Manual 6th Edition Rev C 6 15 Chapt
16. i 9 a ea Me ieee suet 5 E mm DEF K0000 8 Je R m C 1 G E oi DEF 0000 SHFT 9 2 Next Counts DEF k0000 x 4 Next utputs DEF 0000 SHFT Y A NEXT Step DEF K0000 B e A NEXT Mis o 1 2 0 0 Y e E A A DEF 0000 SHFT Yus E a NEXT DEF K0000 o Next DEF 0000 SHFT E 4 E 4 NEXT DEF K0000 NEXT DEF 0000 SHFT D A o NEXT DEF K0000 NEXT DEF 0000 SHFT 5 i Next DEF K0000 NEXT skip over DEF 0000 SHET t 3 NEXT DEF K0000 NEXT unused steps DEF 0000 SHFT gt D E 4 NEXT DEF K0000 NEXT 46 DEF 0000 SHFT Tus E 4 NEXT 16 DEF K0000 NEXT Continued on next page NOTE You may use the NXT and PREV keys to skip past entries for unused outputs or steps DL05 Micro PLC User Manual 6th Edition Rev C 6 17 Chapter 6 Drum Instruction Programming Handheld Programmer Keystrokes cont d Handheld Programmer Keystrokes cont d 1 DEF000 NExT skip over unused event 1 DEF Ko000 step 1 pattern 000 DEF 0000 suet Y E NEXT MLS 4 DEF K0000 NEXT X B DEF 0000 SHFT NEXT i re DEF K0000 AF F 9 i 4 i DEF 0000 SHET NEXT m DEF Ko000 4 Es e ves DEF 0000 SHET NEXT DEF Koo F e E E ves DEF 0000 SHFT NEXT z P D ju D
17. ications often require drums that automatically start Saag over once they complete a cycle This is easily n Jog info Outputs accomplished using the drum complete bit In the figure X Reset to the right the drum instruction setup is for CTO so we r4 logically OR the drum complete bit CT0 with the Reset Ier input When the last step is done the drum turns on CTO which resets itself to the preset step also resetting CTO Contact X2 still works as a manual reset oeeejeejoo ee eojoo oo Initializing Drum Outputs The outputs of a drum are enabled any time the CPU 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 make the preset step in the drum a reset step with all outputs off Using Complex Event Step Transitions Each event based transition accepts only one contact reference for the event However this does not limit events to just one contact Just use a control relay contact such as CO for the step transition event Elsewhere in ladder logic you may use CO as an output coil making it dependent on many other events contacts DL05 Micro PLC User Manual 6th Edition Rev C 6 ll Chapter 6 Drum Instruction Programming i M M Drum Instruction The DL05 drum instructio
18. n retentive the drum is initialized the same way on every Initialization on Powerup Non Retentive Case Retentive Case Current Step Count Initialize 0 Use Previous no change Counter Timer Value Initialize 0 Use Previous no change Preset Step Initialize Preset Step Use Previous no change Current Step Initialize Preset Step Use Previous no change Counter Number Function 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 Applications with relatively fast drum cycle times typically will need to be reset on powerup using the non retentive option Applications 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 DL05 Micro PLC User Manual 6th Edition Rev C 6 9 Chapter 6 Drum Instruction Programming es Drum Control Techniques Drum Control Inputs i Start Now we are ready to put together the concepts on the x dod oF Buts previous pages and demonstrate general control of the X2 drum instruction box The drawing to the right showsa Mucius simplified generic drum instruction Inputs from ladder logic control the Start Jog and Reset Inputs only the E
19. nergized the drum s timer is enabled As 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 Reset input is energized The drum enters the preset step chosen upon a CPU program to run mode transition and whenever the Reset input is energized Drum Parameters Data Types Ranges Counter Number zs 0 174 Preset Step K 1 16 Timer base K 0 99 99 seconds Counts per step K 0 9999 Event X Y C S T CT see page 4 28 Discrete Outputs X Y C see page 4 28 6 14 DLO05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming E MMMMMM 43 Drum instructions use four counters in the CPU The ladder program can read the counter values for the drums status The ladder program may write a new preset step number to CT n 2 at any time However the other counters are for monitoring purposes only Counter Number Ranges of n Function Counter Bit Function CT n 0 174 Counts in step CTn Drum Complete C n 1 1 175 Timer value CT n 1 not used CT n 2 2 176 Preset Step CT n42 not used CT n 3 3 177 Current Step CT n 3 not used The following ladder program shows the EDRUM instruction in a typical ladder program as s
20. ns may be programmed using DirectSOFT 5 or for the EDRUM instruction only you can use a handheld programmer firmware version v1 8 or later This section covers entry using DirectSOFT 5 for all instructions plus the handheld mnemonics for the EDRUM instruction Timed Drum with Discrete Outputs DRUM The Timed Drum with Discrete Outputs is the most basic of the DLO5 s drum instructions It operates according to the principles covered on the previous pages Below is a diagram of the instruction in chart form as displayed by DirectSOFT 5 DirectSOFT 5 Display Step Preset Counter Number Timebase Discrete Output Assignment Start Control Inputs Reset Counts per Step Output Pattern Off W On The Timed Drum features 16 steps and 16 outputs Step transitions occur only on a timed basis specified in counts per step Unused steps must be programmed with counts per step 0 this is the default entry The discrete output points may be individually assigned as X Y or C types or may be left unused The output pattern may be edited graphically with DirectSOFT 5 Whenever the Start input is energized the drum timer is enabled It stops when the last step is complete or when the Reset input is energized The drum enters the preset step chosen upon a CPU program to run mode transition and whenever the Reset input is energized Drum Parameters Data Types Ranges Counter Number 0 174 Preset Step 1 16 Time
21. r base 0 99 99 seconds Counts per step 0 9999 Discrete Outputs See page 4 28 6 12 DLO05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming Ii Drum instructions use four counters in the CPU The ladder program can read the counter values for the drums status The ladder program may write a new preset step number to CT n 2 at any time However the other counters are for monitoring purposes only Counter Number Ranges of n Function Counter Bit Function CT n 0 174 Counts in step CTn Drum Complete CT n1 1 175 Timer value CT n 1 not used CT n 2 2 176 Preset Step CT n 2 not used CT n 3 3 177 Current Step CT n 3 not used The following ladder program shows the DRUM instruction in a typical ladder program as shown by DirectSOFT 5 Steps 1 through 10 are used and twelve of the sixteen output points are used The preset step is step 1 The timebase runs at K10 x 0 01 0 1 second per count Therefore the duration of step 1 is 25 x 0 1 2 5 seconds In the last rung the Drum Complete bit CTO turns on output YO upon completion of the last step step 10 6 A drum reset also resets CTO Start DRUM I 30 C2 E 0 Step Preset Ki 11 iC ta 4 MM 0 01 sec Count K10 vo v4 C10 1 ln ds d I s
22. sed on time and or external events The figure below shows 6 Sep 1 Outputs OCOO000000000000 Is Step event true Increment count timer Has step counts expired Outputs DODOe0oooeeoceocoee Use next transition criteria When the drum enters Step 1 it sets the output pattern as shown Then it begins polling the external input programmed for that step You can define event inputs as X Y or C discrete point types Suppose we select X0 for the Step 1 event input If XO is off then the drum remains in Step 1 When XO is On the event criteria is met and the timer increments 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 DL05 Micro PLC User Manual 6th Edition Rev C 6 5 Chapter 6 Drum Instruction Programming Event Only Transitions Step transitions do not require both the event and the timer criteria programmed for each step You have the option of programming just one of the two and even mixing transition types among all the steps of the drum For example you might want Step 1 to transition on an event Step 2 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 16 steps and only part of the 16 outputs Outputs 800000000000 09000 Is Step ev
23. the CPU first enters run mode 6 8 DL05 Micro PLC User Manual 6th Edition Rev C Chapter 6 Drum Instruction Programming Kf Counts Step The number of timer counts the drum spends in each step Each step has its own counts parameter However programming the counts step is optional Timer Value the current value of the counts step timer e 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 DL05 has 128 counters CTO CT177 in octal Events Either an X Y C S T or CT type discrete point serves as step transition inputs Each step has its own event However programming the event is optional WARNING The outputs of a drum are enabled any time the CPU is in Run Mode The Start Input does not have to be on and the Reset input does not disable the outputs Upon entering Run Mode drum outputs automatically turn on or off according to the pattern of the current step of the drum This initial step number depends on the counter memory configuration non retentive versus retentive 6 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 no
24. the form Only the editing of default values is required thus eliminating many keystrokes The entries required for the basic timer drum are in the chart below 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 Drum Parameters Multiple Entries Mnemonic Entry Default Mnemonic Valid Data Start Input STR plus input rung Types Jog Input STR plus input rung Reset Input STR plus input rung Drum Mnemonic DRUM CNT aa CT 0 174 Preset Step bb DEF K0000 K 1 16 Timer base CCCC DEF K0000 K 1 9999 Output points ffff DEF 0000 X Y C see page 4 28 Counts per step dddd DEF K0000 K 0 9999 Events dddd DEF K0000 X Y C S T CT see page 4 28 Output pattern gggg DEF K0000 6 16 DL05 Micro PLC User Manual 6th Edition Rev C K 0 FFFF Chapter 6 Drum Instruction Programming E M 4 Using the DRUM entry chart two pages before we show the method of entry for the basic time event drum instruction First we convert the output pattern for each step to the equivalent hex number as shown in the following example 15 0 Step 2
Download Pdf Manuals
Related Search
Related Contents
Collectorz.com Music Collector Help Manual TIGER 3G Manual del usuario Toshiba TLPNL54 projection lense n° 196 avril 2014 User`s Manual Notice de conduite N4.85 EN Istruzioni d`uso 各部会~専門部会~建設機械化研究所の動き KNOCK POUR RAPPROCHER LES GENERATIONS Inauguration Copyright © All rights reserved.
Failed to retrieve file