Structures Of Extension Registers And Extension File Registers; Initialization Of Extension Registers And Extension File Registers - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
4.9.3

Structures of extension registers and extension file registers

One extension register consists of 16 bits. Extension registers can be used in 16-bit and 32-bit applied
instructions for operation in the same way as data registers.
1) 16-bit type
One extension register (consisting of 16 bits) can handle a numeric value in the range from −32768 to
+32767.
High
order
0
1
b15
Sign
0: Positive
number
1: Negative
number
A numeric value is read from and written to an extension register by applied instructions usually.
Or a numeric value can be directly read from and written to an extension register from a display unit,
display module, or programming tool.
2) 32-bit type
Two serial extension registers (consisting of 32 bits) can express a 32-bit numeric value in the range from
−2,147,483,648 to +2,147,483,647. (A larger number register handles high-order 16 bits, and a smaller
number register handles low-order 16 bits.)
High
order
0
1
b31
Sign
0: Positive
number
1: Negative
number
• In the case of 32 bit type, when an extension register on the low-order side (example: R0) is specified, the
subsequent serial number on the high-order side (example: R1) 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.
4.9.4

Initialization of extension registers and extension file registers

The contents of extension registers are backed up by the built-in battery even when the power is turned OFF
or when the PLC mode switches from STOP to RUN.
When initializing the contents of extension registers, clear them using a sequence program or GX Developer.
1. When clearing the data using a program
• When initializing some extension registers (R)
Example: When initializing (clearing) R0 to R199
Command
• When initializing extension registers and extension file registers in units of sector
Example: When initializing R0 to R4095 and ER0 to ER4095 (initializing two sectors starting from R0 and
ER0)
Command
2. When clearing the data using GX Developer
Select [Online] → [Clear PLC memory...] in GX Developer, and clear [Data device].
This operation initializes the contents of timers, counters, data registers, file registers and extension registers.
R0, ER0 (16 bits)
0
1
0
1
0
1
0
1
0
1
0
1
R1, ER1 (high-order 16 bits)
0
1
0
1
0
1
0
1
0
1
0
FNC 16
K0
FMOVP
FNC 292
R0
INITRP
4.9 Extension Register [R] and Extension File Register [ER]
Low
order
0
1
b0
R0, ER0 (low-order 16 bits)
1
0
1
1
1
1
1
0
0
0
0
1
R0
K200
The current value is initialized to "FFFF
K2
R0 to R4095.
4 Devices in Detail
Low
order
1
1
1
0
0
0
0
b0
" in
H
1
2
3
4
5
6
7
8
9
10
111

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents