Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 45 of 68

DL405 User Manual: Chapter 6: Drum Instruction Programming (DL450 CPU only), pages 393 to 398

Pages 393 to 398 of 608, from DL405 User Manual

The original document is the PDF (8.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect D4-08B-1, AutomationDirect D4-08ND3S, AutomationDirect D4-16TA, PLC Direct D4-16TD2, AutomationDirect D4-32ND3-1, Konnect-It D4-08B-1, Koyo D4-08B-1, Konnect-It D4-08ND3S, and 6 more models

Page 393

Drum Instruction Programming

6--17

Counter Number

430 440 450

Step Preset Timebase

Discrete Output Assignment Output Mask Word

Start

Control Inputs

Jog Reset

Step Number Counts per Step Event per step Output Pattern f= Off, F= On

The Masked Event Drum with Discrete Outputs features sixteen steps and sixteen outputs. Drum outputs are logically ANDed bit-by-bit with an output mask word for each step. The Gggg field specifies the beginning location of the 16 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 and events can be left blank (this is the default entry). Drum Parameters

Field

Data Types

Ranges

Counter Number aaa

--

0 -- 177

Preset Step bb

K

1 -- 16

Timer base cc

K

0 -- 99.99 seconds

Counts per step dddd

K

0 -- 9999

Event eeee

X, Y, C, GX, GY, S, T, ST see page 3--42

Discrete Outputs

Fffff

X, Y, C, GX, GY * see page 3--42

Output Mask

Gggg

V see page 3--42

Whenever the Start input is energized, 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.

DL405 User Manual, 4th Edition

Drum Instruction Programming

The Masked Event Drum with Discrete Outputs has all the features of the basic Event 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. Below is the instruction in chart form as displayed by DirectSOFT.

Masked Event Drum with Discrete Outputs (MDRMD) X X

Page 394

Drum Instruction Programming

6--18

Drum Instruction Programming Drum instructions use four counters in the CPU. The ladder program can read the counter values for the drum’s status. The ladder program may write a new preset step number to CTA(n+2) at any time. However, the other counters are for monitoring purposes only. Counter Number

Ranges of (n)

Function

Counter Bit Function

CTA(n)

0 -- 374

Counts in step

CTn = Drum Complete

CTA( n+1)

1 -- 375

Timer value

CT(n+1) = (not used)

CTA( n+2)

2 --376

Preset Step

CT(n+2) = (not used)

CTA( n+3)

3 --377

Current Step

CT(n+1) = (not used)

The following ladder program shows the MDRMD instruction in a typical ladder program, as shown by DirectSOFT. Steps 1 through 11 are used, and all 16 output points are used. The output mask word is at V2000. The final drum outputs are shown above the mask word as individual bits. The data bits in V2000 are logically ANDed with the output pattern of the current step in the drum. If you want all drum outputs to be off after powerup, just write zeros to V2000 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 1. The timebase runs at (K10 x 0.01) = 0.1 second per count. Therefore, the duration of step 1 is (5 x 0.1) = 0.5 seconds. Note that step 1 is time-based only (event is left blank). In the last rung, the Drum Complete bit (CT10) turns on output Y0 upon completion of the last step (step 10). A drum reset also resets CT10.

NOTE: The ladder program must load constants in V2000 through V2012 to cover all mask registers for the eleven steps used in this drum.

DL405 User Manual, 4th Edition

Page 395

6--19

Drum Instruction Programming

NOTE: Drum editing requires Handheld Programmer firmware version 5.5 or later. skip over unused event

Start

STR

X(IN)

0

1 ( DEF 0000 )

NXT

Jog

STR

X(IN)

1

( DEF 0000 )

Y(OUT)

4

0

Reset

STR

X(IN)

2

( DEF 0000 )

X(IN)

2

1

Drum Inst.

SHFT

M

D

R

( DEF 0000 )

X(IN)

2

2

SHFT

( DEF 0000 )

C(CR)

0

( DEF 0000 )

C(CR)

1

( DEF 0000 )

X(IN)

3

0

( DEF 0000 )

X(IN)

3

5

( DEF 0000 )

X(IN)

3

3

CNT

1

0

Output Mask

( DEF V00000)

2

0

Preset Step

( DEF K0000 )

1

Time Base 0

Outputs

M

D

0

0

( DEF K0000 )

6

4

( DEF 0000 )

C(CR)

7

( DEF 0000 )

C(CR)

1

0

( DEF 0000 )

Y(OUT)

1

7

( DEF 0000 )

Y(OUT)

1

3

( DEF 0000 )

C(CR)

2

0

( DEF 0000 )

YOUT)

4

2

( DEF 0000 )

NXT

( DEF 0000 )

Y(OUT)

5

( DEF 0000 )

NXT

( DEF 0000 )

Y(OUT)

6

( DEF 0000 )

NXT

( DEF 0000 )

C(CR)

4

( DEF 0000 )

NXT

( DEF 0000 )

C(CR)

2

16 ( DEF 0000 )

NXT

( DEF 0000 )

Y(OUT)

1

0

1 ( DEF K0000 )

2

6

8

8

( DEF 0000 )

Y(OUT)

2

0

( DEF K0000 )

9

8

1

2

( DEF 0000 )

C(CR)

1

4

( DEF K0000 )

2

8

9

4

( DEF 0000 )

C(CR)

3

0

( DEF K0000 )

4

4

7

6

( DEF 0000 )

Y(OUT)

3

2

( DEF K0000 )

5

1

6

9

( DEF 0000 )

Y(OUT)

7

2

( DEF K0000 )

9

3

4

3

4

( DEF K0000 )

4

4

8

6

( DEF K0000 )

9

4

5

9

( DEF K0000 )

3

8

SHFT

A(H)

( DEF K0000 )

5

8

6

4

( DEF K0000 )

8

4

4

7

Events skip over unused steps

( DEF 0000 )

C(CR)

3

15

( DEF 0000 )

Y(OUT)

1

1

( DEF K0000 )

5

( DEF K0000 )

2

0

( DEF K0000 )

1

5

( DEF K0000 )

4

5

( DEF K0000 )

1

8

0

( DEF K0000 )

( DEF K0000 )

9

2

3

( DEF K0000 )

( DEF K0000 )

1

2

0

( DEF K0000 )

( DEF K0000 )

8

6

4

16 ( DEF K0000 )

( DEF K0000 )

1

2

0

( DEF K0000 )

4

0

0

( DEF K0000 )

NXT

STR

SPCL

0

( DEF K0000 )

NXT

LD

K(CON)

SHFT

( DEF K0000 )

NXT

F(H)

F(H)

F(H)

F(H)

( DEF K0000 )

NXT

V

2

0

0

( DEF K0000 )

NXT

( DEF K0000 )

NXT

Counts/ Step

16

Output Pattern

0

( DEF K0000 )

Last rungs 0 skip over unused steps OUT

(Go to next column)

unused steps

STR

CNT

Y(OUT)

0

0

0

NOTE: You may use the NXT and PREV keys to skip past entries for unused outputs or steps.

DL405 User Manual, 4th Edition

Drum Instruction Programming

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.

Page 396

Drum Instruction Programming

6--20

Drum Instruction Programming The Masked Event 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. Below is the instruction in chart form as displayed by DirectSOFT.

Masked Event Drum with Word Output (MDRMW) X X

Counter Number

430 440 450

Step Preset Timebase

Word Output Assignment Output Mask Word

Start

Control Inputs

Jog Reset

Step Number Counts per Step Event per step Output Pattern f= Off, F= On

The Masked Event Drum with Word Output features sixteen steps and sixteen outputs. Drum outputs are logically ANDed bit-by-bit with an output mask word for each step. The Gggg field specifies the beginning location of the 16 mask words, creating the final output (Ffff 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 and events can be left blank (this is the default entry). Drum Parameters

Field

Data Types

Ranges

Counter Number aaa

--

0 -- 177

Preset Step bb

K

1 -- 16

Timer base cc

K

0 -- 99.99 seconds

Counts per step dddd

K

0 -- 9999

Event eeee

X, Y, C, GX, GY, S, T, ST see page 3--42

Word Output

Fffff

V see page 3--42

Output Mask

Gggg

V see page 3--42

Whenever the Start input is energized, 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.

DL405 User Manual, 4th Edition

Page 397

Drum Instruction Programming

6--21

Counter Number

Ranges of (n)

Function

Counter Bit Function

CTA(n)

0 -- 374

Counts in step

CTn = Drum Complete

CTA( n+1)

1 -- 375

Timer value

CT(n+1) = (not used)

CTA( n+2)

2 --376

Preset Step

CT(n+2) = (not used)

CTA( n+3)

3 --377

Current Step

CT(n+1) = (not used)

The following ladder program shows the MDRMD instruction in a typical ladder program, as shown by DirectSOFT. Steps 1 through 11 are used, and all sixteen output points are used. The output mask word is at V2000. The final drum outputs are shown above the mask word as a word at V2001. The data bits in V2000 are logically ANDed with the output pattern of the current step in the drum, generating the contents of V2001. If you want all drum outputs to be off after powerup, write zeros to V2000 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 1. The timebase runs at (K50 X 0.01) = 0.5 seconds per count. Therefore, the duration of step 1 is (5 x 0.5) = 2.5 seconds. Note that step 1 is time-based only (event is left blank). In the last rung, the Drum Complete bit (CT14) turns on output Y0 upon completion of the last step (step 10). A drum reset also resets CT14.

NOTE: The ladder program must load constants in V2000 through V2012 to cover all mask registers for the eleven steps used in this drum.

DL405 User Manual, 4th Edition

Drum Instruction Programming

Drum instructions use four counters in the CPU. The ladder program can read the counter values for the drum’s status. The ladder program may write a new preset step number to CTA(n+2) at any time. However, the other counters are for monitoring purposes only.

Page 398

Drum Instruction Programming

6--22

Drum Instruction Programming 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. NOTE: Drum editing requires Handheld Programmer firmware version 5.5 or later. Handheld Programmer Keystrokes

Handheld Programmer Keystrokes cont’d skip over unused event

Start

STR

X(IN)

0

1 ( DEF 0000 )

NXT

Jog

STR

X(IN)

1

( DEF 0000 )

Y(OUT)

4

0

Reset

STR

X(IN)

2

( DEF 0000 )

X(IN)

2

1

Drum Inst.

SHFT

M

D

R

( DEF 0000 )

X(IN)

2

2

SHFT

( DEF 0000 )

C(CR)

0

( DEF 0000 )

C(CR)

1

( DEF 0000 )

X(IN)

3

0

( DEF 0000 )

X(IN)

3

5

( DEF 0000 )

X(IN)

3

3

( DEF 0000 )

Y(OUT)

1

7

( DEF 0000 )

C(CR)

2

0

( DEF 0000 )

NXT

( DEF 0000 )

NXT

( DEF 0000 )

NXT

M

D

0

0

CNT

1

4

Output Mask

( DEF V00000)

2

0

Preset Step

( DEF K0000 )

1

Time Base

( DEF K0000 )

6

4

Output Word

( DEF V00000)

2

0

1

( DEF K0000 )

5

( DEF K0000 )

2

0

( DEF K0000 )

1

5

( DEF K0000 )

4

5

( DEF K0000 )

1

8

0

( DEF K0000 )

9

2

3

( DEF 0000 )

NXT

( DEF K0000 )

1

2

0

16 ( DEF 0000 )

NXT

( DEF K0000 )

8

6

4

1 ( DEF K0000 )

2

6

8

8

( DEF K0000 )

1

2

0

( DEF K0000 )

9

8

1

2

( DEF K0000 )

4

0

0

( DEF K0000 )

2

8

9

4

( DEF K0000 )

NXT

( DEF K0000 )

4

4

7

6

( DEF K0000 )

NXT

( DEF K0000 )

5

1

6

9

( DEF K0000 )

NXT

( DEF K0000 )

9

3

4

3

( DEF K0000 )

NXT

( DEF K0000 )

4

4

8

6

( DEF K0000 )

NXT

( DEF K0000 )

9

4

5

9

( DEF K0000 )

NXT

( DEF K0000 )

3

8

SHFT

A(H)

( DEF K0000 )

5

8

6

4

( DEF K0000 )

8

4

4

7

Counts/ Step

16

Events 0

1

0

0 skip over unused steps

(Go to next column)

Output Pattern skip over unused steps

( DEF K0000 ) ( DEF K0000 )

unused steps

( DEF K0000 ) ( DEF K0000 ) 16 ( DEF K0000 )

Last rungs

NOTE: You may use the NXT and PREV keys to skip past entries for unused outputs or steps.

DL405 User Manual, 4th Edition

OUT

STR

CNT

Y(OUT)

0

0

STR

SPCL

0

LD

K(CON)

SHFT

F(H)

F(H)

F(H)

F(H)

V

2

0

0

0