7 data comparisons, 1 data comparison commands (==, <>, >, <, >=, <=), 1) overview – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 235: 2) format, 3) programming examples, 2) format (3) programming examples

Advertising
background image

8 Command Reference

8.7.1 Data Comparison Commands (==, <>, >, <, >=, <=)

8-128

8.7 Data Comparisons

This section explains the data comparison commands that are used for conditional expressions.

8.7.1 Data Comparison Commands (==, <>, >, <, >=, <=)

(1) Overview

These commands are used to determine conditional expressions for commands such as branching commands
(IF), repeat commands (WHILE), and I/O WAIT (IOW).
The following six comparison commands are provided.

(2) Format

(3) Programming Examples

Data comparison command programming examples are shown below.

Motion Programs

Sequence Programs

Applicable

Applicable

Comparison Command

Meaning

= =

Match

< >

Mismatch

>

Greater than

<

Less than

> =

Greater than or equal to

< =

Less than or equal to

IF MB001000 == 1;

A

Item

Description

Usable Registers

A

Conditional

expression

• All bit type

*

, integer type, double integer type, and real number type registers

(Excluding # and C registers)

• The above registers with subscript
• Subscript registers

* Only the MATCH (= =) command can be used in a bit conditional expression.

Type

Motion Programs/

Sequence Programs

Ladder Programs

B

IF MB001000==1;

W

IF MW00100<>10;

L

IF ML00100>10000;

F

IF MF00100>=3.0;

EXAMPLE

Advertising