Instruction Execution Times And Number Of Steps - Omron CJ2 CPU UNIT SOFTWARE User Manual

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

Advertisement

Appendices
A-2
Instruction Execution Times and
Number of Steps
The following table lists the execution times for all instructions that are supported by the CPU Units.
The total execution time of instructions within one whole user program is the process time for program
execution when calculating the cycle time (*1).
*1 User programs are allocated tasks that can be executed within cyclic tasks and interrupt tasks that satisfy inter-
rupt conditions.
Execution times for most instructions differ depending on the CPU Unit used and the conditions when
the instruction is executed.
The execution time can also vary when the execution condition is OFF.
The following table also lists the length of each instruction in the Length (steps) column. The number of
steps required in the user program area for each instructions depends on the instruction and the oper-
ands used with it.
The number of steps in a program is not the same as the number of instructions.
Note 1 Most instructions are supported in differentiated form (indicated with ↑, ↓, @, and %).
Specifying differentiation will increase the execution times by the following amounts.
Symbol
↑ or ↓
@ or %
2 Use the following time as a guideline when instructions are not executed.
CJ2H-CPU6@(-EIP)
0.016
Execution times will vary somewhat depending on the order in which instructions are executed and
on whether instructions are executed. Use the following formula to calculate the maximum variation
for a worst-case scenario.
CJ2H CPU Units: Number of instruction steps × 0.016 (µs)
CJ2M CPU Units: Number of instruction steps × 0.020 (µs)
A-80
CJ2H-CPU6@(-EIP)
+0.24
+0.24
(unit: µs)
CJ2 CPU Unit
CJ2M-CPU@@
0.020
(unit: µs)
CJ2 CPU Unit
CJ2M-CPU@@
+0.32
+0.32
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents