Delta Electronics VFD-E manual Incp D0, Decrement, Decp D0

Models: VFD-E

1 363
Download 363 pages 22.75 Kb
Page 339
Image 339

Appendix D How to Use PLC Function

Operands:

D: Destination device

Explanations:

1.If the instruction is not a pulse execution one, the content in the designated device D will plus “1” in every scan period whenever the instruction is executed.

2.This instruction adopts pulse execution instructions (INCP).

3.In 16-bit operation, 32,767 pluses 1 and obtains -32,768. In 32-bit operation,

2,147,483,647 pluses 1 and obtains -2,147,483,648. Program Example:

When X0 goes from Off to On, the content in D0 pluses 1 automatically.

X0

INCP D0

API

25

 

Mnemonic

 

Operands

Function

 

 

 

 

 

 

 

DEC

 

P

D

Decrement

 

 

 

 

 

 

Type

Bit Devices

 

 

Word devices

 

 

Program Steps

OP

X

Y

M

K

H

KnX

KnY

KnM

T

C

D DEC, DECP: 3 steps

 

D

 

 

 

 

 

 

*

*

*

*

*

Operands:

D:Destination Explanations:

1.If the instruction is not a pulse execution one, the content in the designated device D will minus “1” in every scan period whenever the instruction is executed.

2.This instruction adopts pulse execution instructions (DECP).

3.In 16-bit operation, -32,768 minuses 1 and obtains 32,767. In 32-bit operation, - 2,147,483,648 minuses 1 and obtains 2,147,483,647.

Program Example:

When X0 goes from Off to On, the content in D0 minuses 1 automatically.

X0

DECP D0

D-56

Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11

Page 339
Image 339
Delta Electronics VFD-E manual Incp D0, Decrement, Decp D0