A-1-20 High-Speed Counter/Pulse Output Instructions - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Appendices
Instruction
Mnemonic
Code
ENABLE
EI
694
INTER-
RUPTS
A-1-20
High-speed Counter/Pulse Output Instructions
Instruction
Mnemonic
Code
MODE CON-
INI
880
TROL
@INI
HIGH-
PRV
881
SPEED
@PRV
COUNTER
PV READ
COUNTER
PRV2
883
FRE-
@PRV2
QUENCY
CONVERT
A-56
Symbol/Operand
Enables execution of all interrupt tasks that were disabled
EI(694)
with DI(693).
0000.00
Symbol/Operand
INI(880) is used to start and stop comparison for a comparison
INI(880)
table, to change the present value (PV) of a high-speed counter, to
change the PV of an input interrupt in counter mode, to change the
P
maximum value of the ring counter, to change the PV of a pulse
C
output (e.g., to 0 to establish the origin), to stop pulse output, or to
NV
change the settings for origin searches/returns.
(INI(880) is supported only by the CJ2M.)
P: Port specifier
C: Control data
NV: 1st word
with new value
PRV(881) is used to read the present value (PV) of a high-speed
PRV(881)
counter, pulse output, or input interrupt (counter mode).
(PRV(881) is supported only by the CJ2M.)
P
C
D
P: Port specifier
C: Control data
D: 1st
destination word
Reads the pulse frequency input from a high-speed counter and
PRV2(883)
either converts the frequency to a rotational speed (number of rev-
olutions) or converts the counter PV to the total number of revolu-
C
tions. The result is output to the destination words as 8-digit
C2
hexadecimal. (PRV2(883) is supported only by the CJ2M.)
D
C: Control data
C2: Pulses per
revolution
D: 1st
destination word
Function
When CIO 0000.00 turns ON
in this example, EI(694)
enables all interrupt tasks that
were disabled with DI(693).
Disables execution of all
interrupt tasks (except
the power OFF interrupt).
Enables execution of all
disabled interrupt tasks.
Function
CJ2 CPU Unit Software User's Manual
Execution
Location
condition
Output
Not
required
Execution
Location
condition
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents