Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 38

Advertising
background image

MotionSuite™ Series Machine Controller Programming Manual

Chapter 1: Motion Programmming Outline

1-29

S

e

q

ue

nc

e

Com

m

a

nd

s (c

onti

nue

d)

^

XOR
(exclusive
OR)

MB— =MB—^MB—;
MB— =MB—^1;
MW— =MW—^MW—;
MW— =MW— ^H00FF;

Creates a bit/integer exclusive
OR.

&

AND
(logical
AND)

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

Creates a bit/integer logical
AND.

!

NOT
(invert)

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

Creates a bit with a reverse value.

()

Parentheses

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

Executes operation of the logical
operation within parentheses
first.

S{}

Designated
Bit ON

S{MB—} = MB— &MB—;

The designated bit goes ON if the
result of the logical operation is
true. The designated bit does not
go OFF even if the result of the
logical operation is false.

R{}

Designated
Bit OFF

R{MB—} = MB— &MB—;

The designated bit goes OFF if
the result of the logical operation
is true. The designated bit does
not go ON even if the result of
the logical operation is false.

SIN

Sine

SIN(MW—);
SIN(90);

Calls the sine of an integer/real
number (deg), and returns a real
value.

COS

Cosine

COS(MW—);
COS(90);

Calls the cosine of an integer/real
number (deg), and returns a real
value.

TAN

Tangent

TAN(MW—);
TAN(45);

Calls the tangent of an integer/
real number (deg), and returns a
real value.

ASN

Arc Sine

ASN(MW—);
ASN(90);

Calls the arc sine of an integer/
real number (deg), and returns a
real value.

ACS

Arc Cosine

ACS(MW—);
ACS(90);

Calls the arc cosine of an integer/
real number (deg), and returns a
real value.

Type

Command

Name

Command Format

Function/Meaning

Advertising