Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.2 SAVER / Save to ER
750
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Cautions
1. Cautions on writing data to a memory cassette
Memory cassettes adopt flash memory. Note the following contents when writing data to extension file
registers in a memory cassettes with the SAVER instruction.
1) It takes about 340 ms to write all points (2048 points). If "n" is set to K0 or K2048, the operation cycle for
executing this instruction becomes about 340 ms longer than normal.
If the operation cycle is severely affected, write data in two or more operation cycles.
When writing data in two or more operation cycles, set "n" in the range from K1 to K1024.
2) Do not abort execution of this instruction in the middle of operation. If execution is aborted, unexpected
data may be written to extension file registers.
If execution of this instruction is aborted by turning OFF the power, execute the instruction again using
step [2] described on the next page after turning ON the power again.
3) Execute INITER or INITR instruction to target extension file registers (ER) before executing SAVER
instruction. If SAVER instruction is driven before INITER or INITR instruction is executed, an operation
error (error code: K6770) may be caused.
To avoid such an operation error, make a program for executing SAVER instruction in the following
sequence
When the FX
3U and FX3UC PLCs are Ver. 1.30 or later
[1] When storing data of 2048 extension registers (R) in one sector to extension file register (ER).
a) Execute INITER instruction to extension file registers (ER) specified as targets in SAVER instruction.
b) Execute SAVER instruction.
[2] When storing the contents of an arbitrary number of extension registers (R) to extension file
registers (ER)
Use RWER instruction.
For RWER instruction, refer to Section 33.5.
When the FX
3UC PLCs are former than Ver. 1.30.
[1] When storing data of 2048 extension registers (R) in one sector to extension file registers (ER)
If the extension registers (R) have data to be stored in extension file registers (ER), use the procedure [2].
a) Execute INITR instruction to extension registers (R) and extension file registers (ER) specified as
targets in SAVER instruction.
b) Store data to extension registers (R) specified as targets.
c) Execute SAVER instruction.
M
M8029
Write command
Operation execution complete flag
SET
EN ENO
d
RST
EN ENO
d
M
INITERP
EN ENO
s
n
The same extension register device number as
the extension file register device to be initialized
The number of sectors for the extension register
to be initialized and the extension file register
SAVER
Device of extension register to which data
is to be transferred
Number of points written in one operation cycle
Device storing the number
of already written points
M
EN ENO
s
n
d