3 xor (∧), 3 xor ( ∧ ) – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 146

Advertising
background image

4.3 Logic Operations

4 -13

J

Programming Examples

Type

Motion Program

Ladder Logic Program

B

MB001000=MB001010&MB001011;

MB001010

MB001000

MB001011

W

MW00101=MW00100&00FFH;

MW00100 ∧ H00FF ⇒ MW00101

L

ML00106=ML00102&ML00104;

ML00102 ∧ ML00104 ⇒ ML00106

F

4.3.3 XOR ()

J

Overview

XOR performs an exclusive logical OR for the immediately preceding operation result and the
specified registers, and returns the operation result. Real number registers cannot be used.

Table 4.3 Exclusive OR Truth Table (XOR:C=AB)

A

B

C

0

0

0

0

1

1

1

0

1

1

1

0

J

Description

Designation Method

MW00100=MW00101∧MW00102;

ML00100=ML00102∧12345678H;

Data Types

Bit (B)

Integer (W)

Double Integer

(L)

Real Number

(F)

Constant

No

Yes

Yes

No

Yes

4

A

EXAMPLE

"

Advertising
This manual is related to the following products: