APPENDIX
Appendix 9.8 When performing initial setting
The following program example performs initial setting using the REMTO instruction. Execute this program when changing the default values of the Q series C24 buffer memory.
Refer to Chapter 8 when changing the default values of the Q series C24 buffer memory using GX
(1) Program conditions
The following program performs initial setting on the CH1 side when the initial setting command (X1027) turns ON.
(a) Devices used:
• Initial setting command........................................................... | X1027 | |||
• | Initial setting command pulse signal ...................................... | M10 | ||
• Initial setting command 2........................................................ | M11 | |||
• Initial setting command 3........................................................ | M12 | |||
• Completion device for REMTO instruction............................. | M100 to105 | |||
• Normal/abnormal completion flag for REMTO instruction..... | M200 to 203 | |||
• Word/byte units designation ................................................... | D0 | |||
• Buffer memory head address designation for |
|
| ||
| transmission............................................................................ | D1 | ||
• Buffer memory length designation for |
|
| ||
| transmission............................................................................ | D2 | ||
• Transmission buffer memory head address designation ...... | D3 | |||
• Transmission buffer memory length designation................... | D4 | |||
• Receive buffer memory head address designation............... | D5 | |||
• Receive buffer memory length designation ........................... | D6 | |||
(b) Buffer memory settings used in this example |
|
| ||
|
|
|
| |
Address Decimal (Hexadecimal) | Name |
| Setting | |
CH1 |
|
| value | |
|
|
| ||
150 (96H) |
| Word/byte units designation |
| Byte units |
160 (A0H) |
| Buffer memory head address designation for |
| 0400H |
| designation |
| ||
|
|
|
| |
161 (A1H) |
| Data length designation for |
| 0000H |
162 (B2H) |
| Transmission buffer memory head address designation |
| 0C00H |
163 (A3H) |
| Transmission buffer memory length designation |
| 0400H |
166 (A6H) |
| Receive buffer memory head address designation |
| 0600H |
167 (A7H) |
| Receive buffer memory length designation |
| 0200H |
App. - 46 | App. - 46 |