A.7 data comparison, A.8 data operations, A.7 data comparison a.8 data operations – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 330
App
A Motion Language Commands
A-9
A.7 Data Comparison
A.8 Data Operations
Com-
mand
Name
Programming Format
Description
Mo
tion Programs
Seq
uen
ce
Prog
rams
==
Match
IF MW
− == MW
− ;
WHILE MW
− == MW
− ;
Used in an IF or WHILE conditional
expression. If the left side and right side
match, the condition is "true."
<>
Mismatch
IF MW
− <> MW
− ;
WHILE MW
− <> MW
− ;
Used in an IF or WHILE conditional
expression. If the left side and right side do
not match, the condition is "true."
>
Greater Than
IF MW
− > MW
− ;
WHILE MW
− > MW
− ;
Used in an IF or WHILE conditional
expression. If the left side is greater than
the right side, the condition is "true."
<
Less Than
IF MW
− < MW
− ;
WHILE MW
− < MW
−
Used in an IF or WHILE conditional
expression. If the left side is less than the
right side, the condition is "true."
>=
Greater Than
or Equal To
IF MW
− >= MW
− ;
WHILE MW
− >= MW
− ;
Used in an IF or WHILE conditional
expression. If the left side is greater than or
equal to the right side, the condition is
"true."
<=
Less Than or
Equal To
IF MW
− <= MW
− ;
WHILE MW
− <= MW
− ;
Used in an IF or WHILE conditional
expression. If the left side is less than or
equal to the right side, the condition is
"true."
Com-
mand
Name
Programming Format
Description
Motion Progra
m
s
Se
quen
ce Pro
grams
SFR
Right Shift
SFR MB
− N
− W
− ;
Shifts the bit variable in the specified num-
bers to the right.
SFL
Left Shift
SFL MB
− N
− W
− ;
Shifts the bit variable in the specified num-
bers to the left.
BLK
Block Move
BLK MW
− MW
− W
− ;
Copies the areas of specified blocks begin-
ning with the specified transfer source to the
specified destination.
CLR
Clear
CLR MW
− W
− ;
Clears the desired area to 0 (zero) beginning
with the specified register.
ASCII
ASCII
Convert 1
ASCII ‘Character string’ MW
− ;
Converts the specified characters to ASCII
code, and stores to the specified register.