TwinCAT PLC Library Hydraulics - Version 1.4 — 4.5.8 MC_AxUtiReadCoeDriveTerm_BkPlcMc (from V3.0)

PLCopen Motion Control A falling edge at Execute clears all the pending output signals. If Execute is set to FALSE while the loading process is still active, the process that had started continues unaffected. The signals provided at the end of the operation ( Error , ErrorID, Done ) are made available for one cycle. 4.5.7 MC_AxParamSave_BkPlcMc (from V3.0) The function block writes the parameters for an axis into a file. A function block of type MC_AxParamLoad_BkPlcMc [ } 203] must be used to read the file. VAR_INPUT Execute: BOOL; END_VAR VAR_OUTPUT Done: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Execute :

The writing process is initiated by a rising edge at this input. Done : Successful writing of the parameters is indicated here. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block The function block is activated by a rising edge at Execute , and investigates the axis interface that has been passed to it. A number of problems can be detected and reported during this process:

If the file cannot be opened for writing, the system responds with Error and ErrorID :=dwTcHydErrCdPtrPlcMc or dwTcHydErrCdPtrMcPlc. The writing process begins if these checks are carried out without problems. The versions of the saved parameters are logged. A falling edge at Execute clears all the pending output signals. If Execute is set to FALSE while the writing process is still active, the process that had started continues unaffected. The signals provided at the end of the operation ( Error , ErrorID, Done ) are made available for one cycle. 4.5.8 MC_AxUtiReadCoeDriveTerm_BkPlcMc (from V3.0) PLC Library Hydraulics 204 Version: 1.4