70
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
DOUBLE GRAY
CODE TO
BINARY CON-
VERT
GRAY_BINL
@GRAY_BINL
479
(CJ2 only)
Converts the specified two words of gray code to two words of binary
data.
Output
Required
428
BINARY TO
GRAY CODE
CONVERT
BIN_GRAY
@BIN_GRAY
480
(CJ2 only)
Converts the specified word of binary data to one word of gray code. Output
Required
430
DOUBLE
BINARY TO
GRAY CODE
CONVERT
BIN_GRAYL
@BIN_GRAYL
481
(CJ2 only)
Converts the specified two words of binary data to two words of gray
code.
Output
Required
430
FOUR-DIGIT
NUMBER TO
ASCII
STR4
@STR4
601
(CS/CJ-series
CPU Units with
unit version 4.0 or
later and CJ2 CPU
Units only)
Converts a 4-digit hexadecimal number (#0000 to #FFFF) to ASCII
data (4 characters).
Output
Required
432
EIGHT-DIGIT
NUMBER TO-
ASCII
STR8
@STR8
602
(CS/CJ-series
CPU Units with
unit version 4.0 or
later and CJ2 CPU
Units only)
Converts an 8-digit hexadecimal number (#0000 0000 to #FFFF FFFF)
to ASCII data (8 characters).
Output
Required
432
SIXTEEN-DIGIT
NUMBER TO
ASCII
STR16
@STR16
603
(CS/CJ-series
CPU Units with
unit version 4.0 or
later and CJ2 CPU
Units only)
Converts a 16-digit hexadecimal number (#0000 0000 0000 0000 to
#FFFF FFFF FFFF FFFF) to ASCII data (16 characters).
Output
Required
432
ASCII TO FOUR-
DIGIT NUMBER
NUM4
@NUM4
604
(CS/CJ-series
CPU Units with
unit version 4.0 or
later and CJ2 CPU
Units only)
Converts 4 characters of ASCII data to a 4-digit hexadecimal number. Output
Required
435
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
GRAY_BINL(479)
S
D
S: First source
word (gray
code)
D: First
destination word
(binary)
BIN_GRAY(480)
S
D
S: Source word
(binary data)
D: Destination
word (gray code)
GRAY_BINL(479)
S
D
S: First source
word (gray
code)
D: First
destination word
(binary)
BIN_GRAYL(481)
S
D
S: First source
word (binary
data)
D: First
destination word
(gray code)
STR4
S
D
S: Numeric
D: ASCII text
STR8
S
D
S: Numeric
D: ASCII text
STR16
S
D
S: Numeric
D: ASCII text
NUM4
S
D
S: ASCII text
D: Numeric