Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 49

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

General Instruction Characteristics
Specifying Constants
Method
Applicable
operands
Constant
All binary data
(16-bit data)
and binary data
within a range
All BCD data
and BCD data
within a range
Constant
All binary data
(32-bit data)
and binary data
within a range
All BCD data
and BCD data
within a range
Specifying Text Strings
Method
Text strings
Text is stored in ASCII (1 byte/
character excluding special
characters) starting with the
lower byte of the lowest word
in the range.
If there is an odd number of
characters, 00 (NULL) is
stored in the higher byte of the
last word in the range.
If there is an even number of
characters, 0000 (two NULLs)
are stored in the word after the
last in the range.
Data
Code
format
Unsigned
#
binary
Signed dec-
imal
Unsigned
&
decimal
BCD
#
Unsigned
#
binary
Signed dec-
+
imal
Unsigned
&
decimal
BCD
#
Description
Code
Range
#0000 to #FFFF
MOV #0100 D00000
#0009 #0001 D00001
–32,768 to +32,767
MOV 100 D00000
&0 to &66,535
MOV &256 D00000
&9 &1 D00001
#0000 to #9999
MOV #0100 D00000
B #0009 #0001 D00001
#0000 0000 to
MOVL #12345678 D00000
#FFFF FFFF
–2,147,483,648 to
MOVL 12345678 D00000
+2,147,483,647
&0 to &4,294,967,295
MOVL &12345678 D00000
#0000 0000 to
MOVL #12345678 D00000
#9999 9999
Examples
MOV$ D00100 D00200
"ABCDE"
D00100
"A"
"B"
D00101
"C"
"D"
D00102
"E"
NUL
41
42
43
44
D00200
45
00
D00201
"ABCD"
D00202
"A"
"B"
"C"
"D"
NUL
NUL
41
42
43
44
00
00
Section 1-1
Example
Stores #0100 hex (&256 decimal)
in D00000.
Stores #000A hex (&10 decimal)
in D00001.
Stores 100 decimal (#FF9C hex)
in D00000.
9 1 D00001
Stores
10 decimal (#FFF6 hex)
in D00001.
Stores 256 decimal (#0100 hex)
in D00000.
Stores
10 decimal (#000A hex)
in D00001.
Stores #0100 (BCD) in D00000.
Stores #0010 (BCD) in D00001.
Stores #12345678 hex in D00000
and D00001.
D0001
D00000
1234
5678
Stores
12345678 decimal in
D00000 and D00001.
Stores &12345678 decimal in
D00000 and D00001.
Stores #12345678 (BCD) in
D00000 and D00001
Instruction example
41
42
43
44
45
00
41
42
43
44
45
00
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents