FP
Σ
User's Manual
8.6 Program Controlled Communication
191
POU Header and LD Body
ST Body
When the variable
bSend
is set to TRUE, the function F10_BKMV copies the characters of
the string
sSendData
to the buffer
awSendBuffer
beginning at
awSendBuffer[1]
.
The first two words of a string contain the string header information (maximum number of
characters and the current number of characters). The string header must not be copied into
the buffer. Therefore, enter an offset of 2 to the starting address of the string before copying
the data.
Make sure that the send buffer is big enough for all the data to be sent. To determine its size
you must take into account that two characters of the string
SendString
can be copied into
each element of the array
SendBuffer
.
SendBuffer[0]
is reserved for the total number of
bytes to be sent by F159_MTRN.
3. Sending the data using the instruction F159_MTRN
Execute F159_MTRN to
-
specify the amount of data to be sent
-
specify the communication port to be used
-
output the data from the communication port to the external device.
When the execution condition of F159_MTRN turns to TRUE and the "transmission done" flag
is TRUE, transmission starts. (For details on flag operation, see page 198.)
When sending data, operation is as follows:
-
The number of bytes to be sent is set in offset 0 of the send buffer.
-
The "transmission done" flag turns to FALSE.
-
The data in the send buffer is sent starting with the low order byte in offset 1.
-
The start and end codes specified in the system registers are automatically added
to the data sent.
-
During transmission, F159_MTRN cannot be executed again.
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...