10.9 Applications
Based on examples, this section explains how to program
multiprocessor communication.
Note
If you use the function blocks listed below and service interrupts
on your CPU (e.g. with OB 2) remember to save the "scratchpad
flags" at the start of interrupt servicing and to write them back
when the interrupt is completed.
This also applies to the setting "interrupts at block boundaries",
since the call of the special function organization blocks
represents a block boundary.
10.9.1
Calling the Special
Function OB using
Function Blocks
The following five function blocks (FB 200 and FB 202 to FB 205)
contain the call for the corresponding special function organization block
for multiprocessor communication (OB 200 and OB 202 to OB 205).
The numbers of the function blocks are not fixed and can be changed.
The parameters of the special function OBs are transferred as actual
parameters when the function blocks are called. The direct call of the
special function organization blocks is faster, however, is more difficult
to read owing to the absence of formal parameters
FB no.
FB name
Function
FB 200
FB 202
FB 203
FB 204
FB 205
INITIAL
SEND
SEND-TST
RECEIVE
RECV-TST
Set up buffer
Send a data field
Test sending capacity
Receive a data field
Test receiving capacity
The flag area from FY 246 to maximum FY 255 is used by the function
blocks as a parameter field for the special function organization blocks.
The exact significance of the input and output parameters is explained
in the description of the special function organization blocks.
Applications
CPU 948 Programming Guide
C79000-G8576-C848-04
10 - 53
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...