Stage 2
Designing the program
Stage
Activity
1
Based on the improved block diagram, decide on the
types of processing required of your program (cyclic
processing, time-controlled processing etc.) and select
the OBs required for this.
2
Divide the types of processing into technological
and/or functional units.
3
Check whether the units can be assigned to a program
or function block and select the blocks you require
(PB x, FB y etc.)
4
Find out which timers, counters and data or results
memory you require.
5
Specify the tasks for each of the proposed logic blocks
and the data for flags and data blocks which may be
required. Create flow diagrams for the logic blocks.
Notes on the scope of
cyclic processing
When deciding on the types of processing, keep the following
conditions in mind:
••
The cycle must run through quickly enough. The process statuses
must not change more quickly than the CPU can react. Otherwise
the process can get out of control.
••
The maximum reaction time should be taken as twice the cycle
time.
The cycle time is determined by the cyclic processing of the
system program and the type and scope of the user program. It is
often not constant, since the cyclic user program may be
interrupted when time and interrupt-driven program sections are
called.
How to Tackle Programming
CPU 948 Programming Guide
1 - 16
C79000-G8576-C848-04
Содержание 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 ...