Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.6 INITER / Initialize ER
773
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
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 any device number other than the head device number of a sector of extension file registers (ER) is
set to .
(Error code: K6706)
2) When a device number to be initialized exceeds "32767".
In this case, devices up to ER32767 are initialized. (Error code: K6706)
3) When the protect switch of the memory cassette is set to ON. (Error code: K6770)
4) When a memory cassette is not connected. (Error code: K6771)
Program example
In the program example shown below, the extension file registers ER0 to ER2047 in sector 0 are initialized.
1) Extension file registers (ER) [inside the memory cassette]
Device number
Current value
Before
execution
After
execution
ERO H1234 HFFFF
ER1 H5678 HFFFF
ER2 H90AB HFFFF
...
...
...
ER2047 HCDEF HFFFF
[ST]
WDT(LDP(TRUE,X000));
INITER(LDP(TRUE,X000),R0,K1);
WDT(LDP(TRUE,X000));
X000
The watchdog timer
is reset.
The watchdog timer
is reset.
WDT
EN ENO
LDP
EN ENO
s
INITER
EN
s
n
ENO
R0
K1
WDT
EN ENO
[Structured ladder/FBD]