Communication
FP
Σ
User's Manual
190
1. Setting the communication parameters (see "Setting Communication Parameters" on
page 188)
2. Generating the data in the send buffer
To generate the data in the send buffer, define a variable in the program and copy the data to
the send buffer using a transfer instruction, e.g. F10_BKMV.
The storage area for the data to be sent starts with the second word of the send buffer (offset
1). Offset 0 contains the number of bytes to be sent.
1
Storage area for the number of bytes to be sent
0
1
2
n
Offset
2
1
3
4
2n
2n-1
2
Storage area for the data to be sent
Bold numbers indicate the order of transmission.
The maximum volume of data that can be sent is 2048 bytes.
EXAMPLE
Define a send buffer for 30 bytes (ARRAY [0...15] OF WORD) and copy 8 characters of a
string ("ABCDEFGH") into the buffer.
Send buffer layout:
0
1
2
4
16#42(B)
16#41(A)
16#44(D) 16#43(C)
16#48(H) 16#47(G)
16#46(F)
16#45(E)
8
3
Offset
15
The first word of the send buffer (offset 0) is reserved for the number of bytes to be sent.
Therefore, copy the data into offset 1 (
SendBuffer[1])
.
When sending begins (the execution condition for F159_MTRN turns to TRUE), the value in
offset 0 is set to 8. At the end of transmission, the value in offset 0 is automatically reset to 0.
The data in offset 1 to offset 4 is sent in order from the low order byte.
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...