EasyManua.ls Logo

Panasonic FP Series

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Data transfer via communication ports
762
Part III FP Instructions
IsReceptionDone
ByTimeout
Evaluation of "reception done" condition by time-out for all ports
The output IsDone is set to TRUE if the receive buffer is not empty and no more characters are
received before the time-out specified at TimeOutForCPU.
Using this function block, connect the first word of the receive buffer to NoOfBytesReceived
(number of bytes received).
If a communication port of an MCU is selected, the MCU's "reception done" flag (see page 757) is
evaluated. The timeout for this communication port must be ente
red via the "MCU Setting" dialog or
during RUN mode via F159_MWRT_PARA (see page 719).
Input variable Data type Function
Port ANY16 Communication port
Must be a constant
FP-X, FP and FP2, FP2SH (V1.4 or later):
PLC communication ports:
Value: SYS_COM1_PORT or SYS_COM2_PORT or
SYS_TOOL_PORT
MCU communication port:
Value: 16#xx01 (COM1), 16#xx02 (COM2)
xx = slot number (hexadecimal) of the MCU (e.g. 16#0001: COM1 in slot
0, 16#0A02: COM2 in slot 10, 16#1401: COM1 in slot 20)
Other PLCs:
The command will be compiled to F144_TRNS, which works on the
COM port of the CPU (the parameter d_Port will be ignored)
TimeOutForCPU TIME Set the time-out. If no further data is received before the time-out,
reception is done and IsDone is set to TRUE.
NoOfBytesReceived ANY16 Connect the start address of the receive buffer. This address contains
the number of bytes received.
Output variable
IsDone BOOL Indicates that one or more bytes have been received and the number of
bytes received was constant as specified in TimeOutForCPU.
Description
Depending on the PLC type and the input parameter Port, this function evaluates the "reception
done" condition if no end code is expected in the data stream, e.g when transferring binary data.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals