Communication
FP
Σ
User's Manual
198
POU Header and LD Body
ST Body
8.6.5 Flag Operation in Program Controlled Communication
Program controlled communication provides for half duplex communication, i.e.
communication is possible in both directions, but not simultaneously. Sending can be
controlled by the "transmission done" flag. Reception can be controlled by the "reception
done" flag or by directly evaluating the receive buffer.
The flags are special internal relays which turn to TRUE or to FALSE under specific
conditions. They can be evaluated using special functions or system variables.
"Reception done" flag
When the end code is received, the "reception done" flag turns to TRUE. Reception of any
further data is prohibited. F159_MTRN turns the "reception done" flag to FALSE.
The "reception done" flag can be evaluated using the IsReceptionDone function. Or use the
system variable sys_bIsComPort1ReceptionDone, sys_bIsComPort2ReceptionDone, or
sys_bIsToolPortReceptionDone, depending on the port. The end of reception can also be
determined by time-out using the IsReceptionDoneByTimeOut function or by checking the
contents of the receive buffer.
The status of the "reception done" flag may change while a scan is being carried out. For
example, if the flag is used more than once as an input condition, different statuses may exist
within one scan. To ensure proper execution of the program, the status of the special internal
relay should be copied to a variable at the beginning of the program.
Port
name
Port
number
Special
internal
relay
Function name
System variable name
Bit
status
TOOL 0
R903E
sys_bIsToolPortReceptionDone
COM1 1
R9038
sys_bIsComPort1ReceptionDone
COM2 2
R9048
IsReceptionDone
sys_bIsComPort2ReceptionDone
TRUE
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...