Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.1 LOADR / Load From ER
746
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
b) When not connecting to a memory cassette
The contents (current values) of extension file registers (ER) stored in PLC's built-in EEPROM having
the same numbers with the extension registers specified by to +n-1 are read, and
transferred to the extension registers (R) specified by to +n-1 stored in the PLC's built-in
RAM.
- Reading and transfer are executed in units of device. Up to 24000 devices can be read and transferred.
Cautions
1. About the allowable number of times of writing operations in memory
Note the following when accessing the extension file registers:
For the FX
3U and FX3UC PLCs
The memory cassette (flash memory) allows up to 10,000 times of writing operations.
The number of times of writing operations counts up each time the INITR, RWER or INITER instruction is
executed. Do not exceed the allowable number of times of writing operations.
When a continuous operation type instruction is executed, writing operation to the memory occurs for each
operation cycle of the PLC. To avoid this, be sure to use pulse operation type instructions.
The number of times of writing operations does not count up when the LOADR, SAVER or LOGR
instruction is executed. However, the SAVER and LOGR instructions require the target write sectors to be
initialized before executing the instructions. Note that, when initializing by using the INITR or INITER
instruction, the number of times of writing operations in the memory counts up every time the NITR or
INITER instruction is executed.
For the FX
3G and FX3GC PLCs
The memory cassette (EEPROM) and PLC's built-in memory (EEPROM) allow up to 10,000 times and
20,000 times of writing operations, respectively.
The number of times of writing operations counts up each time the RWER instruction is executed. Do not
exceed the allowable number of times of writing operations.
When a continuous operation type instruction is executed, writing operation to the memory occurs for each
operation cycle of the PLC. To avoid this, be sure to use pulse operation type instructions.
The number of times of writing operations does not count up when the LOADR instruction is executed.
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the last device number to be transferred exceeds "32767" (error code: K6706).
At this time, devices up to the last one (R32767) are read and transferred.
2) When a memory cassette is not connected. (Error code: K6771)
*1
*1. This does not cause an error with the FX3G PLCs because the PLCs read the contents of the
extension file registers stored in the PLC's built-in EEPROM when a memory cassette is not
connected.
E
E+1
E+2
E+3
E+n-2
E+n-1
+1
+2
+3
+n-2
+n-1
Read (transfer)
s
s
s
s
s
ss
s
s
s
s
s
Extension file registers (ER)
inside PLC's built-in EEPROM
Extension registers (R)
inside built-in RAM