Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 470

Table of Contents

Advertisement

3. Instructions
Function
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.
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.
instruction will not be executed.
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.
instruction will not be executed.
434
In
this
case,
the
In
this
case,
the
15
8
S
31
33
S+1
ASCII
Hexadecimal
15
12
11
8
D
1
2
15
8
S
31
33
S+1
35
S+2
S+3
37
ASCII
Hexadecimal
15
12
11
8
D
5
6
1
2
D+1
15
8
S
30
32
S+1
34
S+2
36
S+3
38
S+4
S+5
41
43
S+6
S+7
45
ASCII
Hexadecimal
15
12
11
8
C
D
D
8
9
D+1
4
5
D+2
0
1
D+3
CS/CJ/NSJ Series Instructions Reference Manual (W474)
7
0
32
34
7
4
3
0
3
4
7
0
32
34
36
38
7
4
3
0
7
8
3
4
7
0
31
33
35
37
39
42
44
46
0
7
4
3
E
F
A
B
6
7
2
3

Advertisement

Table of Contents
loading

Table of Contents