beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 278

background image

6 Application Instructions API 00-49

DVP-PLC Application Manual

6-66

API Mnemonic

Operands

Function

46

ANS

Timed Annunciator Set

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

*

m

*

D

*

ANS: 7 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

: Timer for monitoring annunciator m: Time setting D: Annunciator device

Explanations:

1. Range

of

S

: for SA/SX/SC T0 ~ T191; for EH/EH2/SV T0 ~ T199.

2.

m

can designate K1 ~ K32,767 (unit: 100ms)

3. Range

of

D

: for SA/SX/SC S896 ~ S1023; for EH/EH2/SV S900 ~ S1023.

4.

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

5.

Flags: M1048 (annunciator in action); M1049 (valid monitoring)

6.

This instruction is used for enabling the annunciator.

Program Example:

If X3 = On for more than 5 seconds, annuniciator point S999 = On. Even X3 goes Off afterwards, S999 will still keep

On. However, T10 will be reset to Off and the present value = 0.

X3

ANS

T10

K50

S999

API Mnemonic

Operands

Function

47

ANR P

Annunciator

Reset

Controllers

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

OP Descriptions

Program

Steps

N/A

ANR, ANRP: 1 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

Explanations:

1. No

operand.

2.

This instruction is used for resetting the annunciator.

3.

When more than one annuciators are On, the annunciator of smaller number will be reset.

4.

This instruction adopts pulse execution instructions (ANRP)

Program Example:

1.

If X10 and X11 = On at the same time for more than 2 seconds, annuniciator point S910 = On. Even X10 and

X11 go Off afterwards, S910 will still keep On. However, T10 will be reset to Off and the present value = 0.