EasyManua.ls Logo

YASKAWA SVC - Page 340

YASKAWA SVC
623 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.5 Motion Language Instructions
4-197
4
Motion Control Program Commands and Instructions
Basic
Func-
tions
SIN Sine
SIN (MW);
SIN (90);
Calculates the sine.
The specifications depend on
whether the data type is inte-
ger or real number.
COS Cosine
COS (MW);
COS (90);
Calculates the cosine.
The specifications depend on
whether the data type is inte-
ger or real number.
TAN Tangent
TAN (MF);
TAN (45.0);
Calculates the tangent.
Only a real number register can
be specified.
ASN Arc Sine
ASN (MF);
ASN (90.0);
Calculates the arc sine.
Only a real number register can
be specified.
ACS Arc Cosine
ACS (MF);
ACS (90.0);
Calculates the arc cosine.
Only a real number register can
be specified.
ATN Arc Tangent
ATN (MW);
ATN (45);
Calculates the arc tangent.
The specifications depend on
whether the data type is inte-
ger or real number.
SQT Square Root
SQT (MW);
SQT (100);
Calculates the square root.
The specifications depend on
whether the data type is inte-
ger or real number.
BIN BCDBIN BIN (MW);
Converts BCD data to binary
data.
BCD BINBCD BCD (MW);
Converts binary data to BCD
data.
S { } Set Bit S {MB} = MB & MB;
If the logic operation result is
TRUE, the specified bit turns
ON.
However, the specified bit is
not turned OFF even if the
result of the logic operation is
FALSE.
R { } Reset Bit R {MB} = MB & MB;
If the logic operation result is
TRUE, the specified bit turns
OFF.
However, the specified bit is
not turned ON even if the result
of the logic operation is FALSE.
PON
Rising-edge
Pulse
MB =
PON (MB MB);
Or
IF PON (MB MB) = = 1;
;
IEND;
Th
e bit output turns ON for one
scan when the bit input status
changes from OFF to ON.
NON
Falling-edge
Pulse
MB = NON (MB MB);
Or
IF NON (MB MB) = = 1;
;
IEND;
The bit output turns ON for one
scan when the bit input status
changes from ON to OFF.
TON
On-Delay
Timer
MB = MB & TON ( MB);
Counts the time whenever the
bit input is ON.
The bit output turns ON when
the counted value is equal to
the set value.
Counting unit: 10 ms
Continued on next page.
Continued from previous page.
Instruc-
tion
Type
Instruc-
tion
Name Format Description

Table of Contents

Related product manuals