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
(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) |
| Name |
| Setting | |
CH1 |
|
|
| value | |
|
|
|
| ||
2 (2H) |
|
| Register/read/delete instructions |
| 2 |
3 (3H) |
|
| Frame No. direction |
| 03E8H |
4 (4H) |
|
| Registration/read/delete result storage |
| — |
5 (5H) |
| For flash ROM | Number of data bytes registered designation |
| 10 |
6 (6H) |
|
|
| 3946H | |
| access |
|
| ||
7 (7H) |
|
|
| 3030H | |
|
|
|
| ||
8 (8H) |
|
| User frame |
| 3030H |
9 (9H) |
|
|
|
| 4646H |
10 (AH) |
|
|
|
| 3030H |
App. - 50 | App. - 50 |