33 Applied Instructions (Extension File Register Control)
33.5 RWER / Rewrite to ER
769
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
Program example
In the program example shown below, the changed contents of extension registers R10 to R19 (sector 0)
used for setting data are reflected on extension file registers (ER) when X000 turns ON.
Program
Operation example
[ST]
PLS(X000,M0);
MOV(M0,D8000,D200);
ADD_E(M0,D8000,K47,D8000);
WDT(M0);
RWER(M0,R10,K10);
MOV(M0,D200,D8000);
WDT(M0);
M0
X000
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
M0
K47
*1
R10
K10
MOV
EN
s
ENO
d
D8000D200
WDT
EN ENO
[Structured ladder/FBD]
Setting data (A)
R0 K100
R1 K105
R10 K200
R11 K215
Setting data
Device number
Current
value
Extension registers (R)
R12 K400
R19 K350
R99 K1000
R100 HFFFF
HFFFFR2047
Unused
Write
(when X000
turns ON.)
Changed data
ER0 K100
ER1 K105
ER10 K200
ER11 K215
Setting backup data
Device number
Current
value
Extension file registers (ER)
ER12 K400
ER19 K350
ER99 K1000
ER100 HFFFF
HFFFFER2047