Flag Operation - Panasonic FP0R User Manual

Programmable controllers
Hide thumbs Also See for FP0R:
Table of Contents

Advertisement

6.6.5 Flag operation

"Reception done" flag
FP0R User's Manual
Program controlled communication provides for half duplex communication,
i.e. communication is possible in both directions, but not simultaneously.
Sending data can be controlled by the "transmission done" flag. The end of
reception can be verified by:
evaluating the "reception done" flag or by executing IsReceptionDone
executing IsReceptionDoneByTimeOut
directly evaluating the receive buffer.
The flags are special internal flags which turn to TRUE or to FALSE under
specific conditions. They can be evaluated using special functions or system
variables.
When the end code is received, the "reception done" flag turns to TRUE.
Reception of any further data is prohibited. F159_MTRN turns the "recep-
tion done" flag to FALSE.
The "reception done" flag can be evaluated using the IsReceptionDone
function. Or use the system variable sys_bIsComPort1ReceptionDone or
sys_bIsToolPortReceptionDone, depending on the port. The end of recep-
tion can also be determined by time-out using the IsReceptionDone-
ByTimeOut 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 flag should be
copied to a variable at the beginning of the program.
Port name
TOOL
Port number
0
Special internal
R903E
flag
Function name
IsReceptionDone
System variable
sys_bIsToolPortReceptionDone sys_bIsComPort1ReceptionDone
name
Bit status
TRUE
Communication
COM1
1
R9038
133

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents