28
Basic Concepts
Section 2-1
Note Unsigned decimal notation if used for the CX-Programmer only.
Data
Operand
Data form
Symbol
Range
Application example
16-bit con-
stant
All binary data or
a limited range of
binary data
Unsigned binary
#
#0000 to #FFFF
---
Signed decimal
±
–32768 to
+32767
---
Unsigned deci-
mal
& (See Note.)
&0 to &65535
---
All BCD data or a
limited range of
BCD data
BCD
#
#0000 to #9999
---
32-bit con-
stant
All binary data or
a limited range of
binary data
Unsigned binary
#
#00000000 to
#FFFFFFFF
---
Signed binary
+
–2147483648 to
+2147483647
---
Unsigned deci-
mal
& (See Note.)
&0 to
&429467295
---
All BCD data or a
limited range of
BCD data
BCD
#
#00000000 to
#99999999
---
Text string
Description
Symbol
Examples
---
Text string data is stored in ASCII
(one byte except for special charac-
ters) in order from the leftmost to the
rightmost byte and from the right-
most (smallest) to the leftmost word.
00 Hex (NUL code) is stored in the
rightmost byte of the last word if
there is an odd number of charac-
ters.
0000 Hex (2 NUL codes) is stored in
the leftmost and rightmost vacant
bytes of the last word + 1 if there is
an even number of characters.
---
ASCII characters that can be used in a text string includes alphanumeric characters, Katakana and sym-
bols (except for special characters). The characters are shown in the following table.
'ABCDE'
'A'
'B'
'C'
'D'
'E'
NUL
41
42
43
44
45
00
'ABCD'
'A'
'B'
'C'
'D'
NUL
NUL
41
42
43
44
00
00
MOV$ D00100 D00200
41
42
43
44
45
00
41
42
43
44
45
00
D00100
D00101
D00102
D00200
D00201
D00202
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...