beautypg.com

Dcnt – Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual

Page 72

background image

Appendix C Use of Basic Instructions|DOP-EXIO Series

Revision March, 2008, Doc. Name: 2007PDD23000014

C-7

Explanations:
When TMR instruction is executed, the designated coil of the timer will be On and the timer will start to
time. When the set value in the timer is reached (present ≥ set value), the contact will be:

NO (Normally Open) contact

Open collector

NC (Normally Closed) contact

Close collector

Program Example:
Ladder diagram:

Instruction code:

Operation:

LD

X0

Loading in contact A of X0 T5 timer

X0

T5

TMR

K1000

TMR

T5 K1000 Set value in timer T5 as K1,000

Mnemonic Functions

CNT

16-bit Counter

C-K

C0~C127, K0~K32,767

Operand

C-D

C0~C127, D0~D599

Explanations:
1. When the CNT instruction goes from Off to On, the designated counter coil will be driven, and the

present value in the counter will plus 1. When the counting reaches the set value (present value =
set value), the contact will be:

NO (Normally Open) contact

Open collector

NC (Normally Closed) contact

Close collector

2. If there are other counting pulse input after the counting reaches its target, the contact and

present value will stay intact. Use RST instruction to restart or reset the counting.

Program Example:
Ladder diagram:

Instruction code:

Operation:

LD

X0

Loading in contact A of X0

X0

C20

CNT

K100

CNT

C20
K100

Set value in counter C20 as K100

Mnemonic Functions

DCNT

32-bit Counter

C-K

C235~C254

Operand

C-D

C235~C254, D0~D598

Explanations:
1. DCNT is the instruction for enabling the 32-bit high-speed counters C235 ~ C254. The method of