7.4
Examples of Parameter Assignment
7.4.1
STEP 5 Programming
Example A:
You want to use three CPUs in the multiprocessor mode: CPU A, B and C. CPU
A and B work closely with each other, often exchange data and execute a
complicated start-up program.
CPU C executes a short, time-critical program largely independent of A and
B.
As standard, all CPUs operating in the multiprocessor mode start cyclic
program execution together, i.e. the CPUs wait for each other until they
have all completed their start-up and then change to cyclic program
execution together.
Since CPU C executes its program independently of the other CPUs and has a
very short start-up program
, there is no need to synchronize its start-up
with the others. By assigning parameters in DX 0, CPU C can start its
cyclic program immediately after completing the start-up without waiting
for CPU A and B.
The parameter for synchronizing the CPUs in the multiprocessor mode is the
second parameter in the first field. To maintain the order of the
parameters, the first parameter for the start up must have the default
value (AUTOMATIC WARM RESTART after POWER UP).
Program DX 0 for CPU C as follows:
DX 0
Start ID "MASKX0"
DW 0:
KH = 4D41
DW 1:
KH = 534B
DW 2:
KH = 5830
1st field ID/length
DW 3:
KH = 0202
Parameter 1
DW 4:
KH = 1000
Parameter 2
DW 4:
KH = 2001
End ID
DW 5:
KH = EEEE
Once you have loaded this DX 0 in the program memory, it becomes effective
at the next COLD RESTART. Since CPU C runs through a very short start-up
program and does not wait for A and B, its green RUN LED lights up
immediately following start-up. The BASP signal (disable command output)
is, however, only deactivated when all three CPUs have completed their
start-up. This means that CPU C cannot access the digital I/Os.
Examples of Parameter Assignment
CPU 948 Programming Guide
7 - 12
C79000-G8576-C848-04
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 ...