Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.3 INITR / Initialize R and ER
757
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
33.3 INITR / Initialize R and ER
Outline
This instruction initializes (to "HFFFF <K-1>") extension registers (R) in the RAM built in a PLC and extension
file registers in a memory cassette (flash memory) before data logging by LOGR instruction.
In FX
3UC PLCs former than Ver. 1.30, use this instruction to initialize extension file registers (ER) before
writing data to them using SAVER instruction.
In FX
3UC PLCs Ver. 1.30 or later, INITER instruction is also provided to initialize (to "HFFFF" <K-1>) only
extension file registers (ER) in a memory cassette (flash memory) in units of sector.
For SAVER instruction, refer to Section 33.2.
For LOGR instruction, refer to Section 33.4.
For INITER instruction, refer to Section 33.6.
1. Format and operation, execution form
2. Set data
3. Applicable devices
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
INITR 16 bits Continuous INITR(EN,s,n);
INITRP 16 bits Pulse INITRP(EN,s,n);
Variable Description Data type
Input
variable
EN Execution condition Bit
Device of extension register and extension file register to be initialized
It is possible to specify only the head device in a sector of extension
registers.
ANY16
Number of sectors of extension registers and extension file registers to be
initialized.
ANY16
Output
variable
ENO Execution state Bit
Operand
type
Bit Devices Word Devices Others
System user Digit specification
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
""
P
zz
zz
INITR
EN
s
n
ENO
INITRP
EN
s
n
ENO