3. Instructions
436
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
z NUM4
• NUM4(604) converts the 4 characters of
ASCII data in S and S+1 to numerical data
(4-digit hexadecimal) and writes the result to
D.
• The Error Flag will be turned ON if the ASCII
data in S and S+1 contains any characters
that are not hexadecimal digits. In this case,
the instruction will not be executed.
z NUM8
• NUM8(605) converts the 8 characters of
ASCII data in S to S+3 to numerical data (4-
digit hexadecimal) and writes the result to D
and D+1.
• The Error Flag will be turned ON if the ASCII
data contains any characters that are not
hexadecimal digits. In this case, the
instruction will not be executed.
z NUM16
• NUM16(606) converts the 16 characters of
ASCII data in S to S+7 to numerical data (4-
digit hexadecimal) and writes the result to D
to D+3.
• The Error Flag will be turned ON if the ASCII
data contains any characters that are not
hexadecimal digits. In this case, the
instruction will not be executed.
31 32
33 34
1 2 4 3
15 8 7 0
15 8 7 11 12 3 4 0
ASCII
D
S
S+1
Hexadecimal
31 32
33 34
35 36
37 38
1 2 4 3
5 6 8 7
15 8 7 0
15 8 7 11 12 3 4 0
ASCII
D
S
S+1
S+2
S+3
Hexadecimal
D+1
8 9 B A
C D F E
0
15 8 7 11 12 3 4
0
30 31
32 33
34 35
36 37
38 39
41 42
43 44
45 46
0 1 3 2
4 5 7 6
15 8 7
ASCII
D
S
S+1
S+2
S+3
S+4
S+5
S+6
S+7
Hexadecimal
D+1
D+2
D+3