Device Addressing For Instruction Execution - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

3: I
R
NSTRUCTIONS
EFERENCE

Device Addressing for Instruction Execution

This section provides an explanation about how source and destination devices used by instructions for the execution can be
specified. There are two ways to specify the device to use: Direct Addressing and Indirect Addressing.
Direct Addressing
In direct addressing, source and destination devices are specified with the devices to use.
■ Direct Addressing Operation
Example: When the source device (D0010) of the MOV(W) is directly specified.
The data in D0010 is transferred to D0002.
■ Devices that can be directly addressed
I
Q
M
X
X
X
■ Instructions supporting the direct addressing
All basic and advanced instructions support the direct addressing.
Indirect Addressing
Indirect Addressing Format
The index register Pn indicates the offset from the base device. Indirect addressing is possible by specifying source devices and
destination devices with the base device and the index register. The format of the indirect addressing is as follows:
"Base Device" + ":" + "Pn (Address n of the index register)"
Example: When the base device is D0010 and the index register P3 is used.
After D0010, add ":" and "P3".
D0010:P3
Indirect Addressing Operation
Example: When the source device (D0010) of the MOV(W) instruction is indirectly specified with P3.
The data in P3 is added to the address of D0010, so D(10 + (P3)) = D (10 + (100)) = D0110, and the data in
D0110 is transferred to D0002.
3-12
MOV(W)
S1 -
D0010
R
T
C
D
X
X
X
X
MOV(W)
S1 -
D0010:P3
FC6A S
MICROS
ERIES
MART
D1 -
REP
D0000
D0002
D0001
D0002
D0010
P
Constant
X
X
D1 -
REP
D0000
D0002
D0001
D0002
Index register
P0
1
P1
10
D0010
P2
50
+100
P3
100
D0110
L
P
M
ADDER
ROGRAMMING
ANUAL
Transfer
Data
Transfer
Data
FC9Y-B1726

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents