App. - 50 App. - 50
MELSEC-Q
APPENDIX
Appendix 9.10 When reading user frame
The following program example reads a user frame registered to the flash ROM of the
Q series C24 using the REMFR/REMTO instruction and I/O signals.
Refer to Section 9.4 of the User's Manual (Application) for details.
POINT
It is recommended to use GX Configurator-SC when reading a user frame
registered to the flash ROM of the Q series C24. (Refer to Chapter 8.)
(1) Program conditions
The following program reads a user frame registered to the flash ROM of the
QJ71C24N when the read command (X1029) turns ON.
(a) Devices used
:
โข Read command....................................................................... X1029
โข Read command pulse signal.................................................. M10
โข Read flag................................................................................. M11
โข Registration result acquisition command ............................... M12
โข Number of data byte registered acquisition command.......... M13
โข User frame acquisition command........................................... M14
โข Completion device for REMFR/REMTO instruction .............. M100 to 107
โข Normal/abnormal completion flag for REMFR/REMTO
instruction................................................................................ M200 to 204
โข Read instruction...................................................................... D0
โข Frame No. ............................................................................... D1
โข Read result.............................................................................. D2
โข Number of data bytes registered............................................ D3
โข User frame .............................................................................. D4 or later
โข Number of registered data...................................................... D50, D100
(b) Buffer memory settings used in this example
These settings are used to read the user frame registered in Appendix 9.9.
Address Decimal (Hexadecimal)
CH1
Name
Setting
value
2 (2
H
) Register/read/delete instructions 2
3 (3
H
) Frame No. direction 03E8
H
4 (4
H
) Registration/read/delete result storage โ
5 (5
H
) Number of data bytes registered designation 10
6 (6
H
) 3946
H
7 (7
H
) 3030
H
8 (8
H
) 3030
H
9 (9
H
) 4646
H
10 (A
H
)
For flash ROM
access
User frame
3030
H