User Manual

LOGO! functions
4.4 Special functions list - SF
LOGO!
226 Manual, 06/2014, A5E33039675
Example 2
Analog input value: 300 (range 0 to 1,000)
Periodic time T: 10 seconds
The digital output of the PWM function is three seconds high, seven seconds low, three
seconds high, seven seconds low and continues in that pattern as long as parameter "En" =
high.
Calculation rule
Q = 1, for (Ax - Min)/ (Max - Min) of time period T, when Min < Ax < Max.
Q = 0, for PT - [ (Ax - Min) / (Max - Min) ] of periodic time T.
Note
: Ax in this calculation refers to the actual value Ax as calculated using the Gain and
Offset.
Setting the Par Parameter
The following illustration shows the view in programming mode that corresponds to the first
example:
View in parameter assignment mode: