Block library TeleControl ST7
5.7 Master copies
TIM 1531 IRC
256 Operating Instructions, 02/2018, C79000-G8976-C468-02
The block is required in every CPU. It handles the following tasks:
● Central tasks during startup
● The processing of all communication mailboxes
● Central organizational tasks such as starting, monitoring and answering general requests.
Call FC BasicTask as the first block in OB1.
l-
1 ... 32000
Number of the FC
The maximum possible number depends on the CPU.
0
Substitute value if there is no FC present for the specified purpose.
Number of a user FC for specific further processing of the received data.
If an FC is specified, this FC is called automatically by the user program with
al
l received data. At the time of the call, the receive frame is still in the re-
ceive mailbox of the communication DB.
The program in the user FC can read the receive frame from the receive
mailbox and process it further in any way required, e.g. write the r
eceived
data to an intermediate buffer.
Using the user program, the required information on the communication DB
can be read from the DB BasicData via the "CurrentComDB" tag in DW60.
CurrentComDB contains the following information:
S7-1500
Index of the current BConnection instance in the DB BConnectData
S7-300/400
Number of the current communication DB
In the opened communication DB, the start of the current receive frame in the
receive mailbox can be found via the "CurrentReceivedMessage" tag in
DW10.
This data block provides the central data management. It contains information that must be
maintained centrally for all blocks. Among other things, the data block contains the
subscriber records and the connection descriptions.
DB BasicData is automatically generated in the required length preset with the subscriber
and connection specific data and then saved in the block directory of the CPU.