PLCopen Motion Control 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. If these checks could be performed without problems, Value is entered in the required parameter value, and Done is reported. If the parameter is changed during this process, Axis_Ref_BkPlcMc [ } 67] .
ST_TcHydAxRtData [ } 99] .bParamsUnsave is set. 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.16 MC_WriteDigitalOutput_BkPlcMc (from V3.0) The function block determines the current state of a digital output of a cam controller. VAR_INPUT Execute: BOOL; OutputNumber: INT; Value: BOOL; END_VAR VAR_OUTPUT Done: BOOL; Busy: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Output: OUTPUT_REF_BkPlcMc; END_VAR Execute : A rising edge at this input triggers an update of the state. OutputNumber :
The number of the output to be determined. Value : The state of the digital output. Done : 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. ErrorID : An encoded indication of the cause of the error is provided here. Output : Here, the address of a variable of type OUTPUT_REF_BkPlcMc [ } 92] should be transferred. Behavior of the function block: A rising edge at Execute causes the function block to examine the transferred parameters. During this process, a problem may be detected and reported: PLC Library Hydraulics 42 Version: 1.4