APPENDIX
Appendix 9.7 When sending data using user frames
The following program example sends data by the user frames using the REMFR/REMTO instruction and I/O signals.
Refer to Section 11.4 of the User's Manual (Application) for the transmission using the user frames.
(1) Program conditions
The following program sends data using the user frames from the CH1 side when the transmission signal (X1026) turns ON.
(a) Devices used:
• Transmission command ......................................................... | X1026 |
• Transmission command pulse signal..................................... | M10 |
• Transmission user frame designation command................... | M11 |
• Transmission result acquisition command............................. | M12 |
• Completion device for REMFR/REMTO instruction .............. | M100 to 105 |
• Normal/abnormal completion flag for REMFR/REMTO |
|
instruction................................................................................ | M200 to 203 |
• Normal/abnormal completion of transmission........................ | M300, M301 |
• Transmission data count ........................................................ | D0 |
• Transmission data................................................................... | D1, D2 |
• CR/LF output designation....................................................... | D5 |
• Output head pointer designation ............................................ | D6 |
• Output count designation........................................................ | D7 |
• Output frame No. designation ................................................ | D8 to D12 |
• Data transmission result ......................................................... | D20 |
(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 | 07C2H | |
| b5 | OFF |
| Sum check code |
| No |
| |
| b6 | ON |
| Write during RUN |
| Enabled |
| |
| b7 | ON |
| Setting modifications |
| Enabled |
| |
| b8 to b15 | — | Communication rate setting |
| 19200bps |
| ||
Switch 2 |
| — | Communication protocol setting |
| 0006H | |||
Switch 5 |
| — | Station number setting |
|
| Station 0 | 0000H |
App. - 43 | App. - 43 |