Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 39

Advertising
background image

MotionSuite™ Series Machine Controller Programming Manual

Chapter 1: Motion Programmming Outline

1-30

S

eque

nc

e C

om

m

ands

(c

ont

inue

d)

ATN

Arc Tangent

ATN(MW—);
ATN(45);

Calls the arc tangent of an inte-
ger/real number (deg), and
returns a real value.

SQRT

Square Root

SQT(MW—);
SQT(100);

Calls the square root of an inte-
ger/real number (deg), and
returns a real value.

BIN

BCD

→BIN

BIN (MW—);

Converts BCD data to BIN data.

BCD

BIN

→BCD

BCD (MW—);

Converts BIN data to BCD data.

==

Same

IF MW— ==MW—;
WHILE MW— ==MW—;

Used with IF or WHILE condi-
tions. Is true if the left and right
are the same.

<>

Not Same

IF MW— <>MW—;
WHILE MW— <>MW—;

Used with IF or WHILE condi-
tions. Is true if the left and right
are not the same.

>

Greater

IF MW— >MW—;
WHILE MW— >MW—;

Used with IF or WHILE condi-
tions. Is true if the left is greater
than the right.

<

Less

IF MW— <MW—;
WHILE MW— <MW—;

Used with IF or WHILE condi-
tions. Is true if the left is less
than the right.

>=

Equal or
Greater

IF MW— >=MW—;
WHILE MW— >=MW—;

Used with IF or WHILE condi-
tions. Is true if the left is equal to
or greater than the right.

<=

Equal or
Less

IF MW— <=MW—;
WHILE MW— <=MW—;

Used with IF or WHILE condi-
tions. Is true if the left is equal to
or less than the right.

TON

Time Limit
ON Timer

MB— &TON(5.00 MW—);

The basic timer clock is 10msec.
Timing occurs while the bit vari-
able is ON (waits while bit is
OFF). The designated bit on the
left goes ON upon reaching the
set time (parameter * clock).
Time values (clock numbers) are
stored in the word variable).

TOF

Time Limit
OFF Timer

MB— &TOF(5.00 MW—);

The basic timer clock is 10msec.
Timing occurs while the bit vari-
able is ON (waits while bit is
OFF). The designated bit on the
left goes OFF upon reaching the
set time (parameter * clock).
Time values (clock numbers) are
stored in the word variable).

Type

Command

Name

Command Format

Function/Meaning

Advertising