Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.5 RWER / Rewrite to ER
767
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
31
Applied Instructions
(Data Transfer 3)
32
Applied Instructions
(High Speed
Processing 2)
33
Applied Instructions
(Extension File
Register Control)
34
Applied Instructions
(FX
3U
-CF-ADP)
35
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
B
Applied
Instruction List
Cautions
1. Cautions on writing data to the memory cassette (flash memory) for the FX3U and FX3UC
PLCs
Memory cassettes adopt flash memory. Note the following contents when writing data to extension file
registers in a memory cassette with the RWER instruction.
1) Though extension file registers to be written can be specified arbitrarily, writing is executed in units of
sector.
It takes about 47 ms to write one sector. If the extension file registers to be written are located in two
sectors, the instruction execution time will be about 94 ms.
Be sure to change the set value of the watchdog timer D8000 before executing this instruction.
The table below shows the device range in each sector.
2) Do not turn OFF the power while this instruction is being executed. If the power is turned OFF, execution
of this instruction may be aborted. If execution is aborted, the data may be lost.
Be sure to back up the data before executing this instruction.
For the backup method, refer to the next page.
3) RWER instruction is provided in the FX
3UC PLC Ver. 1.30 or later.
Sector number Device range Sector number Device range
Sector 0 ER0 to ER2047 Sector 8 ER16384 to ER18431
Sector 1 ER2048 to ER4095 Sector 9 ER18432 to ER20479
Sector 2 ER4096 to ER6143 Sector 10 ER20480 to ER22527
Sector 3 ER6144 to ER8191 Sector 11 ER22528 to ER24575
Sector 4 ER8192 to ER10239 Sector 12 ER24576 to ER26623
Sector 5 ER10240 to ER12287 Sector 13 ER26624 to ER28671
Sector 6 ER12288 to ER14335 Sector 14 ER28672 to ER30719
Sector 7 ER14336 to ER16383 Sector 15 ER30720 to ER32767
M100
Writing command input
*1. Number of sectors to be written 47 ms
The contents of R1000 to R1099 in the sector 0
are written to ER1000 to ER1099.
MOV
EN
s
ENO
d
D200D8000
ADD_E
EN
_IN
_IN
ENO
D8000
D8000
WDT
EN ENO
RWER
EN ENO
s
n
PLS
EN ENO
d
M100
K47
*1
R1000
K100
MOV
EN
s
ENO
d
D8000D200
WDT
EN ENO