![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262074.webp)
4 Understanding Programming
4-30
CP2E CPU Unit Software User’s Manual(W614)
z
Direct Addressing of Index Registers
The size of an index registers is two words per register for Index Registers IR0 to IR15, so use a
double-word instruction (with an “L” in the mnemonic).
It is possible to monitor Index Registers as follows:
• To use the CX-Programmer to monitor the final Index Register values for each task.
• To monitor the Index Register values using Host Link commands or FINS commands, write a pro-
gram to store Index Register values from each task to another area (e.g., DM area) at the end of each
task, and to read Index Register values from the storage words (e.g., DM area) at the beginning of
each task. The values stored for each task in other areas (e.g., DM area) can then be edited using
the CX-Programmer, Host Link commands, or FINS commands.
Instruction group
Instruction name
Mnemonic
Primary function
Data Movement Instructions
MOVE TO REGISTER
MOVR(560)
Stores the PLC memory
address of a bit or word in an
Index Register.
MOVE TIMER/COUNTER PV
TO REGISTER
MOVRW(561)
DOUBLE MOVE
MOVL(49
8
)
Transfers between Index
Registers. Used for
exchanges and comparisons.
Comparison Instructions
DOUBLE EQUAL
=L(
3
01)
DOUBLE NOT EQUAL
< >L(
3
06)
DOUBLE LESS THAN
< L(
3
11)
DOUBLE LESS THAN OR
EQUAL
< =L(
3
16)
DOUBLE GREATER THAN
>L(
3
21)
DOUBLE GREATER THAN OR
EQUAL
>=L(
3
26)
DOUBLE COMPARE
CMPL(060)
Increment/Decrement
Instructions
DOUBLE INCREMENT +L(591)
Changes the PLC memory
address in the Index Register
by incrementing, decrement-
ing, or offsetting its content.
DOUBLE DECREMENT
BINARY
−−
L(59
3
)
Symbol Math Instructions
DOUBLE SIGNED BINARY
ADD WITHOUT CARRY
+L(401)
DOUBLE SIGNED BINARY
SUBTRACT WITHOUT CARRY
−
L(411)
4-6-3
Monitoring Index Registers
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......