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
Applications
CPU 948 Programming Guide
C79000-G8576-C848-04
10 - 61
Содержание CPU 948
Страница 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Страница 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Страница 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Страница 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Страница 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Страница 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Страница 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Страница 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Страница 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Страница 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Страница 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Страница 404: ...Operations with the Base Address Register BR Register CPU 948 Programming Guide 9 34 C79000 G8576 C848 04 ...
Страница 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Страница 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Страница 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Страница 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Страница 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...