MC_FunctionGeneratorSetFrq_BkPlcMc (from V3.0.31)

The function block updates the operating frequency of a time base for one or several function generators.
Inputs
VAR_INPUT
Frequency: LREAL;
CycleTime: LREAL;
END_VAR
Name | Type | Description |
---|---|---|
Frequency | LREAL | The operating frequency to be used. |
CycleTime | LREAL | The cycle time of the calling task. |
Inputs/outputs
VAR_INOUT
stTimeBase: ST_FunctionGeneratorTB_BkPlcMc;
END_VAR
Name | 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
The function block sets stTimeBase.Frequency to the transferred value. stTimeBase.CurrentTime is adjusted, if required.
The function block uses stTimeBase.Freeze to prevent a collision with MC_FunctionGeneratorTB_BkPlcMc() function blocks. Thus, it can also be called from another task.