Panasonic FP Series Programming Manual page 763

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data transfer via communication ports
IsReceptionDone
ByTimeout
Depending on the PLC type and the input parameter Port, this function evaluates the "reception
Description
done" condition if no end code is expected in the data stream, e.g when transferring binary data.
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 entered via the "MCU Setting" dialog or
during RUN mode via F159_MWRT_PARA (see page 719).
Data types
Input variable
Port
TimeOutForCPU
NoOfBytesReceived
Output variable
IsDone
In this example the function has been programmed in ladder diagram (LD) and structured text
Example
(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.
762
Evaluation of "reception done" condition by time-out for all ports
Data type
Function
ANY16
 Communication port
 Must be a constant
FP-X, FP
 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)
TIME
Set the time-out. If no further data is received before the time-out,
reception is done and IsDone is set to TRUE.
ANY16
Connect the start address of the receive buffer. This address contains
the number of bytes received.
BOOL
Indicates that one or more bytes have been received and the number of
bytes received was constant as specified in TimeOutForCPU.
and FP2, FP2SH (V1.4 or later):

Advertisement

Table of Contents
loading

Table of Contents