TwinCAT PLC Library Hydraulics - Version 1.4 — 4.1.8 MC_ReadParameter_BkPlcMc (from V3.0)

PLCopen Motion Control ErrorID : An encoded indication of the cause of the error is provided here. Value : The state of the digital output. Output : Here, the address of a variable of type OUTPUT_REF_BkPlcMc [ } 92] should be transferred. Behavior of the function block: If Enable is TRUE, the function block checks the transferred parameters. During this process, a problem may be detected and reported: If the value of OutputNumber is not within the permissible range [0..31], the response is Error with ErrorID :=dwTcHydErrCdIllegalOutputNumber. If these checks were carried out without problems, the state of the digital output is determined, and Valid is reported.

A falling edge at Enable clears all the pending output signals. 4.1.8 MC_ReadParameter_BkPlcMc (from V3.0) This function block reads the non-boolean parameters of an axis. The function block MC_ReadBoolParameter_BkPlcMc [ } 31] is available for boolean parameters. VAR_INPUT Enable: BOOL; ParameterNumber: INT; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error: BOOL; ErrorID: UDINT; Value: LREAL; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Enable : A reading process is initiated by a rising edge at this input. ParameterNumber : This code number specifies the parameter that is to be read. Only named constants from E_TcMCParameter [ } 79] should be used. Busy :

Indicates that a command is being processed. Done : Successful execution of the reading process 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. Value : The value of the parameter is made available here. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. PLC Library Hydraulics 33 Version: 1.4