Omron CJ2 CPU UNIT SOFTWARE User Manual page 167

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Data
Operand
16-bit
All binary
constant
data or a lim-
ited range of
binary data
All BCD data
or a limited
range of BCD
data
32-bit
All binary
constant
data or a lim-
ited range of
binary data
All BCD data
or a limited
range of BCD
data
CJ2 CPU Unit Software User's Manual
Data form
Symbol
Unsigned
#
#0000 to #FFFF
binary
±
−32768 to +32767
Signed
decimal
Unsigned
&
&0 to &65535
decimal
BCD
#
#0000 to #9999
Unsigned
#
#00000000 to
binary
#FFFFFFFF
−2147483648 to
Signed
+
binary
+2147483647
Unsigned
&
&0 to
decimal
&4294967295
BCD
#
#00000000 to
#99999999
5 Understanding Programming
Range
MOV #0100 D0
Stores #0100 hex (&256 decimal) in D0.
+#0009 #0001 D1
Stores #000A hex (&10 decimal) in D1.
MOV −100 D0
Stores −100 decimal (#FF9C hex) in D0.
+−9 -1 D1
Stores −10 decimal (#FFF6 hex) in D1.
MOV &256 D0
Stores −256 decimal (#0100 hex) in D0.
+&9 &1 D1
Stores −10 decimal (#000A hex) in D1.
MOV #0100 D0
Stores #0100 (BCD) in D0.
+B #0009 #0001 D1
Stores #0010 (BCD) in D1.
MOVL #12345678 D0
Stores #12345678 hex in D0 and D1.
D1
1234
5678
MOVL −12345678 D0
Stores −12345678 decimal in D0 and D1.
MOVL &12345678 D0
Stores &12345678 decimal in D0 and D1.
MOVL #12345678 D0
Stores #12345678 (BCD) in D0 and D1
Application example
D0
5
5-75

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Thomas
January 16, 2025

How do I retrieve fault codes from plc: CJ2M-CPU35

Table of Contents

Save PDF