1171
CS/CJ/NSJ Series Instructions Reference Manual (W474)
4. Instruction Execution Times and Number of Steps
4-1 CJ2 CPU Unit Instruction Execution Times and Number of Steps
4
4-1-37 Function Block Instance Execution Time
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
Contents CJ2 CPU Units
m Call part --- 57 steps
n I/O parameter
transfer part
The data type is
shown in parenthe-
ses.
1-bit (BOOL) input symbol
or output symbol
6 steps
1-word (INT, UINT,
WORD) input symbol or
output symbol
6 steps
2-word (DINT, UDINT,
DWORD, REAL) input
symbol or output symbol
6 steps
4-word (LINT, ULINT,
LWORD, LREAL) input
symbol or output symbol
18 steps
I/O symbols 6 steps
p Number of instruc-
tion steps in func-
tion block definition
The total number of instruction steps (same as standard
user program) + 27 steps.