APPENDIX
Appendix 9.3 When sending
The following program example sends
For the
(1) Program conditions
| The following program sends | |||||||||
| transmission command (X1022) turns ON. |
|
|
|
| |||||
| (a) | Devices used: |
|
|
|
|
|
|
| |
|
| • Transmission command | ............................................................ |
|
|
| X1022 | |||
|
| • Transmission command pulse signal........................................ |
| M10 | ||||||
|
| • |
| M11 | ||||||
|
| • |
| M12 | ||||||
|
| • | M13 | |||||||
|
| • LED ON status acquisition command ....................................... |
| M14 | ||||||
|
| • Completion device for REMFR/REMTO instruction ................. | M100 to 107 | |||||||
|
| • Normal/abnormal completion flag for REMFR/REMTO |
|
| ||||||
|
| instruction................................................................................... |
|
|
|
|
| M200 to 204 | ||
|
| • Normal/abnormal completion of |
|
| ||||||
|
| transmission............................................................................... |
|
|
| M300, M301 | ||||
|
| • Transmission data...................................................................... |
|
|
| D0, D1 | ||||
|
| • Buffer memory head address designation for |
|
| ||||||
|
| function....................................................................................... |
|
|
|
|
| D2 | ||
|
| • Data length designation for | ...................... | D3 | ||||||
|
| • |
| D8 | ||||||
|
| • LED ON status and communication error status on CH1 side |
|
| ||||||
|
| ................................................................................................... |
|
|
|
|
|
| D9 | |
| (b) Intelligent function module switch settings (Refer to Section 4.5.2) | |||||||||
|
|
|
|
|
|
|
|
|
|
|
Switch No. |
| Bit |
| Description |
|
|
| Setting | ||
Position | Designated value |
|
|
|
| value | ||||
|
|
|
|
|
|
| ||||
| b0 |
| OFF |
| Operation setting |
|
| Independent |
|
|
| b1 |
| ON |
| Data bit |
|
| 8 bits |
|
|
| b2 |
| OFF |
| Parity bit |
|
| No |
|
|
| b3 |
| OFF | Transmission | Even/odd parity |
|
| Odd |
|
|
Switch 1 | b4 |
| OFF | setting | Stop bit |
|
| 1 bit |
| 07E2H |
| b5 |
| ON |
| Sum check code |
|
| Yes |
|
|
| b6 |
| ON |
| Write during RUN |
|
| Enabled |
|
|
| b7 |
| ON |
| Setting modifications |
|
| Enabled |
|
|
| b8 to b15 |
| — | Communication rate setting |
|
| 19200bps |
|
| |
Switch 2 |
| — | Communication protocol setting |
| MC protocol format 1 |
| 0001H | |||
Switch 5 |
| — | Station number setting |
|
| Station 0 |
| 0000H | ||
| (c) Buffer memory settings used in this example |
|
|
|
| |||||
|
|
|
|
|
|
|
|
| ||
Address Decimal (Hexadecimal) |
|
| Name |
|
|
| Setting | |||
| CH1 |
|
|
|
|
|
| value | ||
|
|
|
|
|
|
|
|
| ||
| 150 (96H) |
| Word/byte units designation |
|
|
|
|
| Word units | |
| 160 (A0H) |
| Buffer memory head address designation for |
| 0C00H | |||||
| 161 (A1H) |
| Data length designation for |
|
|
| 2 | |||
| 513 (201H) |
| LED ON status and communication error status on CH1 side |
|
|
| — | |||
| 598 (256H) |
|
|
|
|
|
| — |
App. - 35 | App. - 35 |