3 SPECIFICATION
3.1 Details of the FB Library
25
3
*1 The speed is calculated by using the high-speed ring counter (SD8099) under the following conditions, and the calculation result is
displayed in [External public label] rotation speed.
1) The value of the high-speed ring counter (SD8099) is stored every 1 ms from i_bEN (Execution command) on.
2) The value of [input label] current value is stored every 1 ms from i_bEN (Execution command) on.
3) The latest 48 values in 1) and 2) are used for speed calculation. When 48 values do not exist, the speed is not calculated and the
rotation speed will be 0 rpm.
4) Among the latest 48 values in 1) and 2), the 1st and 48th values are used for the calculation. The following formula is applied to the
calculation.
Travel distance is calculated from the difference between 1st and 48th values of 1), and elapsed time is calculated from the difference
between 1st and 48th values of 2).
5) During low-speed rotation, the current value does not change and thus the rotation speed is 0 rpm.
In this FB, rotations are regarded as low-speed rotation when the 1st and 48th current values are the same.
Error code
FB version upgrade history
Note
This chapter includes information related to the function block.
It does not include information on restrictions of use such as combination with modules or programmable controller CPUs.
Please make sure to read user's manuals for the corresponding products before using the products.
Error code
(hexadecimal)
Description Action
100H The setting value of i_uCh (Channel number) is out of range. Review and correct the setting and then execute the FB again.
101H The setting value of i_uCounterValue (Current value) is out of
range.
Review and correct the setting and then execute the FB again.
Version Date Description
00A January 2019 First edition
Number of repeated rotations per minute
Rotation speed
(Unit: rpm)
One minute Distance of one rotation
= 600000 ×
Elapsed time
Travel distance
Resolution
(Unit: 0.1 ms)
÷
(Unit: 0.1 ms)
* The speed rounded to unit is stored in the [external public label] rotation speed.