TwinCAT PLC Library Hydraulics - Version 1.4 — 4.5.6 MC_AxParamLoad_BkPlcMc (from V3.0)

PLCopen Motion Control 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 one of the pointers has not been initialised the function block reacts with Error and with ErrorID :=dwTcHydErrCdPtrPlcMc or dwTcHydErrCdPtrMcPlc. The loading process begins if these checks are carried out without problems. 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. NOTE! The number of rows in the file must match the number specified in the global constants of the library as iTcHydfCustDataMaxIdx (currently: 20). The maximum number of characters in each row is 20 (included spaces, without line breaks). 4.5.6 MC_AxParamLoad_BkPlcMc (from V3.0) The function block loads the parameters for an axis from a file. A function block of type MC_AxParamSave_BkPlcMc [ } 204] must be used to generate a compatible parameter file. This function block is generally not called directly by the application.

If possible, a function block of type MC_AxUtiStandardInit_BkPlcMc [ } 182] should be used, which uses a function block of type MC_AxParamLoad_BkPlcMc . 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 loading process is initiated by a rising edge at this input. Done : Successful loading 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 reading, the system responds with Error and ErrorID :=dwTcHydErrCdPtrPlcMc or dwTcHydErrCdPtrMcPlc. The loading process begins if these checks are carried out without problems. The file version is determined, and any parameters that are not specified by the file are replaced with neutral default values. If the file contains parameters that are not used or no longer used, these are ignored. PLC Library Hydraulics 203 Version: 1.4