Yaskawa MP940 Reference Manual User Manual
Page 28

Specifications and Functions
MotionSuite™ MP940 Machine Controller Reference Manual
2-18
Nume
ri
c
al Conv
er
s
ion
Com
man
ds
Sign Inversion
INV
MW00100 INV
Operation result = -99 when MW00100=99
Complement of 1 COM
MW00100 CON
Operation result = 0000H when MW00100= FFFFH
Absolute Conver-
sion
ABS
MW00100 ABS
Operation result = 99 when MW00100= -99
Binary Conver-
sion
BIN
MW00100 BIN
Operation result = 1234 (decimal) when MW00100 = 1234H (hexadeci-
mal)
BCD Conversion
BCD
MW00100 BCD
Operation result = 1234H (hexadecimal) when MW00100 = 1234
(decimal)
Parity Conver-
sion
PARITY
Calculates the number binary expression bits ON.
The operation result = 8 when
MW00100 PARITYMW00100
= F0F0H
ASCII Conver-
sion 1
ASCII
Converts a designated character string into ASCII, and replaces
it into the register ASCII MW00200 “ABCDEFG”
ASCII Conver-
sion 2
BINASC
Converts 16-bit binary data into four hexadecimal digits in ASCII
code.
BINASC MW00100
ASCII Conver-
sion 3
ASCBIN
Converts numbers displayed as four hexadecimal digits in ASCII
code into 16-bit binary data.
ASCBIN MW00100
N
ume
ri
ca
l C
omp
a
ri
s
on C
omm
and
s
<
<
Leaves the results of the comparison command ON or OFF in the B register.
≤
≤
=
=
≠
≠
≥
≥
>
>
Range Check
RCHK
Checks whether the A register value is within range.
MW00100 RCHK -1000, 1000
Type
Name
Symbol
Content
MW00000 < 10000
MB000010
MB000010
IFON