Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Inc, Explanations

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

1 702
Download 702 pages 56.54 Kb
Page 197
Image 197

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 . Instruction

Set

API

 

Mnemonic

 

 

Operands

 

 

Function

 

 

Controllers

 

24

D

INC

 

P

 

 

 

 

Increment

 

 

 

ES2/EX2 SS2

SA2

SX2

 

 

 

 

 

 

 

 

SE

 

Type

Bit Devices

 

 

 

Word devices

 

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F INC, INCP: 3 steps

 

D

 

 

 

 

 

 

 

*

*

*

*

*

*

*

* DINC, DINCP: 5 steps

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

 

32-bit

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2 SS2

SA2

SX2

 

 

 

 

 

 

SE

SE

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D: Destination device

Explanations:

1.If the instruction is not used in pulse execution mode, the content in the designated device D will plus “1” in every scan period

2.When INC is executed, the content in D will be incremented. However, in 16-bit instruction, if +32,767 is reached and “1” is added, it will write a value of –32,768 to the destination. In 32-bit instruction, if +2,147,483,647 is reached and “1” is added, it will write a value of -2,147,483,648 to the destination.

3.This instruction is generally used in pulse execution mode (INCP, DINCP).

4.If operand D uses index F, only a 16-bit instruction is applicable..

5.The operation results will not affect M1020 ~ M1022.

Program Example:

When X0 is triggered, the content of D0 will be incremented by 1.

X0

INCP D0

3 - 81

Page 197
Image 197
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Inc, Explanations