PLCopen Motion Control PathName: Here, the text-based path name (example: 'C:\TwinCAT\Project\'), under which the axis parameters are to be saved, should be transferred. pDeviceInput: This parameter is used to transfer the address of a variable of type ST_TcPlcDeviceInput [ } 104] . pDeviceOutput: This parameter is used to transfer the address of a variable of type ST_TcPlcDeviceOutput [ } 106] . pLogBuffer: Here, the address of a variable of type ST_TcPlcMcLogBuffer [ } 107] can be transferred. pAuxLabels: Here, the address of an ST_TcMcAuxDataLabels [ } 103] structure with label texts for customer- specific axis parameters can be transferred. pStAxAutoParams :
Here, the address of a variable of type ST_TcMcAutoIdent [ } 93] can be transferred. pStAxCommandBuf : From V3.0.8, the input BufferMode is available in various function blocks, as defined by PLCopen. The functionality that can be controlled with this is currently in preparation. In this context this command buffer was amended. nLogLevel: Here, a coded value [ } 244] should be transferred, which specifies the threshold value for recording of messages. 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 With each call the function block examines the transferred axis interface and the transferred pointers. If a change is detected, the function block indicates in the transferred Axis_Ref_BkPlcMc [ } 67] structure that the axis has to be reinitialised. The MC_AxParamLoad_BkPlcMc [ } 203] function block used by the function block will now automatically load the axis parameters from the file. If pAuxLabels is supplied, an MC_AxParamAuxLabelsLoad_BkPlcMc [ } 202] function block is then used to load the label texts for the customer-specific axis parameters. NOTE!
The strings transferred as AxisName and PathName must not contain spaces or special characters, which would make them unsuitable for generating a file name. The file name is generated by concatenating the transferred strings and adding the extension '.dat'. The file name for the label texts of the customer-specific axis parameter is generated in the same way, but with the extension '.txt'. NOTE! The parameters pDeviceInput and pDeviceOutput should be supplied for all axes, which use an I/O hardware for position sensing. If virtual axes are used, these parameters should not be assigned or assigned 0. PLC Library Hydraulics 183 Version:
1.4 Note The input pStAxCommandBuf must currently not be supplied, or only with the value 0. Note The input pStAxCommandBuf must currently not be supplied, or only with the value 0.