33 Applied Instructions (Extension File Register Control)
33.4 LOGR / Logging R and ER
764
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program example
In the program example shown below, D1 and D2 are logged to the area from R2048 to R6143 every time
X001 turns ON.
LOGRP
EN ENO
s
m
n
d1
d2
X001
D1
K2
K2
R2048
D100
[Structured ladder/FBD]
[ST]
LOGR(X001,D1,K2,K2,R2048,D100);
HFFFF
HFFFF
R2048
R2049
HFFFF
HFFFF
R2050
R2051
HFFFF
HFFFF
R2052
R5899
HFFFFR5900
HFFFFR5901
HFFFFR6143
Initial value
H1234
H5678
HFFFF
HFFFF
HFFFF
HFFFC
HFFFF
HFFFF
HFFFF
X001
OFF→ON
1st time
H1234
H5678
D1
D2
H1234
H5678
H9ABC
H1122
HFFFF
HFFF0
HFFFF
HFFFF
HFFFF
X001
OFF→ON
2nd time
H9ABC
H1122
D1
D2
Because two words are
used, low-order two bits
are set to OFF (0).
Because two words
are used, low-order two
bits are set to OFF (0).
Data writing
area
Writing position
control area
H0000D100 H0002 H0004