PLCopen Motion Control If the value of OutputNumber is not within the permissible range [0..31], the response is Error with ErrorID :=dwTcHydErrCdIllegalOutputNumber. If these checks could be performed without problems, the state of the digital output is defined according to the value of Value, and Done is reported. A falling edge at Execute clears all the pending output signals. 4.1.17 MC_WriteParameter_BkPlcMc (from V3.0) This function block writes the non-boolean parameters of an axis. The MC_WriteBoolParameter_BkPlcMc [ } 41] function block is available for boolean parameters . VAR_INPUT Enable: BOOL; ParameterNumber: INT; Value: LREAL; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error:
BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Enable : A write 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. Value : The value of the parameter is to be provided here. Busy : Indicates that a command is being processed. Done : Successful execution of the writing 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. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred.
Behaviour 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 clearly 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.
PLC Library Hydraulics 43 Version: 1.4