beautypg.com

Phase 1 input, Phase 2 inputs – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 296

background image

7 Application Instructions API 50-99

D V P - P L C A P P L I C AT I O N M A N U A L

7-12

HHSC0

HHSC1

HHSC2

HHSC3

M1265

M1273

M1267

M1275

M1269

M1277

M1271

M1279

X3

X7

X17

X13

M1272 M1274 M1276 M1278

M1264

M1266 M1268

M1270

X2

X6

X12

X16

M1241 M1242 M1243

M1244

C241

C242

C243

C244

D1225

D1226

D1227

D1228

X1

X5

X11

X15

X14

X10

X4

X0

HHSC0 HHSC1 HHSC2 HHSC3

HHSC0 HHSC1 HHSC2 HHSC3

HHSC0 HHSC1 HHSC2 HHSC3

HHSC0 HHSC1 HHSC2 HHSC3

HHSC0 HHSC1 HHSC2 HHSC3

HHSC0 HHSC1 HHSC2 HHSC3

M1246

M1247

M1248

M1249

M1254

M1253

M1252

M1251

DHSCS

DHSCR

DHSCZ

I 010

I 020

I 030

I 040

I 050

I 060

M1289
M1290
M1291
M1292
M1293
M1294

M1294

HHSC0

HHSC1

HHSC2

HHSC3

AND

OR

AND

OR

U/D

U
A

B

D

Counting pulses

Counting pulses

Present value in counter

Select counting modes

U/D mode setup flag

Reset signal R

Set values 1 ~ 4 indicate

Mode 1 ~ 4 (1 ~ 4 times frequency)

Start signal S

Interruption forbidden flag

High-speed

comparative

instruction

Output reaches

comparative value

Output reaches

comparative value

for outputs

Counting up/down

monitoring flag

Comparator

Counting reaches set value

8 set values

DHSCS occupies 1 group of set values

DHSCR occupies 1 group of set values

DHSCZ occupies 2 groups of set values

SET/RESET

010 ~ 060 clear

the present value

I

I

e) Counting

modes:

Special D1225 ~ D1228 are for setting up different counting modes of the hardware high speed counters

(HHSC0 ~ 3) in EH/EH2/SV series MPU. There are normal ~ 4 times frequency for the counting and the

default setting is double frequency.

Counting modes

Wave pattern

Type

Set value in

special D

Counting up(+1)

Counting down(-1)

1

(Normal

frequency)

U/D

U/D FLAG

1-phase

1 input

2

(Double

frequency)

U/D

U/D FLAG

1

(Normal

frequency)

U

D

1-phase

2 inputs

2

(Double

frequency)

U

D

1

(Normal

frequency)

A

B

2

(Double

frequency)

A

B

3

(Triple

frequency)

A

B

2-phase

2 inputs

4

(4 times

frequency)

A

B