Yaskawa MP940 Reference Manual User Manual

Page 21

Advertising
background image

MotionSuite™ MP940 Machine Controller Reference Manual

Specifications and Functions

2-11

Se

quen

ce

Com

man

ds

/

Division

MW = MW / MW;
MW = MW / 123456;
MW = 123456 / MW;

Executes integer/real number
division.Operates as real num-
bers when integers and real
numbers are intermixed.

MOD

Modulus

MW = MW / MW;
MW = MOD;

MOD is stored as a modulus
into a designated register when
designated in the next block of
the modulus.

|

OR (Logical OR)

MB = MB | MB;
MB = MB | 1;
MW = MW | MW;
MW = MW | H00FF;

Creates a logical OR in bits or
integers.

^

XOR
(Exclusive Logical
OR)

MW = MW ^ MW;
MW = MW ^ H00FF;

Creates an exclusive logical OR
in integers.

&

AND (Logical AND)

MB = MB & MB;
MB = MB & 1;
MW = MW & MW;
MW = MW & H00FF;

Creates a logical AND in bits or
integers.

!

NOT (Inversion)

MB = !MB;
MB = !1;
MW = !MW;
MW = !H00FF;

Creates an inverse value in bits.

()

Parentheses

MW = MW— &
(MW— | MW—);

Logical operations within paren-
theses have priority.

S{}

Designated bit ON

S{MB} = MB & MB;

The designated bit goes ON if
the logical operation result is
“Valid”.The designated bit goes
OFF when the result of a logical
operation is “Invalid”.

R{}

Designated bit OFF

R{MB} = MB & MB;

The designated bit goes OFF if
the logical operation result is
“Valid”.The designated bit goes
ON when the result of a logical
operation is “Invalid”.

SIN

Sine

SIN(MW)
;SIN(90);

Obtains the sine in integers/real
numbers (deg), and returns a
real number value.

COS

Cosine

COS(MW)
;COS(90);

Obtains the cosine in integers/
real numbers (deg), and returns
a real number value.

TAN

Tangent

TAN(MF)
;TAN(45.0);

Obtains the tangent in real num-
bers (deg), and returns a real
number value.

ASN

Arc Sine

ASN(MF)
;ASN(90.0);

Obtains the arc sine in real num-
bers, and returns a real number
value.

Type

Command

Name

Command Format

Function/Meaning

Advertising