n The DONE output shows ”request completed without errors”. If there was an ERROR,
the corresponding event number is displayed in the STATUS. If no error occurs the
value of STATUS is "0".
n DONE and ERROR/STATUS are also output in response to a RESET of the FB. In
the event of an error, the binary result BR is reset. If the block is terminated without
errors, the binary result has the status "1".
n Please regard the parameter DONE, ERROR and STATUS are only available at one
block call. For further evaluation these should be copied to a free data area.
With LADDR the address of the corresponding CP is specified. This is the address, which
was specified by the hardware configuration of the CP. Please regard that the base
address for input and output of the CP are identical.
The FB 8 - P_SND_RK deals with an Instance DB I_SND_RK. This has a length from
62byte. The DB no. is transmitted with the call. It is not allowed to access the data of an
instance DB.
10.2 CP040
10.2.1 Overview
n By a cyclic call of FB 60 SEND and FB 61 RECEIVE or FB 65 CP040_COM data may
be cyclically sent and received by the CP.
n On the CP the transmission of the communication protocols to the communication
partner takes place, which may be configured by the hardware configuration.
n A telegram to be sent is divided into blocks in the CPU depending on the IO size and
transferred via the data channel to the CP In the CP these blocks are assembled in
the send buffer, and when the telegram is complete, the telegram is sent by the serial
interface.
n The exchange of received telegrams via the backplane bus is asynchronous.
n If a complete telegram was received via the serial interface, it is stored in a 1024byte
ring buffer. From the length of the still free ring buffer the maximum length of a tele-
gram results.
n Depending upon the parametrization up to 250 telegrams can be buffered, whereby
their overall length may not exceed 1024.
n If the buffer is full, arriving telegrams are rejected.
n A complete telegram is divided into blocks, depending on the parametrized IO size,
and transferred to the backplane bus.
n The data blocks must be assembled in the CPU.
n Since the data exchange via the backplane bus runs asynchronously, a software
handshake is used between the CP and the CPU. For this, both handling blocks have
the common CONTROL parameter. The same flag byte is to be used for this param-
eter.
Error indication
Addressing
Data area
Communication principle
VIPA SPEED7
Serial Communication
CP040 > Overview
HB00 | OPL_SP7 | Operation list | en | 18-30 219