![background image](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493109.webp)
80
MODE CONTROL: INI(880)
Section 5-1
■
Starting Comparison (C = 0000 hex)
If C is 0000 hex, INI(880) starts comparison of a high-speed counter’s PV to
the comparison table registered with CTBL(882).
Note
A target value comparison table must be registered in advance with
CTBL(882). If INI(880) is executed without registering a table, the Error Flag
will turn ON.
■
Stopping Comparison (C = 0001 hex)
If C is 0001 hex, INI(880) stops comparison of a high-speed counter’s PV to
the comparison table registered with CTBL(882).
■
Changing a PV (C = 0002 hex)
If C is 0002 hex, INI(880) changes a PV as shown in the following table.
■
Stopping Pulse Output (P = 1000 or 1001 hex and C = 0003 hex)
If C is 0003 hex, INI(880) immediately stops pulse output for the specified
port. If this instruction is executed when pulse output is already stopped, then
the pulse amount setting will be cleared.
0100, 0101, 0102, or
0103 hex: Interrupt
input in counter mode
Not allowed.
Not allowed.
OK
Not allowed.
1000 or 1001 hex:
PWM (891) output
Not allowed.
Not allowed.
Not allowed.
OK
P: Port specifier
C: Control data
0000 hex:
Start
comparison
0001 hex:
Stop
comparison
0002 hex:
Change PV
0003 hex:
Stop pulse
output
Port and mode
Operation
Setting range
Pulse output (P = 0000 or 0001
hex)
The present value of the
pulse output is changed.
The new value is speci-
fied in NV and NV+1.
Note:
This instruction
can be executed only
when pulse output is
stopped. An error will
occur if it is executed
during pulse output.
8000 0000 to 7FFF
FFFF hex
(
−
2,147,483,648 to
2,147,483,647)
High-
speed
counter
input (P =
0010 or
0011
hex)
Linear
Mode
Differential
inputs,
increment/
decrement
pulses, or
pulse +
direction
inputs
The present value of the
high-speed counter is
changed. The new value
is specified in NV and
NV+1.
Note:
An error will occur
for the instruction if the
specified port is not set
for a high-speed
counter.
8000 0000 to 7FFF
FFFF hex
(
−
2,147,483,648 to
2,147,483,647)
Increment
pulse input
0000 0000 to FFFF
FFFF hex
(0 to 4,294,967,295)
Ring Mode
0000 0000 to FFFF
FFFF hex
(0 to 4,294,967,295)
Interrupt inputs in counter
mode (P = 0100, 0101, 0102,
or 0103 hex)
The present value of the
interrupt input is
changed. The new value
is specified in NV and
NV+1.
0000 0000 to 0000
FFFF hex
(0 to 65,535)
Note:
An error will occur
if a value outside this
range is specified.
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...