![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030914.webp)
874
High-speed Counter/Pulse Output Instructions
Section 3-21
Flags
Precautions
If the counter is reset when P is 0010 hex (high-speed counter 0) and C is
0013, 0023, or 0033 hex (sampling method for high frequency), the data read
during the sampling time when the counter was reset will not be dependable.
Examples
■
Example 1
When CIO 000000 turns ON in the following programming example,
CTBL(882) registers a range comparison table for high-speed counter 0 and
starts comparison. When CIO 000001 turns ON, PRV(881) reads the range
comparison results at that time and stores them in CIO 0100.
■
Example 2
When CIO 000100 turns ON in the following programming example, PRV(881)
reads the frequency of the pulse being input to high-speed counter 0 at that
time and stores it as a hexadecimal value in D00200 and D00201.
3-21-3 COUNTER FREQUENCY CONVERT: PRV2(883)
Purpose
PRV2(883) reads the pulse frequency input from a high-speed counter and
either converts the frequency to a rotational speed or converts the counter PV
to the total number of revolutions. The result is output to the destination words
as 8-digit hexadecimal. Pulses can be input from high-speed counter 0 only.
This instruction is supported only by the CJ1M-CPU21/22/23 CPU Unit Ver.
2.0 or later.
Name
Label
Operation
Error Flag
ER
ON if the specified range for P or C is exceeded.
ON if the combination of P and C is not allowed.
ON if reading range comparison results is specified even
though range comparison is not being executed.
ON if reading the output frequency is specified for any-
thing except for high-speed counter 0.
ON if specified for a port not set for a high-speed counter.
ON if executed for a port not set for an interrupt input in
counter mode.
@CTBL
#0000
#0001
D00100
000000
@PRV
#0010
#0002
0100
000001
Range comparison table
registration and comparison start
High-speed counter input 0
Read range comparison results
High-speed counter input 0
PRV
#0010
#0003
D00200
000100
High-speed counter input 0
Read input frequency
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...