EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 746

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
713
High-speed Counter/Pulse Output Instructions Section 3-20
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.
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 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)
015
D
000 0 0 0 0 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
Value of P CPU Unit type and unit version Pulse output/
Counter input
method
Conversion result
0000 to
0003 hex
CP1H X/XA CPU Unit, unit version 1.0 Pulse output 2 or 3 0000 0000 to 0000 7530 hex (0 to 30,000)
CP1H X/XA CPU Unit, unit version 1.1
or later
Pulse output 0 or 1 0000 0000 to 0001 86A0 hex (0 to 100,000)
Pulse output 2 or 3
CP1H Y CPU Unit, any unit version 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)
CP1L CPU Unit, any unit version Pulse output 2 or 3 0000 0000 to 0001 86A0 hex (0 to 100,000)
0010 hex CP1H X/XA, or CP1L CPU Unit, any
version
Any counter input
method other than
4× differential
phase mode
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.
4× differential
phase mode
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.
CP1H Y CPU Unit, any version Any counter input
method other than
4× differential
phase mode
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.
4× differential
phase mode
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.

Table of Contents

Related product manuals