Basic Instructions - 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
Example: MOV(D) 1234 D10:P0
• P0=-3
This indirect addressing indicates D0007, which is 3 words
behind of D0010.
Index register
P0
-3
Values stored in the index registers is 32-bit and its data type is L (long). Index registers can directly specified as source and
destination devices in MOV(L), ADD(L), SUB(L), and MUL(L) instructions and values in index registers can be moved or
manipulated.
Example: MOV(L) -123456 P0
• -123456 is transferred to P0.
Notes:
• Index registers cannot be used in scripts.
• Indirect addressing to a different device type is not possible.
• Each of the following ranges of data registers is handled as a different device from the others:
All-in-One CPU module: D0 to D7999, D8000 to D8499, D10000 to D55999
Plus CPU module: D0 to D7999, D8000 to D8899, D10000 to D61999, D70000 to D269999
• If indirectly specified devices are beyond the device range, a user program execution error (1: Source/destination device exceeds range) will
occur.
• When the indirect addressing is used, the base device and index register cannot be specified with the tag names.
• Indirect addressing for data register bits is not supported.
• The four instructions that can be used to modify the values of the index registers are MOV(L), ADD(L), SUB(L), and MUL(L). Specify P (index
register) directly in those instructions.
Devices that can be indirectly addressed
I
Q
M
X
X
X
Instructions supporting the indirect addressing

■ Basic Instructions

Command
LOD, LODN
OUT, OUTN
SET, RST
AND, ANDN
OR, ORN
AND LOD
3-14
MOV(D)
S1 -
D1 -
1234
D0010:P0
D0007
3
D0008
-3
2
D0009
1
D0010
MOV(L)
S1 -
D1 -
-123456
P0
R
T
C
X
X
X
Indirect
Addressing
X
Not possible when specifying a bit in a data register.
X
Not possible when specifying a bit in a data register.
X
Not possible when specifying a bit in a data register.
X
Not possible when specifying a bit in a data register.
X
Not possible when specifying a bit in a data register.
FC6A S
MICROS
ERIES
• P0=5
This indirect addressing indicates D0015, which is 5 words
ahead of D0010.
REP
1234
Transfer
Index register
P0
REP
D
P
Constant
X
L
P
MART
ADDER
ROGRAMMING
MOV(D)
S1 -
1234
1
2
+5
3
5
4
5
Comments
M
FC9Y-B1726
ANUAL
D1 -
REP
D0010:P0
D0010
D0011
D0012
D0013
D0014
1234
D0015
Transfer

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents