Yaskawa MP920 User's Manual Design User Manual
Page 530

A.2 Motion Commands, Ladder Instructions, and Standard System Functions
A-15
A
Numeric
Conversion
Instructions
(cont’d)
STORE
Stores the operation result in the designated register.
MULTIPLICATION
×
For integer and long integers, use
× and ÷ in combination.
DIVISION
÷
INCREMENT
INC
Adds 1 to the designated register.
INC MW00100
DECREMENT
DEC
Subtracts 1 from the designated register.
DEC MW00100
MOD
MOD
Gets the remainder of the division result.
REM
REM
Gets the remainder of the division result.
ADD TIME
TMADD
Addition of hours, minutes, and seconds
TMADD MW00000, MW00100
SUBTRACT TIME
TMSUB
Subtraction of hours, minutes, and seconds
TMSUB MW00000, MW00100
SPEND TIME
SPEND
Calculates the elapsed time between two times.
SPEND MW00000, MW00100
SIGN INVERSION INV
MW00100 INV
If MW00100 = 99, the operation result = -99.
1’S
COMPLEMENT
COM
MW00100 COM
If MW00100 = FFFFH, the operation result = 0000H.
ABSOLUTE
VALUE
CONVERSION
ABS
MW00100 ABS
If MW00100 = -99, the operation result = 99.
BINARY
CONVERSION
BIN
MW00100 BIN
If MW00100 = 1234H (hexadecimal), the operation result =
1234 (decimal).
BCD
CONVERSION
BCD
MW00100 BCD
If MW00100 = 1234 (decimal), the operation result = 1234H
(hexadecimal).
PARITY
CONVERSION
PARITY
Calculates the number of binary bits that are ON.
If MW00100 = F0F0H, the operation result = 8.
ASCII
CONVERSION 1
ASCII
The designated character string is converted to ASCII code
and substituted in the register.
MW00200 “ABCDEFG”
ASCII
CONVERSION 2
BINASC
Converts 16-bit binary data to 4-digit hexadecimal ASCII
code.
BINASC MW00100
ASCII
CONVERSION 3
ASCBIN
Converts the numeric value indicated by a 4-digit hexadeci-
mal ASCII code to 16-bit binary data.
ASCBIN MW00100
(cont’d)
Type
Name
Symbol
Description
MW00100
× 00100 ÷ 00121
MOD
MW00101
MF00200 REM 1.5
MF00202