FP
Σ
User's Manual
8.6 Program Controlled Communication
189
Specifying a receive buffer
For program controlled communication, a receive buffer must be specified in the DT memory
area. The maximum area is 2048 words. Specify the starting address and the capacity
(number of words). The receive buffer layout is shown below.
1
Starting address
2
Storage area for the number of bytes
received
3
Storage area for the data received
4
Capacity
0
1
2
n
Offset
The receive buffer is specified in the system registers (see page 165):
NOTE
FPWIN Pro: In order to use the data in the receive buffer, define a global
variable having the same starting address and capacity.
8.6.2 Sending
Data
to External Devices
Steps for sending data to external devices:
1.
Setting the communication parameters to match the external device
2.
Generating the data in the send buffer
3.
Sending the data using the instruction F159_MTRN
NOTE
F159_MTRN allows multiple communication ports to be accommodated. This
instruction is an updated version of F144_TRNS. Both instructions are
compatible with all PLCs: PLCs with multiple communication ports will compile
F144_TRNS s, n to F159_MTRN s_Start, n_Number, d_Port*=1. PLCs with only
one communication port will compile F159_MTRN to F144_TRNS s, n.
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...