Technical data

FB 110 continued:
If, however, the REST output parameter has a value greater than zero,
this means that the function block must be called again, for example in
the next cycle. This means that you or the user program can only change
the set parameters (i.e. the values of all parameters) when the REST
parameter indicates zero showing that the data transfer is complete.
You can call the function block TRANDAT several times with different
parameters. In this case, various data areas are transferred
simultaneously (interleaved in each other). The special function
organization blocks for multiprocessor communication OB 202 to OB 205
can also be used "directly". This possibly is illustrated in the
application example.
If the SEND function (OB 202) is not correctly executed with the TRANDAT
function block, the error number is entered in the output parameter ERRO,
the RLO = ’1’ and the output parameter REST is set to ’0’.
The TRANDAT function block uses flag bytes FY 246 to FY 251 as
scratchpad flags. All other variables whose value is significant as long
as the output parameter REST = ’0’ continue to have memory assigned to
them using the mechanism of formal/actual parameters. This is necessary
to allow various data blocks to be transferred simultaneously.
Implementation
FB 110
TRAN-DAT
(1) STAR ERRO (6)
(2) RCPU REST (7)
(3) TNDB CUBN (8)
(4) NUMB EDGF (9)
(5) FIRB
Continued on the next page
10
Applications
CPU 928B Programming Guide
C79000-B8576-C898-01
10 - 59