FPΣ User's Manual 
 
8.6 Program Controlled Communication 
199 
"Transmission done" flag 
When the specified number of bytes has been sent, the "transmission done" flag turns to 
TRUE. New data may be sent or received. F159_MTRN turns the "transmission done" flag to 
FALSE. While F159_MTRN is executed, no data can be received. 
The "transmission done" flag can be evaluated using the IsTransmissionDone function. Or 
use the system variable sys_bIsComPort1TransmissionDone, 
sys_bIsComPort2TransmissionDone, or sys_bIsToolPortTransmissionDone, depending on 
the port. 
Port 
name 
Port 
number 
Special 
internal 
relay 
Function name  System variable name 
Bit 
status 
TOOL 0  R903F  sys_bIsToolPortTransmissionDone 
COM1 1  R9039  sys_bIsComPort1TransmissionDone 
COM2 2  R9049 
IsTransmissionDone 
sys_bIsComPort2TransmissionDone 
TRUE 
Communication error flag 
If the communication error flag turns to TRUE during reception, reception continues. Execute 
F159_MTRN to turn the error flag to FALSE and to move the write pointer back to offset 1. 
The communication error flag can be evaluated using the IsCommunicationError function. Or 
use the system variable sys_bIsComPort1CommunicationError, 
sys_bIsComPort2CommunicationError, or sys_bIsToolPortCommunicationError, depending 
on the port. 
Port 
name 
Port 
number 
Special 
internal 
relay 
Function name  System variable name 
Bit 
status 
TOOL 0  R900E  sys_bIsToolPortCommunicationError 
COM1 1  R9037  sys_bIsComPort1CommunicationError 
COM2 2  R9047 
IsCommunicationErro
r 
sys_bIsComPort2CommunicationError 
TRUE