TwinCAT PLC Library Hydraulics - Version 1.4 — 4.1.6 MC_ReadBoolParameter_BkPlcMc (from V3.0)

PLCopen Motion Control This function block determines the current error code of an axis. VAR_INPUT Enable: BOOL; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error: BOOL; ErrorID: UDINT; AxisErrorID:UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Enable : TRUE at this input triggers an update of the error code. Busy : Indicates that a command is being processed. Done : Successful determination of the actual position is indicated here. Error : Indicates TRUE, if the function block was unable to execute the required function. ErrorID : Provides a coded cause of error, if the function block was unable to execute the required function. AxisErrorID :

Provides the current error code [ } 236] of the axis. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behavior of the function block: If Enable is TRUE, the function block checks the transferred axis interface. The current error code is reported as AxisErrorID . If Enable is FALSE, the function block cancels all pending output signals. NOTE! This function block requires no time and no preconditions for executing its tasks. The outputs Error and Busy will never assume the value TRUE and only exist for compatibility reasons . 4.1.6 MC_ReadBoolParameter_BkPlcMc (from V3.0) This function block reads the boolean parameters of an axis.

The function block MC_ReadParameter_BkPlcMc [ } 33] is available for non-boolean parameters. VAR_INPUT Enable: BOOL; ParameterNumber: INT; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error: BOOL; ErrorID: UDINT; Value: BOOL; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Enable : A reading process is initiated by a rising edge at this input. PLC Library Hydraulics 31 Version: 1.4