Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.3 INITR / Initialize R and ER
758
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (INITR/INITRP)
"n" sectors of extension registers in the PLC's built-in RAM starting from the one specified by and "n"
sectors of extension file registers in a memory cassette (flash memory) having the same device numbers are
initialized (initial value "HFFFF" <K-1> is written.).
Initialization is executed in units of sector.
The table below shows the head device number in each sector.
Operation (when a memory cassette is used)
Sector
number
Head
device
number
Initialized device range
Sector
number
Head
device
number
Initialized device range
Sector 0 R0 R0 to R2047, ER0 to ER2047 Sector 8 R16384 R16384 to R18431, ER16384 to ER18431
Sector 1 R2048 R2048 to R4095, ER2048 to ER4095 Sector 9 R18432 R18432 to R20479, ER18432 to ER20479
Sector 2 R4096 R4096 to R6143, ER4096 to ER6143 Sector 10 R20480 R20480 to R22527, ER20480 to ER22527
Sector 3 R6144 R6144 to R8191, ER6144 to ER8191 Sector 11 R22528 R22528 to R24575, ER22528 to ER24575
Sector 4 R8192 R8192 to R10239, ER8192 to ER10239 Sector 12 R24576 R24576 to R26623, ER24576 to ER26623
Sector 5 R10240 R10240 to R12287, ER10240 to ER12287 Sector 13 R26624 R26624 to R28671, ER26624 to ER28671
Sector 6 R12288 R12288 to R14335, ER12288 to ER14335 Sector 14 R28672 R28672 to R30719, ER28672 to ER30719
Sector 7 R14336 R14336 to R16383, ER14336 to ER16383 Sector 15 R30720 R30720 to R32767, ER30720 to ER32767
1) Extension registers (R) [inside the built-in
RAM memory]
2) Extension file registers (ER) [inside the
memory cassette]
Device number
Current value
Device number
Current value
Before
execution
After
execution
Before
execution
After
execution
H0010 HFFFF H1234 HFFFF
+1
H0020 HFFFF
+1
H5678 HFFFF
+2
H0011 HFFFF
+2
H90AB HFFFF
...
...
...
...
...
...
+(2048×n)-1
HABCD HFFFF
+(2048×n)-1
HCDEF HFFFF
INITR
EN
s
n
ENO
Command
input
Extension registers to be initialized
and extension file register device
Number of sectors of extension registers and
extension file registers to be initialized.