PLCopen Motion Control 4.4.9.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. 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.9.5 MC_AxUtiOffsetLatch_BkPlcMc (ab V3.0.40) The function block updates the offset compensation. VAR_INPUT Execute: BOOL; OffsetLimit: LREAL:=0.5; END_VAR VAR_OUTPUT Done: BOOL; Error: BOOL; ErrorId: UDINT; Latched: BOOL; Offset: LREAL; END_VAR VAR_IN_OUT Axis: AXIS_REF_BkPlcMc; END_VAR Execute : A positive edge triggers the update. OffsetLimit : [V] The maximum permissible value range for the offset compensation. Done : A successful update is indicated here. Error : This output indicates any problems that may have occurred. ErrorId :
In the event of an error, coded information about the type of problem is reported here. Latched : This output signals that the update was successfully completed. PLC Library Hydraulics 197 Version: 1.4