Communication
FP
Σ
User's Manual
194
communication port from an external device, operation takes place as follows. (The "reception
done" flag turns to FALSE after switching to RUN mode.)
•
Incoming data is stored in the receive buffer. Start and end codes are not stored in the
receive buffer. The storage area for the data received starts with the second word of
the receive buffer (offset 1). Offset 0 contains the number of bytes received. The initial
value of offset 0 is 0.
1
Storage area for the number of bytes
received
0
1
2
n
Offset
2
1
3
4
2n
2n-1
2
Storage area for the data received
Bold numbers indicate the order of reception.
•
When the end code is received, the "reception done" flag turns to TRUE. Reception of
any further data is prohibited. The "reception done" flag only turns to TRUE if an end
code, e.g. CR, has been selected in the system registers.
3. Processing the data in the receive buffer
•
Verify the end of reception.
•
Copy the data in the receive buffer to a target area defined in the program using a
transfer instruction, e.g. F10_BKMV.
NOTE
For details on the operation of the "reception done" flag, see page 198
4. Preparing the system for the reception of further data
In order to receive the next data, reset the receive buffer. This is done automatically when
sending the next data with F159_MTRN:
•
Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and
moves the write pointer back to offset 1. Subsequent data will be stored in the receive
buffer starting at offset 1. (The receive buffer is not cleared).
•
The "reception done" flag turns to FALSE.
To reset the receive buffer without sending further data, execute F159_MTRN with
n_Number
= 0.
Summary of Contents for FPS Series
Page 7: ......
Page 17: ......
Page 18: ...Chapter 1 Safety Measures...
Page 21: ......
Page 22: ...Chapter 2 Overview...
Page 32: ...Chapter 3 CPU Types...
Page 47: ...CPU Types FP User s Manual 30 LD Body...
Page 51: ...CPU Types FP User s Manual 34 POU Header and LD Body...
Page 55: ...CPU Types FP User s Manual 38 LD Body...
Page 57: ......
Page 58: ...Chapter 4 Expansion...
Page 73: ......
Page 74: ...Chapter 5 I O Allocation...
Page 81: ......
Page 82: ...Chapter 6 Installation and Wiring...
Page 115: ......
Page 116: ...Chapter 7 High Speed Counter and Pulse Output...
Page 169: ......
Page 170: ...Chapter 8 Communication...
Page 227: ...Communication FP User s Manual 210 LD Body ST Body...
Page 233: ...Communication FP User s Manual 216 POU Header LD Body...
Page 236: ...FP User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2...
Page 237: ...Communication FP User s Manual 220 2 2 ST Body...
Page 266: ...Chapter 9 Security Functions...
Page 273: ......
Page 274: ...Chapter 10 Other Functions...
Page 277: ......
Page 278: ...Chapter 11 Troubleshooting...
Page 289: ......
Page 290: ...Chapter 12 Appendix...