2 and (&), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

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

Advertising
background image

8.6 Logic Operation

8-125

8

Command Reference

8.6.2 AND (&)

(1) Overview

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

(2) Format

(3) Programming Examples

The AND (&) command programming examples are shown below.

Motion Programs

Sequence Programs

Applicable

Applicable

Table 8.4 Logical AND Truth Table

(A=B&C)

B

C

A

0

0

0

0

1

0

1

0

0

1

1

1

MW00100 = DW00102 & AAAAH;

A B C

Item

Description

Usable Registers

A

Data output

• All bit type, integer type, and double integer type registers (Excluding # and C reg-

isters)

• The above registers with subscript
• Subscript registers

B, C

Data input

• All bit type, integer type, and double integer type registers (Excluding # and C reg-

isters)

• The above registers with subscript
• Subscript registers
• Constants

Type

Motion Programs/

Sequence Programs

Ladder Programs

B

MB001000=MB001010&MB001011;

W

MW00101=MW00100&00FFH;

L

ML00106=ML00102&ML00104;

F

EXAMPLE

Advertising