Data transfer via communication ports
ClearReceiveBuffer
This instruction resets the receive buffer to be ready for the next data at the port number Port.
Description
The "reception done" flag turns to FALSE.
see see page 1318
PLC types
Data types
Variable
Port
Operands
For
WX
Port
Error flags
No.
IEC address
%MX0.900.11
R900B
%MX0.900.9
R9009
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.
LD
754
Reset the receive buffer
Data type
Function
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:
ANY16
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)
Relay
T/C
WY
WR
WL
SV
Set
for an instant
for an instant
and FP2, FP2SH (V1.4 or later):
Register
EV
DT
LD
FL
If
the communication port specified by Port
does not exist.
Constant
dec. or hex.