Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 746

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
Value of P
CPU Unit type and unit version
0000 to
CP1H X/XA CPU Unit, unit version 1.0 Pulse output 2 or 3 0000 0000 to 0000 7530 hex (0 to 30,000)
0003 hex
CP1H X/XA CPU Unit, unit version 1.1
or later
CP1H Y CPU Unit, any unit version
CP1L CPU Unit, any unit version
0010 hex
CP1H X/XA, or CP1L CPU Unit, any
version
CP1H Y CPU Unit, any version
■ Reading the Results of Range Comparison (C = 0002 hex)
If C is 0002 hex, PRV(881) reads the results of range comparison and stores it
in D as shown in the following diagram.
15
D 0 0 0 0 0 0 0 0
■ Reading Pulse Output or High-speed Counter Frequency (C = 00@3 hex)
If C is 00@3 hex, PRV(881) reads the frequency being output from pulse out-
put 0 to 3 or the frequency being input to high-speed counter 0 and stores it in
D and D+1.
Read Frequency Ranges
Pulse output/
Counter input
Pulse output 0 or 1 0000 0000 to 0001 86A0 hex (0 to 100,000)
Pulse output 2 or 3
Pulse output 1 or 2 0000 0000 to 000F 4240 hex (0 to 1,000,000)
Pulse output 2 or 3 0000 0000 to 0001 86A0 hex (0 to 100,000)
Pulse output 2 or 3 0000 0000 to 0001 86A0 hex (0 to 100,000)
Any counter input
method other than
4 differential
phase mode
4 differential
phase mode
Any counter input
method other than
4 differential
phase mode
4 differential
phase mode
Pulse Frequency Calculation Methods
There are two ways to calculate the frequency of pulses output from pulse
output 0 to 3 or pulses input to high-speed counter 0.
1. Standard Calculation Method (Earlier Method)
0
Comparison Result 1
OFF: Not in range ON: In range
Comparison Result 2
OFF: Not in range ON: In range
Comparison Result 3
OFF: Not in range ON: In range
Comparison Result 4
OFF: Not in range ON: In range
Comparison Result 5
OFF: Not in range ON: In range
Comparison Result 6
OFF: Not in range ON: In range
Comparison Result 7
OFF: Not in range ON: In range
Comparison Result 8
OFF: Not in range ON: In range
method
0000 0000 to 0001 86A0 hex (0 to 100,000)
Note If a frequency higher than 100 kHz has
been input, the output will remain at the
maximum value of 0001 86A0 hex.
0000 0000 to 0003 0D40 hex (0 to 200,000)
Note If a frequency higher than 200 kHz has
been input, the output will remain at the
maximum value of 0003 0D40 hex.
0000 0000 to 000F 4240 hex (0 to 1,000,000)
Note If a frequency higher than 1 MHz has
been input, the output will remain at the
maximum value of 000F 4240 hex.
0000 0000 to 001E 8480 hex (0 to 2,000,000)
Note If a frequency higher than 2 MHz has
been input, the output will remain at the
maximum value of 001E 8480 hex.
Section 3-20
Conversion result
713

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents