ST_FunctionGeneratorFD_BkPlcMc (from V3.0.31)

This structure consolidates parameter for the definition of the output signals of a function generator. A structure of this type is transferred to MC_FunctionGeneratorFD_BkPlcMc() function blocks.

Syntax

TYPE ST_FunctionGeneratorFD_BkPlcMc :
STRUCT
     Sin_Amplitude:    LREAL:=0.0;
     Sin_Phase:        LREAL:=0.0;
     Sin_Offset:       LREAL:=0.0;

     Cos_Amplitude:    LREAL:=0.0;
     Cos_Phase:        LREAL:=0.0;
     Cos_Offset:       LREAL:=0.0;

     Rect_Amplitude:   LREAL:=0.0;
     Rect_Phase:       LREAL:=0.0;
     Rect_Ratio:       LREAL:=0.5;
     Rect_Offset:      LREAL:=0.0;

     Saw_Amplitude:    LREAL:=0.0;
     Saw_Phase:        LREAL:=0.0;
     Saw_Ratio:        LREAL:=0.5;
     Saw_Offset:       LREAL:=0.0;

END_STRUCT
END_TYPE

Parameter

Name

Type

Description

Sin_Amplitude

Cos_Amplitude

Rect_Amplitude

Saw_Amplitude

LREAL

The peak value of the signals.

Sin_Phase

Cos_Phase

Rect_Phase

Saw_Phase

LREAL

The phase shift of the signals.

Sin_Offset

Cos_Offset

Rect_Offset

Saw_Offset

LREAL

The zero offset of the signals.

Rect_Ratio

Saw_Ratio

LREAL

The duty factor of the square or sawtooth signal.