3: I
NSTRUCTIONS
R
EFERENCE
3-14
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
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.
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
Instructions supporting the indirect addressing
■
Basic Instructions
Example: MOV(D) 1234 D10:P0
• P0=-3
This indirect addressing indicates D0007, which is 3 words
behind of D0010.
• P0=5
This indirect addressing indicates D0015, which is 5 words
ahead of D0010.
Example: MOV(L) -123456 P0
• -123456 is transferred to P0.
I
Q
M
R
T
C
D
P
Constant
X
X
X
X
X
X
X
—
—
Command
Indirect
Addressing
Comments
LOD, LODN
X
Not possible when specifying a bit in a data register.
OUT, OUTN
X
Not possible when specifying a bit in a data register.
SET, RST
X
Not possible when specifying a bit in a data register.
AND, ANDN
X
Not possible when specifying a bit in a data register.
OR, ORN
X
Not possible when specifying a bit in a data register.
AND LOD
—
1234
Transfer
REP
D1 -
D0010:P0
S1 -
1234
MOV(D)
Index register
D0007
D0008
D0009
D0010
-3
3
2
1
P0
-3
D0010
D0011
D0012
D0013
D0014
D0015
+5
1
2
3
4
5
P0
5
1234
Transfer
REP
D1 -
D0010:P0
S1 -
1234
MOV(D)
Index register
REP
D1 -
P0
S1 -
-123456
MOV(L)
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...