![background image](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493160.webp)
131
Built-in Inputs
Section 6-1
Procedure
Select high-speed counter 1 and/or 2.
Select the pulse input method, reset
method, and counting range.
Select the kind of interrupt (if any).
Wire inputs.
PLC Setup settings
Ladder program
•
Pulse input methods: Differential phase (4x), Pulse +
direction, Up/Down, or Increment
•
Reset methods: Phase-Z + Software reset or Software
reset
•
Counting ranges: Linear mode or Ring mode
•
No interrupt
•
Target value comparison interrupt
•
Range comparison interrupt
•
For high-speed counter 0, connect IN3, IN8, and
IN9. For high-speed counter 1, connect IN2, IN6,
and IN7.
•
Enable high-speed counter 0 and/or 1.
High-speed Counter 0 (1) Enable/Disable:
Bits 12 to 15 of Programming Console address 50 (53).
1 Hex: Enable the high-speed counter (60 kHz.)
2 Hex: Enable the high-speed counter (100 kHz.)
Set the pulse input method(s).
•
High-speed Counter 0 (1) Pulse Input Mode:
Bits 00 to 03 of Programming Console address 50 (53).
0 Hex: Differential phase (4x)
1 Hex: Pulse + direction
2 Hex: Up/Down
3 Hex: Increment
Set the reset method(s).
•
High-speed Counter 0 (1) Reset Method:
Bits 04 to 07 of Programming Console address 50 (53).
0 Hex: Phase-Z + Software reset
1 Hex: Software reset
Set the counting range(s).
•
High-speed Counter 0 (1) Counting Mode:
Bits 04 to 07 of Programming Console address 50 (53).
0 Hex: Linear mode
1 Hex: Ring mode
•
Program the interrupt task (with any interrupt number between 0
and 255) to be executed when using a target value comparison
or range comparison interrupts.
•
When performing target value comparisons, execute the
CTBL(882) instruction with C=0000 Hex to register a target
value comparison table and start the comparison.
•
When performing range value comparisons, execute the
CTBL(882) instruction with C=0001 Hex to register a range
comparison table and start the comparison.
•
To register a target value comparison table without starting the
comparison, execute the CTBL(882) instruction with C=0002
Hex.
•
To register a range comparison table without starting the
comparison, execute the CTBL(882) instruction with C=0003
Hex.
•
The INI(880) instruction can be used to change the PV.
•
The INI(880) instruction can be used to start comparison with
the registered target value comparison table or range
comparison table.
•
The PRV(881) instruction can be used to read the high-speed
counter PVs, read the status of the high-speed counter
comparison operation, or read the range-comparison results.
•
The High-speed Counter Gate Bit (A53108 and A53109) can be
turned ON to stop counting pulses input to high speed counter 0
and 1.
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...