PLCopen Motion Control 4.4.3.2 MC_AxRtReadForceDiff_BkPlcMc (from V3.0) The function block handles determination of the actual force of the axis from the input data of two analog input terminals. The actual pressure on the A- and B-sides is converted to the force acting on the load, taking into account the areas and the sliding friction. NOTE! If only one input signal is available, a function block of type MC_AxRtReadForceSingle_BkPlcMc [ } 154] should be used. If the actual pressure is to be determined, a function block of type MC_AxRtReadPressureDiff_BkPlcMc [ } 156] should be used. VAR_INPUT AdcValueA: INT:=0; AdcValueB: INT:=0; ScaleFactorA: LREAL:=0.0; ScaleOffsetA:
LREAL:=0.0; ScaleFactorB: LREAL:=0.0; ScaleOffsetB: LREAL:=0.0; SlippingOffset: LREAL:=0.0; ReadingMode: E_TcMcPressureReadingMode:=iTcHydPressureReadingDefault; END_VAR E_TcMcPressureReadingMode [ } 89] VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_OUTPUT Error: BOOL; ErrorID: UDINT; END_VAR Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. AdcValueA , AdcValueB : These parameters are used to transfer the input data of the analog terminals. ScaleFactorA , ScaleFactorB : [N/ADC_INC] This value represents the weighting. It determines which pressure increase corresponds to a stage of the AD converter.
ScaleOffsetA , ScaleOffsetB : [N/ADC_INC] This offset is used to correct the zero point of the pressure scale. SlippingOffset : [N] If the function block is used for calculating the active force, the force required to overcome the sliding friction can be entered here. ReadingMode : The actual value to be determined can be specified here. Axis_Ref_BkPlcMc [ } 67] . ST_TcHydAxRtData [ } 99] . fActPressure is selected as default target. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block:
The function block determines the actual pressure and the actual force of the axis by evaluating the variables AdcValueA and AdcValueB . The result is entered in ST_TcHydAxRtData [ } 99] .fActPressure. PLC Library Hydraulics 152 Version: 1.4