Omron CJ2 CPU UNIT SOFTWARE User Manual page 594

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Appendices
Example: CJ2H-CPU67-EIP
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 = 3.3 µs + (3 + 2) × 0.19 µs + 10 µs = 14.25 µs
Note The execution time is increased according to the number of multiple instances when the same function block
definition has been copied to multiple locations.
Additional Information
Number of Function Block Program Steps
Use the following equation to calculate the number of program steps when function block defini-
tions 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 × Number of parameters) +
Number of instruction steps in the function block definition p (See note.)
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 above equation, the number of instances is not multiplied by the number of instruction steps
in the function block definition (p).
m
Call part
n
I/O parameter transfer part
The data type is shown in
parentheses.
p
Number of instruction steps
in function 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
A-110
Contents
1-bit (BOOL) input symbol or output symbol
1-word (INT, UINT, WORD) input symbol or output
symbol
2-word (DINT, UDINT, DWORD, REAL) input sym-
bol or output symbol
4-word (LINT, ULINT, LWORD, LREAL) input sym-
bol or output symbol
I/O symbols
The total number of instruction steps (same as standard user pro-
gram) + 27 steps.
CJ2 CPU Units
57 steps
6 steps
6 steps
6 steps
18 steps
6 steps
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents