TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.3.4 MC_AxRtReadPressureDiff_BkPlcMc (from V3.0)

PLCopen Motion Control The parameters to be entered can then be calculated as described above. Determining an active force To determine an active force, first determine the actual pressure, as described above. Entering the active area under ScaleArreaA causes the function block to convert the single-sided pressure to a force, taking into account the area. 4.4.3.4 MC_AxRtReadPressureDiff_BkPlcMc (from V3.0) The function block handles determination of the actual pressure of the axis from the input data of two analog input terminals. VAR_INPUT AdcValueA: INT:=0; AdcValueB: INT:=0; ScaleFactorA: LREAL:=0.0; ScaleOffsetA: LREAL:=0.0; ScaleFactorB: LREAL:=0.0; ScaleOffsetB:

LREAL:=0.0; ReadingMode: E_TcMcPressureReadingMode:=iTcHydPressureReadingDefault; END_VAR 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 : [bar/ADC_INC] This value represents the weighting. It determines which pressure increase corresponds to a stage of the AD converter. ScaleOffsetA , ScaleOffsetB : [bar] This offset is used to correct the zero point of the pressure scale. ReadingMode :

This parameter is used to specify where the result of the evaluation is to be stored. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block: The function block investigates the axis interface that has been passed to it every time it is called. During this process, a problem may be detected and reported: PLC Library Hydraulics 156 Version: 1.4 Note If only one input signal is available, a function block of type MC AxRtReadPressureSin- _ gle BkPlcMc [} 158] should be used. If the force is to be determined, instead of the pres- _ sure, a function block of type MC AxRtReadForceDiff BkPlcMc [} 152] should be used. _ _