Description
Original instructions
Description of the function
The function FPULSOR generates a periodic rectangular signal for which it is possible to vary the pulse width at 1 and at 0 using the program.
The additional parameters EN and ENO can be configured.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Enable
FPULSOR Rise_Time, Fall_Back_Time, Mem_Double_W, OUT_Pulsor, Current_Value
Representation in ST
Representation:
FPULSOR(Enable, Rise_Time, Fall_Back_Time, Mem_Double_W, OUT_Pulsor, Current_Value);
Description of parameters
The following table describes the input parameters:
Parameter
Type
Comment
Enable
Validation input. The function starts on the rising edge of Enable and is only executed if Enable = 1
Rise_Time
Input word that determines the duration (in hundredths of a second) of the pulse at 1. This is used to define a maximum duration of 5 mins and 27 secs, precise to 10 ms.
Fall_Back_Time
Input word that determines the duration (in hundredths of a second) of the pulse at 0. This is used to define a maximum duration of 5 mins and 27 secs, precise to 10 ms.
The following table describes the input/output parameters:
Parameter
Type
Comment
Mem_Double_W
Double word for storing internal statuses. It is imperative that this word be used in order for the function to operate.
The following table describes the output parameters:
Parameter
Type
Comment
OUT_Pulsor
Pulse output at 0 for the duration of Fall_Back_Time and at 1 for the duration of Rise_Time.
Current_Value
Output word that increases from 0 to Rise_Time + Fall_Back_Time as the timer counts (in hundredths of a second).
NOTE: a modification of the Rise_Time and the Fall_Back_Time is taken into account even during the time out. The sum of Rise_Time + Fall_Back_Time has a maximum duration of 5 minutes and 27 seconds (32700).