188
10 BLOCK LINK EXAMPLES
10.5 PWM Output
■Multi function counter block detail window
*1 Cycle time = (Upper limit value - Lower limit value) × Clock cycle
*2 ON time = Cycle time - (Step No. 0 × Clock cycle)
*3 In the addition mode, the cycle time calculated from the following is applied.
Cycle time = (Upper limit value - Lower limit value) ÷ Addition value × Clock cycle
The items other than the above need not to be set.
Block Variable name Setting value Description
Input 0
Input 1
Input_Signal_Event Detector Select User Setting (ON only in A: Rise) Set conditions to detect a PWM output start signal.
Detector Select User Setting (ON only in B: Rise) Set conditions to detect a PWM output stop signal.
Counter_Timer_0 Count Enable ON Set this parameter to "ON".
Count Mode Ring Set this parameter to "Ring".
Upper Limit 10 Set this parameter according to the control.
*1
Lower Limit 0 Set this parameter according to the control.
*1
Clock 1ms Set this parameter according to the control.
*1*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 Value 0 Set the same value as that in "Lower Limit".
Cam Switch Number of Step 1 Set "1" to enable the step No. 0.
Lower Limit Output State Low Set this parameter to "Low".
Step No.0 3 Set this parameter according to the control.
*2
Cam Output