EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 70

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
30
Basic Concepts Section 2-1
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 MOV #0100 D00000
Stores #0100 hex (&256 dec-
imal) in D00000.
+#0009 #0001 D00001
Stores #000A hex (&10 deci-
mal) in D00001.
Signed decimal ± –32768 to
+32767
MOV 100 D00000
Stores 100 decimal (#FF9C
hex) in D00000.
+−9 1 D00001
Stores 10 decimal (#FFF6
hex) in D00001.
Unsigned deci-
mal
& (See Note.) &0 to &65535 MOV &256 D00000
Stores 256 decimal (#0100
hex) in D00000.
+&9 &1 D00001
Stores 10 decimal (#000A
hex) in D00001.
All BCD data or a
limited range of
BCD data
BCD # #0000 to #9999 MOV #0100 D00000
Stores #0100 (BCD) in
D00000.
+B #0009 #0001 D00001
Stores #0010 (BCD) in
D00001.
32-bit con-
stant
All binary data or
a limited range of
binary data
Unsigned binary # #00000000 to
#FFFFFFFF
MOVL #12345678 D00000
Stores #12345678 hex in
D00000 and D00001.
Signed binary + –2147483648 to
+2147483647
MOVL 12345678 D00000
Stores 12345678 decimal
in D00000 and D00001.
Unsigned deci-
mal
& (See Note.) &0 to
&429467295
MOVL &12345678 D00000
Stores &12345678 decimal
in D00000 and D00001.
All BCD data or a
limited range of
BCD data
BCD # #00000000 to
#99999999
MOVL #12345678 D00000
Stores #12345678 (BCD) in
D00000 and D00001
1234 5678
D0001 D00000

Table of Contents

Related product manuals