beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 354

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-70

API Mnemonic

Operands

Function

75

ARWS

Arrow Switch

Controllers

ES/EX/SS SA/SX/SC EH/SV

Bit Devices

Word Devices

Program Steps

Type

OP

X Y M S K H

KnX

KnY KnM KnS T

C

D

E

F

S

*

*

*

*

D

1

*

*

*

*

*

D

2

*

n

*

*

ARWS: 9 steps

PULSE 16-bit 32-bit

ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV

Operands:

S

: Start device for key input D

1

: Device to be displayed in 7-segment display D

2

: Start device for 7-segment

display scan output n: Polarity setting of output signal and scan signal

Explanations:

1. S will occupy 4 consecutive points.

2. Range

of

n

: 0 ~ 3. See remarks of API 74 SEGL for more details.

3. There no limitation on the times of using this instruction in the program. However, only one instruction is allowed

to be executed at a time.

4. S and D

2

of SA series MPU do not support E, F index register modification and can only designate the devices

whose last digit is 0 (e.g. Y0, Y10….)

5. See the specifications of each model for their range of use.

6. The output points designated by this instruction shall be transistor output.

7. When using this instruction, please fix the scan time, or place this instruction in the time interruption subroutine

(I6□□ ~ I8□□).

Program Example:

1. When this instruction is executed, X20 is defined as down key, X21 is defined as up key, X22 is defined as right

key and X23 is defined as left key. The keys are used for setting up and displaying external set values. The set

values (range: 0 ~ 9,999) are stored in D20.

2. When X10 = On, digit 10

3

will be the valid digit for setup. If you press the left key at this time, the valid digit will

circulate as 10

3

→ 10

0

→ 10

1

→ 10

2

→ 10

3

→ 10

0

.

3. If you press the right key at this time, the valid digit will circulate as 10

3

→ 10

2

→ 10

1

→ 10

0

→ 10

3

→ 10

2

.

During the circulation, the digit indicators connected Y24 ~ Y27 will also be On interchangeably following the

circulation.

4. If you press the up key at this time, the valid digit will change as 0 → 1 → 2 … → 8 → 9 → 0 →1. If you

press the down key, the valid digit will change as 0 → 9 → 8 … → 1 → 0 → 9. The changed value will also

be displayed in the 7-segment display.

X10

ARWS

X20

D20

Y20

K0