Technical data

SINAUT TD7 software package for the CPU
2.4 Basic blocks
Software
System Manual, 07/2009, C79000-G8976-C222-07
215
tool ’Subscriber Administration’ and the option for compiling the 'SINAUT TD7 Blocks for the
CPUs' is marked as active.
Note
The FC BasicTask must always be called as the first block in the cyclic SINAUT program (in
OB1).
Explanation of the parameters
Name: UserFC
Declaration: INPUT
Data type: INT
Explanation: Number of a user FC for user-specific processing of received SINAUT
messages.
Range of
values:
0 or 1 ... 32000
0 = Dummy value in case no user FC is
available for the specified purpose.
1 ... 32000 = Number of the user FC.
The maximum number possible
depends on the CPU where the
SINAUT program will run.
If a user FC is specified, this FC will be called automatically by the SINAUT program each
time a message is received. At the time of the call, the received message is still in the
receive buffer of the communication DB. The user program in the user FC can read the
received message from the receive buffer and process it as necessary, for example,
transfer it to a temporary buffer.
The number of the current communication DB can be read by the user program from DW60
of DB BasicData (symbolic address: CurrentComDB).
As soon as the communications DB is opened, the beginning of the receive message in the
receive buffer can be found with the pointer in DW10 (symbolic address:
CurrentReceivedMessage).
There is a separate description of the structure of a message available in the receive
buffer.