6 equal (=), 1 ) operation, 2 ) format ( 3 ) programming example – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 140

Advertising
background image

5.4 Logic Operations and Comparison Instructions

5.4.6 Equal (=)

5-71

Instructions

5

5.4.6 Equal (=)

( 1 ) Operation

Input data A and input data B are compared and the result is stored in the bit output.

( 2 ) Format

( 3 ) Programming Example

In the following programming example, the INC instruction on the right end of the line is executed because the com-
parison is true and turns the output ON; that is, input data A is equal to input data B when input data A in MW00000 is
100 and input data B is 100.

With real number data, the value displayed by the MPE720 may not match the execution result of the comparison instruction
due to a slight precision error.

Input data A

TRUE: Output ON

FALSE: Output OFF

Input data B

=

Compared.

Input data A

Input data B

Icon:

Key entry: =

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Input data A (SrcA)

×

{

{

{

×

{

{

Input data B (SrcB)

×

{

{

{

×

{

{

INFO

Advertising
This manual is related to the following products: