High-speed Counter and Pulse Output Instructions (CJ1M-CPU21/22/23 Only)
3-19 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
only)
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
136
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
Function
Section 3-19
Location
Execution condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Need help?
Do you have a question about the CJ - PROGRAMMING MANUAL 12-2009 and is the answer not in the manual?
Questions and answers