ST_FunctionGeneratorTB_BkPlcMc (from V3.0.31)

This structure consolidates parameters for the time base of one or several function generators. A structure of this type is transferred to MC_FunctionGeneratorTB_BkPlcMc(), MC_FunctionGeneratorFD_BkPlcMc() and MC_FunctionGeneratorSetFrq_BkPlcMc() function blocks.

Syntax

TYPE ST_FunctionGeneratorTB_BkPlcMc :
STRUCT
     Frequency:        LREAL:=0.000001;
     Freeze:           BOOL:=FALSE;

     CycleCount:       DINT:=0;
     CurrentTime:      LREAL:=0.0;
     CurrentRatio:     LREAL:=0.0;
END_STRUCT
END_TYPE

Parameter

Name

Type

Description

Frequency

LREAL

The operating frequency of the time base generated by an MC_FunctionGeneratorTB_BkPlcMc() function block in Hertz.

Freeze

BOOL

If this variable is set to TRUE, a MC_FunctionGeneratorTB_BkPlcMc() function block will not evaluate the structure.

CycleCount

DINT

The number of fully generated signal sequences.

CurrentTime

LREAL

The time elapsed since the currently created signal sequence.

CurrentRatio

LREAL

The normalized progress since the start of the currently generated signal sequence.