Block library TeleControl ST7
5.7 Master copies
TIM 1531 IRC
256
Operating Instructions, 02/2018, C79000-G8976-C468-02
Function
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.
Parameter
Name:
UserFC
Declaration: INPUT
Data type:
INT
Range of val-
ues:
•
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.
Explanation: 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
all 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 received
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.
5.7.3.2
DB BasicData
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.
Содержание TIM 1531 IRC
Страница 262: ...Block library TeleControl ST7 5 7 Master copies TIM 1531 IRC 262 Operating Instructions 02 2018 C79000 G8976 C468 02 ...
Страница 302: ...Dimension drawings TIM 1531 IRC 302 Operating Instructions 02 2018 C79000 G8976 C468 02 ...
Страница 322: ...Documentation references 13 TIM 1531 IRC 322 Operating Instructions 02 2018 C79000 G8976 C468 02 ...
Страница 336: ...Glossary TIM 1531 IRC 336 Operating Instructions 02 2018 C79000 G8976 C468 02 ...