2 and (&) – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 145

Advertising
background image

Sequence Commands

4.3.2 AND (&)

4 -12

J

Programming Examples

Type

Motion Program

Ladder Logic Program

B

MB001000=MB001010|MB001011;

MB001011

MB001010

MB001000

W

MW00100=MW00101|MW00102;

MW00101 ∨ MW00102 ⇒ MW00100

L

ML00106=ML00102|ML00104;

ML00102 ∨ ML00104 ⇒ ML00106

F

4.3.2 AND (&)

J

Overview

AND performs a logical AND for the immediately preceding operation result and the specified
registers, and returns the operation result. Real number registers cannot be used.

Table 4.2 Logical AND Truth Table (AND:C=A&B)

A

B

C

0

0

0

0

1

0

1

0

0

1

1

1

J

Description

Designation Method

MB001000=IB001000&MB001010;

MW00100=MW00101&MW00102;

ML00100=ML00102&5555ACACH;

Data Types

Bit (B)

Integer (W)

Double Integer

(L)

Real Number

(F)

Constant

Yes

Yes

Yes

No

Yes

4

A

EXAMPLE

"

Advertising
This manual is related to the following products: