Yaskawa MP930 User Manual
Page 313

B.2 Ladder Instructions and Standard System Functions
B -11
Type
Description
Abbreviated
Instructions
Symbol
Name
Numeric
Conversion
Instructions
SIGN INVERSION INV
INV
⊦ MW00100 INV
If MW00100 = 99, the operation result = −99.
Instructions
1’S COMPLE-
MENT
COM
COM
⊦ MW00100 COM
If MW00100 = FFFFH, the operation result = 0000H.
ABSOLUTE VAL-
UE CONVERSION
ABS
ABS
⊦ MW00100 ABS
If MW00100 = −99, the operation result = 99.
BINARY CON-
VERSION
BIN
BIN
⊦ MW00100 BIN
If MW00100 = 1234H (hexadecimal), the operation result =
1234 (decimal).
BCD CONVER-
SION
BCD
BCD
⊦ MW00100 BCD
If MW00100 = 1234 (decimal), the operation result = 1234H
(hexadecimal).
PARITY CON-
VERSION
PARITY
PARITY
Calculates the number of binary bits that are ON.
If MW00100 = F0F0H, the operation result = 8.
ASCII CONVER-
SION 1
ASCII
ASCII
The designated character string is converted to ASCII code
and substituted in the register.
MW00200 “ABCDEFG”
ASCII CONVER-
SION 2
BINASC
BINASC
Converts 16-bit binary data to 4-digit hexadecimal ASCII
code.
BINASC MW00100
ASCII CONVER-
SION 3
ASCBIN
ASCBIN
Converts the numeric value indicated by a 4-digit hexadeci-
mal ASCII code to 16-bit binary data.
ASCBIN MW00100
Numeric
Comparison
<
<
<
MW00000 < 10000
MB000010
Comparison
Instructions ≦
≦
< =
MW00000 < 10000
MB000010
=
=
=
IFON
≠
≠
< >
≧
≧
> =
>
>
>
RANGE CHECK
RCHK
RCHK
Checks whether or not the value in the A register is in range.
⊦ MW00100 RCHK −1000, 1000
B