10 BLOCK LINK EXAMPLES
10.8 Ratio Conversion
199
10
• Counter_1 (32bit_Unsigned)
*2 Output ON time = Clock cycle setting × (Compare value - Preset value + 1)
*3 In the addition mode, the output ON time calculated from the following is applied.
Output ON time = (Clock cycle setting × (Compare value - Preset value + 1) ÷ Addition value
The items other than the above need not to be set.
Block Variable name Setting value Description
Input 0
Input_Signal_Event Detector Select User Setting (ON only in A: High) Set this parameter to detect the phase A input signal.
Detector Select User Setting (ON only in A: Rise)
Counter_Timer_0 Count Enable ON Set this parameter to "ON".
Count Mode Linear Set this parameter according to the control.
Upper Limit 4294967295 Set this parameter according to the control.
Lower Limit 0 Set this parameter according to the control.
Clock 25ns Set this parameter according to the control.
*2
Add Mode OFF Set this parameter according to the control.
*3
Add Value 0
STOP → PRESET ON Set this parameter to "ON", to perform a preset when
a stop event occurs.
PRESET → STOP OFF Set this parameter to "OFF".
Preset Value 1 Set this parameter according to the control.
*2
Compare_0 Condition Coincidence Set this parameter to "Coincidence".
Compare Mode A = Set this parameter to "=".
Compare Value A 40000 Set this parameter according to the control.
*2
Set/Reset_0
Output