Number of Function Block Program Steps and Instance Execution Time
2-8-2
Function Block Instance Execution Time (CPU Units with Unit
Version 3.0 or Later)
Operation
A
Startup time
B
I/O parameter trans-
fer processing time
The data type is
indicated in paren-
theses.
C
Function block defi-
nition instruction
execution time
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) × 6 steps + 100 steps + 27 steps
= 244 steps
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 using CS/CJ-series CPU Units with
unit version 3.0 or later.
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.
Startup time not including
I/O parameter transfer
1-bit I/O variable (BOOL) 0.4 µs
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: CS1H-CPU63H
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) × 0.3 µ s + 10 µ s = 18.3 µ s
Contents
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.
CPU Unit model
CS1H-CPU6@H
CS1G-CPU4@H
CJ1H-CPU6@H
CJ1G-CPU4@H
6.8 µs
8.8 µs
0.7 µs
0.3 µs
0.6 µs
0.5 µs
0.8 µs
1.0 µs
1.6 µs
Section 2-8
CS/CJ-series CPU Units
with unit version 3.0 or later
57 steps
6 steps
6 steps
6 steps
12 steps
CJ1M-CPU@@
15.0 µs
1.0 µs
0.8 µs
1.1 µs
2.2 µs
109
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?
Questions and answers