Flag Operation In Program Controlled Communication - Panasonic FPS Series User Manual

Table of Contents

Advertisement

Communication
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
Port
name
number
TOOL
0
COM1
1
COM2
2
198
Special
internal
Function name
relay
R903E
R9038
IsReceptionDone
R9048
System variable name
sys_bIsToolPortReceptionDone
sys_bIsComPort1ReceptionDone
sys_bIsComPort2ReceptionDone
FPΣ User's Manual
Bit
status
TRUE

Advertisement

Table of Contents
loading

Table of Contents