Logical and (&) -13, 2 logical and (&) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 145: Program example

Advertising
background image

MotionSuite™ Series Machine Controller Motion Programming Manual

Chapter 4: Sequence Commands

4-13

4.3.2

Logical AND (&)

!

!

!

! Outline

Execute logical AND 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 Logical Multiplication (AND:C=A&B)

A

B

C

0

0

0

0

1

0

1

0

0

1

1

1

Bit (B)

Integer (W)

32-bit Integer (L)

Real (F)

Constant

$

$

$

×

$

Type

Motion Program

Ladder Program

B

MB001000=MB001010&MB001011;

W

MW00101=MW00100&00FFH;

L

ML00106=ML00102&ML00104;

F

MB001000=IB001000&MB001010;
MW00100=MW00101&MW00102;
ML00100=ML00102&5555ACACH;

$

MB001010

MB001000

MB001011

MW00100^H00FF

⇒MW00101

ML00102^ML00104

⇒ML00106

Advertising