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

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
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
30
Data form
Symbol
Unsigned binary
#
Signed decimal
±
Unsigned deci-
& (See Note.)
mal
BCD
#
Unsigned binary
#
Signed binary
+
Unsigned deci-
& (See Note.)
mal
BCD
#
Range
Application example
#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.
MOV −100 D00000
–32768 to
+32767
Stores −100 decimal (#FF9C
hex) in D00000.
+−9 −1 D00001
Stores −10 decimal (#FFF6
hex) in D00001.
&0 to &65535
MOV &256 D00000
Stores −256 decimal (#0100
hex) in D00000.
+&9 &1 D00001
Stores −10 decimal (#000A
hex) in D00001.
#0000 to #9999
MOV #0100 D00000
Stores #0100 (BCD) in
D00000.
+B #0009 #0001 D00001
Stores #0010 (BCD) in
D00001.
#00000000 to
MOVL #12345678 D00000
#FFFFFFFF
Stores #12345678 hex in
D00000 and D00001.
MOVL −12345678 D00000
–2147483648 to
+2147483647
Stores −12345678 decimal
in D00000 and D00001.
&0 to
MOVL &12345678 D00000
&429467295
Stores &12345678 decimal
in D00000 and D00001.
#00000000 to
MOVL #12345678 D00000
#99999999
Stores #12345678 (BCD) in
D00000 and D00001
Section 2-1
D0001
D00000
1234
5678

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?

Table of Contents