Exclusive or (^) -14, 3 exclusive or (^) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 146: Program example

Advertising
background image

MotionSuite™ Series Machine Controller Motion Programming Manual

Chapter 4: Sequence Commands

4-14

4.3.3

Exclusive OR (^)

!

!

!

! Outline

Execute exclusive OR of the immediately previous calculation result and a designated
register, and leave the calculation result. The real number register cannot be used.

!

!

!

! Detailed Explanation

Command Method

Data Type

!

!

!

! Program Example

True Value Table of the Exclusive OR (XOR:C=A^B)

A

B

C

0

0

0

0

1

1

1

0

1

1

1

0

Bit (B)

Integer (W)

32-bit Integer (L)

Real (F)

Constant

$

$

$

×

$

Type

Motion Program

Ladder Program

B

W

MW00101=MW00100^00FFH;

L

ML00106=ML00102^ML00104;

F

MB00100=MW00101^MW00102;
ML00100=ML00102^12345678H;

MW00100%H00FF

⇒MW00101

ML00102%ML00104

⇒ML00106

Advertising