PLCopen Motion Control VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Execute : A rising edge at this input sets the referencing flag of the axis. ReferenceFlag : The new state of the referencing flag of the axis. Done : This indicates successful processing of the command. 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. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block: A rising edge at Execute causes the referencing flag in ST_TcHydAxRtData.nStateDWord [ } 235] to be updated.
To this end, the respective bit is cleared or set with dwTcHydNsDwReferenced, depending on ReferenceFlag . The successful execution of the function is indicated with Done . A falling edge at Execute clears all the pending output signals. 4.1.15 MC_WriteBoolParameter_BkPlcMc (from V3.0) This function block writes the boolean parameters of an axis. The MC_WriteParameter_BkPlcMc [ } 43] function block is available for non-boolean parameters. VAR_INPUT Enable: BOOL; ParameterNumber: INT; Value: BOOL; 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. PLC Library Hydraulics 41 Version: 1.4