Omron CS1G/H-CPUxx-EV1 Programming Manual page 64

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Basic Concepts
Data
Operand
16-bit con-
All binary data or
stant
a limited range of
binary data
All BCD data or a
limited range of
BCD data
32-bit con-
All binary data or
stant
a limited range of
binary data
All BCD data or a
limited range of
BCD data
Text string
Description
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.
28
Data form
Unsigned binary
#
Signed decimal
±
Unsigned deci-
& (See Note.)
mal
BCD
#
Unsigned binary
#
Signed binary
+
Unsigned deci-
& (See Note.)
mal
BCD
#
---
Note Unsigned decimal notation if used for the CX-Programmer only.
Symbol
Range
#0000 to #FFFF
–32768 to
+32767
&0 to &65535
#0000 to #9999
#00000000 to
#FFFFFFFF
–2147483648 to
+2147483647
&0 to
&429467295
#00000000 to
#99999999
Symbol
Examples
'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
Section 2-1
Application example
---
---
---
---
---
---
---
---
---
MOV$ D00100 D00200
D00100
41
42
D00101
43
44
D00102
45
00
D00200
41
42
D00201
43
44
D00202
45
00

Advertisement

Table of Contents
loading

Table of Contents