3. Instruction Set

API

287~

292

Mnemonic

Operands

Function

Controllers

FOR

 

Floating Point Contact Type

ES2/EX2

SS2

SA2 SX2

 

Comparison OR

 

 

SE

 

 

 

 

Type

Bit Devices

 

Word devices

 

 

 

 

Program Steps

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

FOR: 9 steps

S1

 

 

 

 

 

*

*

*

 

 

 

S2

 

 

 

 

 

*

*

*

 

 

 

 

 

 

 

 

 

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: Source device 1 S2: Source device 2

Explanations:

1.This instruction compares the content in S1 and S2. Take “FOR =” for example, if the result is “=”, the continuity of the instruction is enabled. If the result is “≠”, the continuity of the instruction is disabled

2.The user can specify the floating point value directly into operands S1 and S2 (e.g. F1.2) or store the floating point value in D registers for further operation.

3.FORinstruction is used for parallel connection with contacts.

API No.

32-bit instruction

Continuity condition

Discontinuity condition

 

 

 

 

287

FOR

S1S2

S1S2

288

FOR

S1S2

S1S2

289

FOR

S1S2

S1S2

290

FOR<>

S1S2

S1S2

291

FOR<=

S1S2

S1S2

292

FOR>=

S1S2

S1S2

Program Example:

When both X2 and M30 are On and the content in D100(D101) ≥ F1.234, M60 = ON..

X2 M30

M60

FOR>= D100 F1.234

3 - 4 8 5

Page 601
Image 601
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual For =, For >, For <