beautypg.com

Delta DVP-ES2 User Manual

Page 240

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 1 2 4

API Mnemonic

Operands

Function

53

D HSCS

High Speed Counter
Set

Controllers

ES2/EX2 SS2

SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y M S K H

KnX

KnY KnM KnS T C D E F

S

1

*

* *

*

*

*

*

*

*

*

S

2

*

D

* * *

DHSCS: 13 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

S

1

: Comparative value S

2

: No. of high-speed counter D: Compare result

Explanations:

1.

Functions related to high-speed counters adopt an interrupt process; therefore, devices

specified in D which indicates comparison results are updated immediately. This instruction

compares the present value of the designated high-speed counter S

2

against a specified

comparative value S

1

. When the current value in counters equals S

1

, device in D will be ON

even when values in S

1

and S

2

are no longer equal.

2. If

D is specified as Y0~Y3, when the instruction is executed and the count value equals to S

1

,

the compare result will immediately output to the external outputs Y0~Y3. However, other Y

outputs will still be updated till the end of program. Also, M and S devices, not affected by the

program scan time, will be immediate updated as the Y devices specified by this instruction.

3. Operand D can designate I0□0, □=1~8

4.

High speed counters include software high speed counters and hardware high speed

counters. In addtiion, there are also two types of comparators including software

comparators and hardware comparators. For detailed explanations of high speed counters

please refer to section 2.9 in this manual.

5.

Explanations on software comparators for DHSCS/DHSCR instruction:

¾

There are 6 software comparators for the high-speed compare Set/Reset.

¾

There are 6 software comparators available corresponding to associated high speed

counter interrupts. Numbers of the applied interrupts should also be specified correctly

in front of the associated interrupt subroutines in the program.

¾

When programming DHSCS and DHSCR instructions, the total of Set/Reset

comparisons for both instructions can not be more than 6, otherwise syntax check error

will occur.

This manual is related to the following products: