Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Api, Hscs

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 240
Image 240

DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

Mnemonic

Operands

Function

Controllers

53

D

HSCS

 

 

 

 

 

High Speed Counter

 

ES2/EX2

SS2

SA2

SX2

 

 

 

 

 

Set

 

 

 

 

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Type

Bit Devices

 

 

Word devices

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K H KnX KnY KnM KnS T

C D

E

F

DHSCS: 13 steps

 

 

S1

 

 

 

 

* *

*

*

*

*

* * * *

 

 

 

 

 

 

S2

 

*

*

*

 

 

 

 

 

 

*

 

 

 

 

 

 

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

 

 

32-bit

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2 ES2/EX2

SS2

SA2

SX2

 

 

 

 

 

 

SE

SE

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Operands:

S1: Comparative value S2: 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 S2 against a specified comparative value S1. When the current value in counters equals S1, device in D will be ON even when values in S1 and S2 are no longer equal.

2.If D is specified as Y0~Y3, when the instruction is executed and the count value equals to S1 , 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.

3 - 124

Page 240
Image 240
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Api, Hscs