Omron SYSMAC CS Series Instruction & Reference Manual page 71

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Classification
Instruction
Mnemonic
Subroutines SUBROUTINE
SBS/
CALL
@SBS
MACRO
MCRO/
@MCRO
SUBROUTINE
SBN
ENTRY
SUBROUTINE
RET
RETURN
GLOBAL SUB-
GSBS/
ROUTINE CALL
@GSBS
GLOBAL SUB-
GSBN
ROUTINE
ENTRY
GLOBAL SUB-
GRET
ROUTINE
RETURN
Interrupt
SET INTER-
MSKS/
Control
RUPT MASK
@MSKS
Instructions
READ INTER-
MSKR/
RUPT MASK
@MSKR
CLEAR INTER-
CLI/
RUPT
@CLI
DISABLE
DI/
INTERRUPTS
@DI
ENABLE
EI
INTERRUPTS
High-speed
MODE CON-
INI/
Counter/
TROL
@INI
Pulse
Output
Instructions
HIGH-SPEED
PRV/
COUNTER PV
@PRV
READ
COUNTER
PRV2
FREQUENCY
CONVERT
REGISTER
CTBL/
COMPARISON
@CTBL
TABLE
SPEED OUT-
SPED/
PUT
@SPED
SET PULSES
PULS/
@PULS
PULSE OUT-
PLS2/
PUT
@PLS2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Fun
Function
code
091
Calls the subroutine with the
specified subroutine number and
executes that program.
099
Calls the subroutine with the speci-
fied subroutine number and exe-
cutes that program using the input
parameters in S to S+3 and the out-
put parameters in D to D+3.
092
Indicates the beginning of the
subroutine program with the spec-
ified subroutine number.
093
Indicates the end of a subroutine
program.
750
Calls the global subroutine with
the specified subroutine number
and executes that program.
751
Indicates the beginning of the glo-
bal subroutine program with the
specified subroutine number.
752
Indicates the end of a subroutine
program.
690
Controls interrupts.
692
Reads the current interrupt con-
trol settings that were set with
MSKS(690).
691
Clears/retains recorded interrupt
inputs, sets the time to the first
scheduled interrupt for scheduled
interrupt tasks.
693
Disables execution of all interrupt
tasks except the power OFF inter-
rupt task for part of a program.
694
Enables execution of all interrupt
tasks that were disabled with
DI(693).
880
INI(880) is used to start and stop
comparison for a comparison
table, to change the present value
(PV) of a high-speed counter, to
change the PV of an input inter-
rupt in counter mode, to change
the maximum value of the ring
counter (CJ2M only), to change
the PV of a pulse output (e.g., to 0
to establish the origin), to stop
pulse output, or to change the set-
tings for origin searches/returns
(CJ2M only).
881
PRV(881) reads the High-speed
counter PV and pulse output PV
and interrupt input PV in counter
mode.
883
Reads the pulse frequency input
from a high-speed counter and
either converts the frequency to a
rotational speed (number of revo-
lutions) or converts the counter
PV to the total number of revolu-
tions. The result is output to the
destination words as 8-digit hexa-
decimal. The frequency measure-
ment function can be used with
high-speed counter 0 only.
882
CTBL(882) is used to register a
comparison table and perform
comparisons for a high-speed
counter PV.
885
SPED(885) is used to set the out-
put pulse frequency for a specific
port and start pulse output without
acceleration or deceleration.
886
PULS(886) is used to set the
pulse output amount (number of
output pulses).
887
PLS2(887) outputs a specified
number of pulses to the specified
port. Pulse output starts at a
specified startup frequency,
accelerates to the target fre-
quency at a specified acceleration
rate, decelerates at the specified
deceleration rate, and stops at
approximately the same fre-
quency as the startup frequency.
2. Instructions (Applicable CPU Units)
CJ1M
CJ1-H/
CJ2H
CJ2M
CS1-H
-CPU1@ -CPU2@
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
---
Ver.
---
---
OK
2.0 or
later
---
Ver.
---
---
OK
2.0 or
later
---
Ver.
---
---
Ver.
2.0 or
2.0 or
later
later
---
Ver.
---
---
OK
2.0 or
later
---
Ver.
---
---
OK
2.0 or
later
---
Ver.
---
---
OK
2.0 or
later
---
Ver.
---
---
OK
2.0 or
later
CS1D
CJ1/
Page
CS1
-SA/S
-HA/H
OK
OK
OK
604
OK
OK
OK
610
OK
OK
OK
613
OK
OK
OK
613
OK
OK
---
616
OK
OK
---
622
OK
OK
---
622
OK
---
OK
628
OK
---
OK
634
OK
---
OK
639
OK
OK
OK
643
OK
OK
OK
645
---
---
---
647
---
---
---
653
---
---
---
659
---
---
---
662
---
---
---
669
---
---
---
673
---
---
---
675
37
2

Advertisement

Table of Contents
loading

Table of Contents