Function Block Instance Execution Time - Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Function Block Instance Execution Time

4-2
Function Block Instance Execution Time
A
Startup time
B
I/O parameter transfer
processing time
The data type is indi-
cated in parentheses.
C
Function block definition
instruction execution
time
Note
Number of Function Block
Program Steps
Note
1088
Use the following equation to calculate the effect of instance execution on the
cycle time when function block definitions have been created and the
instances copied into the user program.
Effect of Instance Execution on Cycle Time
= Startup time (A)
+ I/O parameter transfer processing time (B)
+ Execution time of instructions in function block definition (C)
The following table shows the length of time for A, B, and C.
Operation
Startup time not including I/O
parameter transfer
1-bit I/O variable (BOOL)
1-word I/O variable (INT,
UINT, WORD)
2-word I/O variable (DINT,
UDINT, DWORD, REAL)
4-word I/O variable (LINT,
ULINT, LWORD, LREAL)
Total instruction processing time (same as standard user program)
Example:
Input variables with a 1-word data type (INT): 3
Output variables with a 1-word data type (INT): 2
Total instruction processing time in function block definition section: 10 s
Execution time for 1 instance = 6.8 s + (3 + 2)
The execution time is increased according to the number of multiple instances
when the same function block definition has been copied to multiple locations.
Use the following equation to calculate the number of program steps when
function block definitions have been created and the instances copied into the
user program.
Number of steps
= Number of instances (Call part size m + I/O parameter transfer part size n
ber of parameters) + Number of instruction steps in the function block definition p
(See note.)
The number of instruction steps in the function block definition (p) will not be
diminished in subsequence instances when the same function block definition
is copied to multiple locations (i.e., for multiple instances). Therefore, in the
CP1H CPU Unit
CP1L CPU Unit
6.8 s
320.4 s
0.4 s
59.52 s
0.3 s
13.16 s
0.5 s
15.08 s
1.0 s
30.16 s
0.3 s + 10 s = 18.3 s
Section 4-2
Num-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents