Function Block Instance Execution Time
above equation, the number of instances is not multiplied by the number of
instruction steps in the function block definition (p).
Contents
m
Call part
n
I/O parameter
transfer part
The data type is
shown in parenthe-
ses.
p
Number of instruc-
tion steps in func-
tion block definition
Example:
Input variables with a 1-word data type (INT): 5
Output variables with a 1-word data type (INT): 5
Function block definition section: 100 steps
Number of steps for 1 instance = 57 + (5 + 5)
= 244 steps
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)
The total number of instruction steps (same as standard
user program) + 27 steps.
6 steps + 100 steps + 27 steps
Section 4-2
CP/CS/CJ-series CPU Units
57 steps
6 steps
6 steps
6 steps
12 steps
1089