1161
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-18 Subroutine Instructions
4-1-18 Subroutine Instructions
4-1-19 Interrupt Control Instructions
4-1-20 High-speed Counter and Pulse Output Instructions (When a Pulse
I/O Module Is Connected)
Instruction Mnemonic Length
(steps)
ON execution time (µs) Conditions
CJ2H
CPU6@(-EIP)
CJ2M CPU@@
SUBROUTINE CALL SBS 2 0.90 2.8 ---
SUBROUTINE ENTRY SBN 2 2.8 4.1 ---
SUBROUTINE RETURN RET 1 0.43 2.0 ---
MACRO MCRO 4 16.8 21.7 ---
GLOBAL SUBROUTINE
RETURN
GSBS 2 0.90 2.8 ---
GLOBAL SUBROUTINE
CALL
GSBN 2 2.7 3.6 ---
GLOBAL SUBROUTINE
ENTRY
GRET 1 0.43 2.0 ---
Instruction Mnemonic Length
(steps)
ON execution time (µs) Conditions
CJ2H
CPU6@(-EIP)
CJ2M CPU@@
SET INTERRUPT MASK MSKS 3 10.6 22.1 ---
READ INTERRUPT MASK MSKR 3 9.6 14.8 ---
CLEAR INTERRUPT CLI 3 10.1 21.6 ---
DISABLE INTERRUPTS DI 1 10.3 20.4 ---
ENABLE INTERRUPTS EI 1 9.3 16.0 ---
Instruction Mnemonic Length
(steps)
ON execution time (µs) Conditions
CJ2H
CPU6@(-EIP)
CJ2M CPU@@
MODE CONTROL INI 4 --- 7.4 Starting high-speed
counter comparison
--- 4.0 Stopping high-
speed counter com-
parison
--- 9.9 Changing pulse out-
put PV
--- 8.0 Changing high-
speed counter PV
--- 5.0 Changing PV of
interrupt input in
counter mode
--- 9.2 Stopping pulse out-
put
--- 5.2 Stopping PWM(891)
output
--- 48.2 Changes origin
search/return set-
tings