MC_FunctionGeneratorTB_BkPlcMc
![]() | Available from version 3.0.31 |
The function block updates a time base for one or several function generators.
Inputs
VAR_INPUT
CycleTime: LREAL;
END_VARName | Type | Description |
|---|---|---|
CycleTime | LREAL | The cycle time of the calling task. |
Inputs/outputs
VAR_IN_OUT
stTimeBase: ST_FunctionGeneratorTB_BkPlcMc;
END_VARName | Type | Description |
|---|---|---|
stTimeBase | ST_FunctionGeneratorTB_BkPlcMc | A structure with the parameters of the time base of one or several function generators. |
Behavior of the function block
If stTimeBase.Freeze is not set, stTimeBase.CurrentTime is updated with CycleTime and stTimeBase.CurrentRatio is determined. stTimeBase.Frequency is taken into account.
To change the operating frequency, an MC_FunctionGeneratorSetFrq_BkPlcMc() function block should be used.
