MC_AxRtReadPressureSingle_BkPlcMc (from V3.0)

MC_AxRtReadPressureSingle_BkPlcMc (from V3.0) 1:

The function block handles determination of the actual pressure of the axis from the input data of an analog input terminal.

MC_AxRtReadPressureSingle_BkPlcMc (from V3.0) 2:

If separate input signals are available for the A and B sides, a function block of type MC_AxRtReadPressureDiff_BkPlcMc should be used.

MC_AxRtReadPressureSingle_BkPlcMc (from V3.0) 3: Inputs

VAR_INPUT
    AdcValue:       INT:=0;
    ScaleFactor:    LREAL:=0.0;
    ScaleOffset:    LREAL:=0.0;
    ReadingMode:    E_TcMcPressureReadingMode:=iTcHydPressureReadingDefault;
END_VAR

Name

Type

Description

AdcValue

INT

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

ScaleFactor

LREAL

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

ScaleOffset

LREAL

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

ReadingMode

E_TcMcPressureReadingMode

The actual value to be determined can be specified here. Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fActPressure is selected as default value.

MC_AxRtReadPressureSingle_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_AxRtReadPressureSingle_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 AdcValue. The result is entered in ST_TcHydAxRtData.fActPressure.

MC_AxRtReadPressureSingle_BkPlcMc (from V3.0) 6:

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

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 B

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