Function Description
The RCV_TLG
function is used to read telegram-type
data from a remote application.
The data received must be a maximum of 16 bytes in length. Unlike the other communication functions, this function is processed immediately (synchronous): there are therefore no activity bit and timeout parameters.
The integer table assigned to the management parameters therefore only uses two words instead of four (the exchange and timeout numbers being unnecessary).
The additional parameters EN
and ENO
can be configured.
FBD representation
Representation:

LD representation
Representation:

IL representation
Representation:
LD Management_Param
RCV_TLG Address, Received_Data
ST representation
Representation:
RCV_TLG(Management_Param, Address, Received_Data);
Parameter Description
The following table describes the input/output parameters:
Parameter |
Type |
Comment |
---|---|---|
|
ARRAY [0.. 1] OF |
Table of words used to manage the exchange. This table is made up of 2 words: the report word and the word indicating the amount of data received (in number of bytes). The report comprises:
The communication report takes one of the following values:
|
The following table describes the output parameters:
Parameter |
Type |
Comment |
---|---|---|
|
|
Address of the entity transmitting the telegram at the end of the exchange.
|
|
ARRAY [n... m] OF |
Receive buffer. Integer table containing the data received. This table must be a maximum of 8 integers (16 bytes) in length. |