34
2 HIGH-SPEED COUNTER MODULE FB
2.6 M+FX5-2HC_DegreeToCountVal (Angle Conversion)
FB details
Available device
Basic specifications
Processing
• By turning on i_bEN (Execution command), the count value is calculated from the angle (input in increments of 0.1
degrees). The value to be calculated is the one when the resolution is set as the ring counter upper limit value and 0 is set
as the ring counter lower limit value.
• The calculation formula for o_dCountVal (count value) is as follows: i_uAngle (3600 i_udResolution) + i_uZeroValue.
When a calculation value is greater than i_udResolution (Resolution), the i_udResolution (Resolution) value is subtracted
from the calculation value and the result is stored in o_dCountVal (Count value).
Target module Firmware Version Engineering tool
FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later
FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later
FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later
High-speed counter module 1.000 or later GX Works3 Version 1.100E or later
Item Description
Language Ladder diagram
Number of steps 299 steps
The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions,
and the options setting of GX Works3. For the option settings of GX Works3, refer to the following.
GX Works3 Operating Manual
The amount of label usage • Label: 80 points (Word)
• Latch label: 0 points (Word)
The amount of labels used in the program varies depending on the CPU module used, the device specified in an
argument, and the option setting of GX Works3. For the option settings of GX Works3, refer to the following.
GX Works3 Operating Manual
The number of index register
usage
• Index register: 0 points
• Long index register: 0 points
The amount of file register usage File register: 0 points (Word)
FB dependence No dependence
FB compilation method Macro type
FB operation Always executed