MC_AxRtReadPressureDiff_BkPlcMc (from V3.0)

MC_AxRtReadPressureDiff_BkPlcMc (from V3.0) 1:

The function block handles determination of the actual pressure of the axis from the input data of two analog input terminals.

MC_AxRtReadPressureDiff_BkPlcMc (from V3.0) 2:

If only one input signal is available, a function block of type MC_AxRtReadPressureSingle_BkPlcMc should be used. If the force is to be determined, instead of the pressure, a function block of type MC_AxRtReadForceDiff_BkPlcMc should be used.

MC_AxRtReadPressureDiff_BkPlcMc (from V3.0) 3: Inputs

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

Name

Type

Description

AdcValueA

INT

These parameters are used to transfer the input data of the analog terminals.

AdcValueB

INT

ScaleFactorA

LREAL

[bar/ADC_INC] This value represents the weighting. It determines which pressure increase corresponds to a stage of the AD converter.

ScaleOffsetA

LREAL

[bar] This offset is used to correct the zero point of the pressure scale.

ScaleFactorB

LREAL

[bar/ADC_INC] This value represents the weighting. It determines which pressure increase corresponds to a stage of the AD converter.

ScaleOffsetB

LREAL

[bar] This offset is used to correct the zero point of the pressure scale.

ReadingMode

E_TcMcPressureReadingMode

This parameter is used to specify where the result of the evaluation is to be stored.

MC_AxRtReadPressureDiff_BkPlcMc (from V3.0) 4: Inputs/outputs

VAR_INOUT
    Axis:           Axis_Ref_BkPlcMc;
END_VAR

Name

Type

Description

Axis

Axis_Ref_BkPlcMc

Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred.

MC_AxRtReadPressureDiff_BkPlcMc (from V3.0) 5: Outputs

VAR_OUTPUT
    Error:          BOOL;
    ErrorID:        UDINT;
END_VAR

Name

Type

Description

Error

BOOL

The occurrence of an error is indicated here.

ErrorID

UDINT

An encoded indication of the cause of the error is provided here.

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:

If these checks could be performed without problem, the actual pressure of the axis is determined by evaluating the variables AdcValueA and AdcValueB. The result is entered in ST_TcHydAxRtData.fActPressure.

The parameters assigned to an axis can be saved in ST_TcHydAxParam.fCustomerData[...], for example. This ensures that the data are loaded, saved and backed up together with the standard parameters of the axis and are also exported and imported, as required.

Commissioning option A

In this case, no movement of the axis is required. The achievable accuracy is sufficient for high-quality pressure sensors in most cases.

Commissioning option B

In this case, no movement of the axis is required. The achievable accuracy is sufficient for high-quality pressure sensors in most cases.

Commissioning option C

For this option it is necessary that a function block can be approached with full system pressure in both directions. A genuine movement of the axis is not required. Approaching of the end stops can be modeled by limiting the axis movement through provisional limits or even complete mechanical fixing.

Commissioning option D

Alternatively, commissioning can be carried out without axis control. However, the accuracy that can be achieved in this way is much lower.