(Cj1M-Cpu21/22/23 Only) - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

2. Summary of Instructions
2-2-20 High-speed Counter and Pulse Output Instructions

(CJ1M-CPU21/22/23 Only)

Instruction
Symbol/Operand
Mnemonic
Code
MODE CONTROL
INI
@INI
880
P: Port specifier
C: Control data
NV: 1st word with
new PV
HIGH-SPEED
COUNTER PV
READ
PRV
@PRV
881
P: Port specifier
C: Control data
D: 1st destination
word
COUNTER FRE-
QUENCY CON-
VERT
PRV2
883
(CJ1M CPU Unit
Ver. 2.0 or later)
C1: Control data
C2: Pulses/revo-
lution
D: 1st destination
word
COMPARISON
TABLE LOAD
CTBL
@CTBL
882
P: Port specifier
C: Control data
TB: 1st compari-
son table word
SPEED OUTPUT
SPED
@SPED
885
P: Port specifier
M: Output mode
F: 1st pulse fre-
quency word
SET PULSES
PULS
@PULS
886
P: Port specifier
T: Pulse type
N: Number of
pulses
96
INI(880) is used to start and stop target value comparison, to
INI
change the present value (PV) of a high-speed counter, to
change the PV of an interrupt input (counter mode), to change
P
the PV of a pulse output, or to stop pulse output.
C
NV
PRV(881) is used to read the present value (PV) of a high-
PRV
speed counter, pulse output, or interrupt input (counter mode).
P
C
D
Reads the pulse frequency input from a high-speed counter and either
PRV2
converts the frequency to a rotational speed (number of revolutions) or
converts the counter PV to the total number of revolutions. The result is
C1
output to the destination words as 8-digit hexadecimal. Pulses can be
input from high-speed counter 0 only.
C2
D
CTBL(882) is used to perform target value or range comparisons for
CTBL
the present value (PV) of a high-speed counter.
P
C
TB
SPED(885) is used to specify the frequency and perform pulse output
SPED
without acceleration or deceleration.
P
M
F
PULS(886) is used to set the number of pulses for pulse output.
PULS
P
T
N
Function
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
Output
727
Required
Output
730
Required
Output
735
Required
Output
738
Required
Output
742
Required
Output
746
Required

Advertisement

Table of Contents
loading

Table of Contents