The following picture shows the basic structure for programming a receive command.
This structure can be used for all protocols.
10.1.5 FB 1 - RECEIVE_ASCII - Receiving with defined length from PtP
Please note that this block can only be used in CPUs from VIPA or in
S7-300 CPUs from Siemens!
This FB collects the data, which are received via the internal serial interface in PtP opera-
tion and copies them into the telegram buffer specified by EMPF_PUFFER. If the entire
telegram was received EMPF_FERTIG is set and the FB is left. The reading of the data
may require several FB calls. The next telegram is only be read, if the bit EMPF_FERTIG
was reset by the user. With this FB only telegrams with fix length can be received.
Parameter
Parameter Declaration Data type Description
EMPF_PUFFER IN ANY Pointer to DB in which the received telegram is
transmitted.
ER_BYTE OUT WORD Error code
EMPF_FERTIG IN_OUT BOOL Status
Principles of programming
Description
VIPA SPEED7
Serial Communication
Serial communication > FB 1 - RECEIVE_ASCII - Receiving with defined length from PtP
HB00 | OPL_SP7 | Operation list | en | 18-30 215