MC_FunctionGeneratorTB_BkPlcMc (from V3.0.31)

MC_FunctionGeneratorTB_BkPlcMc (from V3.0.31) 1:

The function block updates a time base for one or several function generators.

MC_FunctionGeneratorTB_BkPlcMc (from V3.0.31) 2: Inputs

VAR_INPUT
    CycleTime:      LREAL;
END_VAR

Name

Type

Description

CycleTime

LREAL

The cycle time of the calling task.

MC_FunctionGeneratorTB_BkPlcMc (from V3.0.31) 3: 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

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.