Mitsubishi Electronics FX3G User Manual

Page of 964
131
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.9 Data Register and File Register [D]
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction 
Li
st
4
D
evices 
in Det
ai
l
5
Specifi
ed the
De
vice
 &
 
C
onst
ant
6
Bef
ore
 
Pr
og
ra
mmi
ng
7
Bas
ic 
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
Operati
on
4.9.2
Structures of data registers and file registers
1) 16-bit type
One (16-bit) data register or file register can store a numeric value ranging from -32,768 to +32,767.
A numeric value can be read from or written to a data register by an applied instruction usually.
Or a numeric value can be directly read from or written to a data register from a display unit, display module, or
programming tool.
2) 32-bit type
Two serial data registers or file registers can express 32-bit data.
- A data register with a larger device number handles high-order bits, and a data register with a smaller device 
number handles low-order bits.
- In the index type, V handles high-order bits, and Z handles low-order bits.
Two data registers or file registers can store a numeric value ranging from -2,147,483,648 to +2,147,483,647. 
In the case of 32-bit type, when a data register or file register on the low-order side (example: D0) is specified, the
subsequent number on the high-order side (example: D1) is automatically occupied.
Either an odd or even device number can be specified for the low-order side, but it is recommended to specify an
even device number for the low-order side under consideration of the monitoring function of display units, display
modules, and programming tools.
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
b15
Sign
0: Positive
    number
1: Negative
    number
b0
High
order
Low
order
D 0 (16 bits)
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
b31
Sign
0: Positive
    number
1: Negative
    number
b0
High
order
Low
order
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
32768
65536
131,072
262,144
524,288
1,048,576
2,097,152
4,194,304
8,388,608
16,777,216
33,554,432
67,108,864
1
34,217,728
2
68,435,456
5
36,870,912
1,0
73,741,824
D1 (high-order 16 bits)
D0 (low-order 16 bits)