
Function library LenzePLCToolBox.lib
Functions/function blocks
2.18 L_TBSquareWave
2−18
L
LenzePLCToolBox.lib EN 1.5
2.18 L_TBSquareWave
This FB can be used to generate a Boolean square wave signal with a variable high/low time.
Note!
This function block has to be activated in a time−controlled task.
L_TBSquareWave
bOut
bEnable
wTimeHigh
wTimeLow
ð Inputs (Variable type: VAR_INPUT)
Identifiers Data type Signal type Info/possible settings
bEnable Bool binary Activating the signal generator
FALSE Signal generator deactivated, bOut = FALSE
TRUE Signal generator activated
wTimeHigh Word − High time in [ms]
wTimeLow Word − Low time in [ms]
Outputs ð (Variable type: VAR_OUTPUT)
Identifiers Data type Signal type Info
bOut Bool binary Boolean square wave signal
If the FB is activated by setting bEnable to TRUE, the set square wave signal is output at bOut
starting with the state HIGH:
bEnable
bOut
wTimeHigh
wTimeLow
· If bEnable is reset to FALSE, the bOut output is also immediately reset to FALSE.
Komentáře k této Příručce