PLCopen Motion Control 4.4.4.3 MC_FunctionGeneratorTB_BkPlcMc (from V3.0.31) The function block updates a time base for one or several function generators [ } 159] . VAR_INPUT CycleTime: LREAL; END_VAR VAR_INOUT stTimeBase: ST_FunctionGeneratorTB_BkPlcMc; END_VAR CycleTime: The cycle time of the calling task. stTimeBase: A structure with the parameters of the time base of one or several function generators [ } 92] . Behaviour 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 [ } 160] () function block should be used. 4.4.5 TableFunctions 4.4.5.1 MC_AxTableToBinFile_BkPlcMc (from V3.0) The function block writes the contents of a table to a binary file. VAR_INPUT Execute: BOOL:=FALSE; pTable: POINTER TO LREAL:=0; LowIdx: INT:=0; HighIdx: INT:=0; FileName: STRING(255):=''; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR Execute : The writing process is initiated by a rising edge at this input. pTable : This parameter is used to transfer the address of an ARRAY[nFirstIdx..nLastIdx.1..2].
PLC Library Hydraulics 161 Version: 1.4