Chapter 7 Second Development Platform VP3000 
380 
 
API  Instruction code  Operand  Function 
287–292  
FOR※ 
 
S
1
, S
2
 
Floating-point number contact type 
comparison OR※ 
   Type 
Operand
 
Bit devices  Word devices 
 
16-bit instruction 
- - 
- - 
 
32-bit instruction (9 steps) 
FOR※ 
Continuous 
execution 
type 
- - 
Associated flag: none 
X Y M K H KnX KnY KnM T C D 
S
1
        
     
S
2
        
     
Caution for using operand:  #  : & | ^ 
  See the specification of each model for the scope of device’s usage. 
Description 
 S
1
: source device 1 
S
2
: source device 2 
  This instruction compares the content in S
1
 and S
2
. Take “FOR=” as an example, if the result 
is “equal to”, the continuity of the instruction is enabled; if the result is “not equal to”, the 
continuity of the instruction is disabled. 
 Use FOR※ instruction, users can execute operation directly by inputting floating-point value 
(e.g. F1.2) in S
1
, S
2
 or storing floating-point value in the register D. 
  The instruction is used for direct connection with busbar 
API No.  32-bit instruction 
Continuity 
condition 
Discontinuity 
condition 
287 FOR= 
S
1 
= S
2
  S
1 
≠ S
2
 
288 FOR> 
S
1 
> S
2
  S
1 
 S
2
 
289 FOR< 
S
1 
< S
2
  S
1 
 S
2
 
290 FOR<> 
S
1 
≠ S
2
  S
1 
= S
2
 
291 FOR<= 
S
1 
 S
2
  S
1 
> S
2
 
292 FOR>= 
S
1 
 S
2
  S
1 
< S
2
 
 
 
Example 
  When both X2 and M30 are ON, or the content in D100 (D101) ≥ F1.234, then M60 = ON. 
FOR>= D100 F1.234
X2 M30
M60