227
High-speed Counters
Section 5-2
Pulse Frequency Conversion
The pulse frequency input to a high-speed counter can be converted to a rota-
tional speed (r/min) or the PV of the counter can be converted to the total
number of rotations. The converted value is output as 8-digit hexadecimal.
This function is supported only for high-speed counter 0.
Frequency
−
Rotational Speed Conversion
The rotational speed in r/min is calculated from the pulse frequency input to a
high-speed counter and the number of pulses per rotation.
Counter PV
−
Total Number of Rotations Conversion
The total number of rotations is calculated from the present value of the
counter and the number of pulses per rotation.
Procedure
1,2,3...
1.
High-speed Counter Enable/Disable Setting (Required)
Select the
Use high speed counter 0
Option in the PLC Setup.
2.
Pulse Input Mode Setting (Required)
Set the High-speed Counter 0 Pulse Input Mode (
Input Setting
) in the PLC
Setup.
3.
Counting Mode Setting (Required)
Set the High-speed Counter 0
Counting Mode
in the PLC Setup.
If ring mode counting is selected, set the
Circular Max. Count
(max. ring
count) in the PLC Setup.
4.
Reset Method Setting (Required)
Set the High-speed Counter 0 Reset Method in the PLC Setup.
5.
Execute PRV2(883) as described below (required).
Converting the Frequency to a Rotational Speed
Execute PRV2(883) with the following operands.
C: Control data (Set to #0000 for frequency-rotational speed conversion.)
P: Coefficient (pulses/rotation (hex))
D: First word for result
Converting the Counter PV to the Total Number of Rotations
Execute PRV2(883) with the following operands.
C: Control data (Set to #0001 for counter PV-total number of rotations con-
version.)
P: Coefficient (pulses/rotation (hex))
D: First word for result
Restrictions
Pulse frequency conversion is possible only for high-speed counter 0.
Measurement method
Execution of the PRV(881) instruction
Output data range
Units: Hz
Range:
Differential phase input: 0000 0000 to 0003 0D40 hex
(Y models: 0000 0000 to 0007 A120 hex)
All other input modes: 0000 0000 to 0001 86A0 hex (Y
models: 0000 0000 to 000F 4240 hex)
Item
Specifications
Содержание CP1H CPU UNITS - PROGRAMMING 05-2007
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Страница 370: ...336 Analog I O XA CPU Units Section 5 5...
Страница 552: ...518 Trouble Shooting Section 8 7...
Страница 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 598: ...564 Sample Application Section 9 12...
Страница 642: ...608 Standard Models Appendix A...
Страница 643: ...609 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 652: ...618 Dimensions Diagrams Appendix B...
Страница 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Страница 776: ...742 PLC Setup Appendix G...
Страница 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Страница 786: ...752 Revision History...