TwinCAT PLC Library Hydraulics - Version 1.4 — 4.3.1 Axis_Ref_BkPlcMc (from V3.0)

PLCopen Motion Control nInitError: DINT:=0; nInterfaceType: UINT := 16#FFFF; nDeviceInType: UINT := 16#FFFF; nDeviceOutType: UINT := 16#FFFF; nRtDataType: UINT := 16#FFFF; nParamType: UINT := 16#FFFF; nLogBufferType: UINT := 16#FFFF; nAxAutoIdentType: UINT := 16#FFFF; nCmdBufferType: UINT := 16#FFFF; nLogLevel: DINT := 0; nDebugTag: UDINT := 16#00000000; stAxParams: ST_TcHydAxParam; stAxRtData: ST_TcHydAxRtData; END_STRUCT END_TYPE sAxisName : The text name of the axes. pStAxLogBuffer : The address of a variable of type ST_TcMcLogBuffer [ } 107] . This variable contains the LogBuffer of the library. pStDeviceInput : The address of a variable of type ST_TcPlcDeviceInput [ } 104] .

This variable contains all input interfaces of the axis. pStDeviceOutput : The address of a variable of type ST_TcPlcDeviceOutput [ } 106] . This variable contains all output interfaces of the axis. pStAxAuxLabels : The address a variable of type ST_TcMcAuxDataLabels [ } 103] . This variable optionally contains the application parameter IDs in ST_TcHydAxParam:fCustomerData[..]. pStAxAutoParams : The address a variable of type ST_TcMcAutoIdent [ } 93] . This variable optionally contains the parameters for an MC_AxUtiAutoIdent_BkPlcMc [ } 192] function block. 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. nActiveRequest : Every function block sets a code here that starts a function on this axis. After this, the function block monitors this variable to see if it is changed by another function block that is taking over control through another function. In this way any function block can tell whether a function that it has started has been interrupted by another function block, and can generate appropriate signals. nNextRequest : Reserved. Used for generating new values for nActiveRequest . bParamsEnable :

This variable is only TRUE if the parameters have been placed into a valid state by being loaded from the file. Saving the parameters will also assert this signal, because this also ensures consistency between the data in the parameter structure and in the file. The axis is not ready to operate while this variable is not TRUE. NOTE! At run-time, write accesses to the parameter structure temporarily set this variable to FALSE, after which it is returned to its previous state. nState : The current state of the axis is stored here, encoded in accordance with E_TcMCFbState [ } 78] . nInitState : The current state of the initialization. nInitError : Any error code detected during initialization.

nInterfaceType : The type code of the currently valid Axis_Ref_BkPlcMc variable type. nDeviceInType : The type code of the currently valid ST_TcPlcDeviceInput [ } 104] variable type. nDeviceOutType : The type code of the currently valid ST_TcPlcDeviceOutput [ } 106] variable type. nRtDataType : The type code of the currently valid ST_TcHydAxRtData [ } 99] variable type. nParamType : The type code of the currently valid ST_TcHydAxParam [ } 93] variable type. nLogBufferType : The type code of the currently valid ST_TcMcLogBuffer [ } 107] variable type. PLC Library Hydraulics 68 Version: 1.4