TwinCAT PLC Library Hydraulics - Version 1.4 — 4.1.7 MC_ReadDigitalOutput_BkPlcMc (from V3.0)

PLCopen Motion Control 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. Behavior of the function block:

The function block is activated by a rising edge at Enable , and investigates the axis interface that has been passed to it. A number of problems can be detected and reported during this process: If an unsupported value is given to ParameterNumber the function block responds with Error and ErrorID :=dwTcHydErrCdNotSupport. The desired parameter value is made available at Value , and Done is asserted if these checks can be carried out without problems. A falling edge at Enable clears all the pending output signals. NOTE! This function block requires no time for executing its tasks. The output Busy will never assume the value TRUE and only exists for compatibility reasons.

4.1.7 MC_ReadDigitalOutput_BkPlcMc (from V3.0) The function block determines the current state of a digital output of a cam controller. VAR_INPUT Enable: BOOL; OutputNumber: INT; END_VAR VAR_OUTPUT Done: BOOL; Busy: BOOL; Error: BOOL; ErrorID: UDINT; Value: BOOL; END_VAR VAR_INOUT Output: OUTPUT_REF_BkPlcMc; END_VAR Enable : A rising edge at this input triggers an update of the state. OutputNumber : The number of the output to be determined. Valid : This indicates successful determination of the state. Busy : This output TRUE while the command is being processed. Error : The occurrence of an error is indicated here. PLC Library Hydraulics 32 Version: 1.4