Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 147

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Instruction
Symbol/Operand
Mnemonic
Code
FOUR-DIGIT
NUMBER TO
ASCII
STR4
@STR4
601
S: Numeric
D: ASCII text
EIGHT-DIGIT
NUMBER TO
ASCII
STR8
@STR8
602
S: Numeric
D: ASCII text
SIXTEEN-DIGIT
NUMBER TO
ASCII
STR16
@STR16
603
S: Numeric
D: ASCII text
ASCII TO FOUR-
DIGIT NUMBER
NUM4
@NUM4
604
S: ASCII text
D: Numeric
Converts a 4-digit hexadecimal number (#0000 to #FFFF) to ASCII
STR4
data (4 characters).
15
12
11
8
S
1
2
S
D
Hexadecimal: #1234
ASCII
15
8
D
31
33
D+1
Converts an 8-digit hexadecimal number (#0000 0000 to #FFFF FFFF)
STR8
to ASCII data (8 characters).
S
15
12
11
8
S
5
6
D
S+1
1
2
Hexadecimal: #12345678
ASCII
15
8
D
31
D+1
33
D+2
35
D+3
37
Converts a 16-digit hexadecimal number (#0000 0000 0000 0000 to
STR16
#FFFF FFFF FFFF FFFF) to ASCII data (16 characters).
15
12
11
8
S
S
C
D
D
S+1
8
9
S+2
4
5
S+3
0
1
Hexadecimal: #1234567890ABCDEF
ASCII
15
8
D
30
32
D+1
34
D+2
36
D+3
D+4
38
D+5
41
D+6
43
D+7
45
Converts 4 characters of ASCII data to a 4-digit hexadecimal number.
NUM4
15
S
S
31
33
S+1
D
ASCII
Hexadecimal
15
12
11
D
1
2
Function
7
4
3
0
3
4
7
0
32
34
7
4
3
0
7
8
3
4
7
0
32
34
36
38
7
4
3
0
E
F
A
B
6
7
2
3
7
0
31
33
35
37
39
42
44
46
8
7
0
32
34
8
7
4
3
0
3
4
Section 3-10
Location
Execution condition
Output
Required
Output
Required
Output
Required
Output
Required
109

Advertisement

Table of Contents
loading

Table of Contents