Mitsubishi Electronics FX3G User Manual

Page of 964
732
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.4 FNC293 – LOGR / Logging R and ER
5) To the PLC, write the data which was temporarily withdrawn to GX Works2.
[1] Select “Online” 
→ “Write to PLC...” to display
the Online Data Operation dialog box.
[2] Click "PLC Parameter/Network Parameter"
and "MAIN"  to check mark each of them.
[3] Click [Execute] button to execute writing.
6) Change the PLC mode from STOP to RUN, execute the program, and store the data to the extension file
registers inside the memory cassette.
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.
X001
FNC293
LOGRP
D1
K2
R2048
K2
D100
HFFFF
HFFFF
R2048
R2049
HFFFF
HFFFF
R2050
R2051
HFFFF
HFFFF
R2052
R5899
HFFFF
R5900
HFFFF
R5901
HFFFF
R6143
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
H0000
D100
H0002
H0004