EasyManuals Logo
Home>Omron>Computer Hardware>SYSMAC CP2E-E D Series

Omron SYSMAC CP2E-E D Series User Manual

Omron SYSMAC CP2E-E D Series
578 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #63 background imageLoading...
Page #63 background image
4-19
4 Understanding Programming
CP2E CPU Unit Software User’s Manual(W614)
4-4 Programming Instructions
4
4-4-5 Specifying Data in Operands
Note For Timer Completion Flags and Counter Completion Flags, there is no distinction between word addresses and bit
addresses.
Operand Description Example
Application
examples
Specifying
indirect DM
addresses in
Binary Mode
An offset from the beginning of the DM Area
is specified. The contents of the address will
be treated as binary data (Eîš…îš…-type CPU
Unit 0000 to 4095, Sîš…îš…-type CPU Unit
0000 to 8191, Nîš…îš…-type CPU Unit 0000 to
16383) to specify the word address in DM
Area.
Add the @ symbol at the front to specify an
indirect address in Binary Mode.
MOV #0001 @D300
Specifying
indirect DM
Addresses
in BCD
Mode
An offset from the beginning of the DM Area
is specified. The contents of the address will
be treated as BCD data (Eîš…îš…-type CPU
Unit 0000 to 4095, Sîš…îš…-type CPU Unit
0000 to 8191, Nîš…îš…-type CPU Unit 0000 to
16383) to specify the word address in the
DM Area.
Add an asterisk (*) at the front to specify an
indirect address in BCD Mode.
MOV #0001 *D200
Operand Description Notation Application examples
Specifying a
register
directly
(See note.)
An index register (IR) or a data register (DR) is
specified directly by specifying IRîš… (îš…: 0 to 15)
or DRîš… (îš…: 0 to 15).
IR0 MOVR 1.02 IR0
Stores the PLC memory address for CIO
0010 in IR0.
IR1 MOVR 10 IR1
Stores the PLC memory address for CIO
0010 in IR1.
Specifying
an indirect
address
using a reg-
ister
(See note.)
Indirect
address
(No off-
set)
The bit or word with the PLC mem-
ory address contained in IRîš… will be
specified. Specify ,IRîš… to specify
bits and words for instruction oper-
ands.
,IR0 LD ,IR0
Loads the bit with the PLC memory
address in IR0.
,IR1 MOV #0001 ,IR1
Stores #0001 in the word with the PLC
memory in IR1.
Constant
offset
The bit or word with the PLC mem-
ory address in IRîš… + or - the con-
stant is specified. Specify +/-
constant ,IRîš…. Constant offsets
range from -2048 to +2047 (deci-
mal).
The offset is converted to binary
data when the instruction is exe-
cuted.
+5,IR0 LD +5,IR0
Loads the bit with the PLC memory
address in IR0 + 5.
+31,IR1 MOV #0001 +31,IR1
Stores #0001 in the word with the PLC
memory address in IR1 + 31.
DR offset The bit or word with the PLC mem-
ory address in IRîš… + the contents of
DRîš… is specified. Specify DRîš…
,IRîš…. DR (data register) contents
are treated as signed-binary data.
The contents of IRîš… will be given a
negative offset if the signed binary
value is negative.
DR0 ,IR0 LD DR0 ,IR0
Loads the bit with the PLC memory
address in IR0 + the value in DR0.
DR0 ,IR1 MOV #0001 DR0 ,IR1
Stores #0001 in the word with the PLC
memory address in IR1 + the value in DR0.
@D300
Add @
&256 decimal
(#0100 hexadecimal)
Specify D00256
Contents
Contents
Specify D100
* D200
Add *
#0100

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP2E-E D Series and is the answer not in the manual?

Omron SYSMAC CP2E-E D Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP2E-E D Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals