S7-400 cycle and response times
19.1 Cycle time
S7-400H
356
System Manual, 03/2012, A5E00267695-11
19.1
Cycle time
This section describes the decisive factors in the cycle time, and how to calculate it.
Definition of cycle time
The cycle time is the time the operating system requires to execute a program, i.e. to
execute OB 1, including all interrupt times required by program parts and for system
activities.
This time is monitored.
Time slice model
Cyclic program processing, and therefore also user program processing, is based on time
slices. To demonstrate the processes, let us presume a global time slice length of exactly
1 ms.
Process image
During cyclic program processing, the CPU requires a consistent image of the process
signals. To ensure this, the process signals are read/written prior to program execution.
Subsequently, during program processing the CPU does not access the signal modules
directly when addressing the input (I) and output (O) address areas, but rather it accesses
the CPU's internal memory area containing the I/O process image.
Sequence of cyclic program processing
The table below shows the various phases in cyclic program execution.
Table 19- 1 Cyclic program processing
Step
Sequence
1
The operating system initiates the scan cycle monitoring time.
2
The CPU copies the values from the process output images to the output modules.
3
The CPU reads the status of inputs of the input modules, and then updates the process
image of the inputs.
4
The CPU processes the user program in time slices and executes the instructions
specified in the program.
5
At the end of a cycle, the operating system executes pending tasks, e.g. loading and
deleting of blocks.
6
Finally, on expiration of any given minimum cycle time, the CPU returns to the start of
the cycle and restarts cycle monitoring.
Содержание SIMATIC S7-400H
Страница 24: ...Preface 1 1 Preface S7 400H 24 System Manual 03 2012 A5E00267695 11 ...
Страница 46: ...Getting Started 4 5 Special layout features of SIMATIC Manager S7 400H 46 System Manual 03 2012 A5E00267695 11 ...
Страница 120: ...Memory concept 10 1 Overview of the memory concept of S7 400H CPUs S7 400H 120 System Manual 03 2012 A5E00267695 11 ...
Страница 258: ...Communication 14 8 General issues regarding communication S7 400H 258 System Manual 03 2012 A5E00267695 11 ...
Страница 354: ...Synchronization modules 18 3 Selecting fiber optic cables S7 400H 354 System Manual 03 2012 A5E00267695 11 ...
Страница 434: ...Technical data 20 6 Runtimes of the FCs and FBs for redundant I Os S7 400H 434 System Manual 03 2012 A5E00267695 11 ...
Страница 460: ...Function modules and communication processors supported by the S7 400H S7 400H 460 System Manual 03 2012 A5E00267695 11 ...