Siemens CPU 948 Programming Manual page 465

Simatic s5 s5-155u
Table of Contents

Advertisement

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
(1)
(2)
(3)
(4)
(5)
CPU 948 Programming Guide
C79000-G8576-C848-04
FB 110
TRAN-DAT
STAR
RCPU
TNDB
NUMB
FIRB
ERRO
(6)
REST
(7)
CUBN
(8)
EDGF
(9)
Continued on the next page
Applications
10 - 61

Advertisement

Table of Contents
loading

Table of Contents