Yaskawa MP920 User's Manual Design User Manual
Page 61

2.1 Specifications
2-35
2
Numeric
Conversion
Instructions
(cont’d)
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 hexadecimal
ASCII code to 16-bit binary data.
ASCBIN MW00100
Numeric
Comparison
Instructions
<
<
=
=
>
>
RANGE CHECK
RCHK
Checks whether or not the value in the A register is in range.
MW00100 RCHK -1000, 1000
Data Operation
Instructions
BIT ROTATION
RIGHT
ROTR
Bit-addr Count
Width
ROTR MB00100A
→ N = 1
W = 20
MOVE BITS
MOVB
Source Desti.
Width
MOVB MB00100A
→ MB00200A W = 20
MOVE WORD
MOVW
Source Desti.
Width
MOVW MB00100
→ MB00200
W = 20
EXCHANGE XCHG
Source1 Source2
Width
XCHG MB00100
→MB00200
W = 20
SET WORDS
SETW
Desti.
Data
Width
SETW MW00200 D = 00000 W = 20
BYTE-TO-WORD
EXPANSION
BEXTD
Expands the byte data stored in the word registers into words.
BEXTD MW00100 to MW00200 B = 10
WORD-TO-BYTE
COMPRESSION
BPRESS
Collects the lower bytes of the word data stored in the word register
area.
BPRESS MW00100 to MW00200 B = 10
BINARY SEARCH
BSRCH
Retrieves the register position that matches the data within the desig-
nated register range.
BSRCH MW00000 W = 20 D = 100 R = MW00100
SORT SORT
Sorts registers within the designated register range.
SORT MW00000 W = 100
BIT SHIFT LEFT
SHFTL
Shifts the designated bit strings to the left.
SHFTL MB00100A N = 1 W = 20
BIT SHIFT RIGHT
SHFTR
Shifts the designated bit strings to the right.
SHFTR MB00100A N = 1 W = 2
COPY WORD
COPYW
Copies the designated register range.
COPYW MW00100
→ MW00200 W = 20
BYTE SWAP
BSWAP
The upper and lower bytes of the designated word are swapped.
BSWAP MW00100
Table 2.23 Ladder Instructions (cont’d)
Type
Name
Symbol
Description
MW00000 < 10000
MB000010
MB000010
IFON