Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 204

Advertising
background image

8.4 Program Control Commands

8-97

8

Command Reference

(b) Integer/Double Integer/Real Number Data Comparison

Format

• All data comparison commands (==, <>, >, <, >=, <=) can be used.
• Specify a register either on the left or right.

MW00000 == 3? Label "MW00000 = 3
ML00000 <> ML00002? Label "ML00000

≠ ML00002

1.23456 >= MF00000? Label "1.23456

≥ MF00000

Operations in
Conditional
Expression

• Arithmetic operation and logic operation can be used.

MW00000 == (MW00001/3)? Label "MW00000 = (MW00001

÷ 3)

(ML00000 & F0000000H) <> ML00002? Label "(ML00000

∧ F0000000H) ≠ ML00002

1.23456 >= (MF00000 * MF00002)? Label "1.23456

≥ (MF00000 MF00002)

Syntax Error
Examples

• When a constant is specified both on the left and right:

0 == 3? Label => Syntax error
(3.14*2*1000) > 9000.0? Label => Syntax error

• No data comparison command:

MW000000? Label => Syntax error
(-1)? Label => Syntax error

• When more than one data comparison command is specified

(MW00000 < 0) & (MW000001 > 0)? Label => Syntax error

Advertising