F_CM_CalculateWoehlerCurve

This function calculates a Wöhler curve from material parameters as input.

    FUNCTION F_CM_CalculateWoehlerCurve : HRESULT
VAR_INPUT
    fSRI               : LREAL;                        (* Stress Range Intercept. *)
    fUTS               : LREAL;                        (* Ultimate Tensile Strength OF the material. *)
    bUseUTSCorrection  : BOOL;                         (* Apply UTS correction. *)
    fK1                : LREAL;                        (* Gradient of Woehler Curve for region N = 1 to nNC1. *)
    fK2                : LREAL;                        (* Gradient of Woehler Curve starting from nNC2. *)
    nNC1               : ULINT;                        (* Transition Point for UTS correction. *)
    nNC2               : ULINT;                        (* Fatigue Transition Point between fK1 and fK2. *)
    fRRatio            : LREAL;                        (* R-Ratio of the material test. *)
    fStepsize          : LREAL;                        (* Width of stress bins. *)
    nCurveLength       : UDINT;                        (* Length of curve. *)
    pCurve             : POINTER TO POINTER TO LREAL;  (* Pointer to array data. *)
END_VAR
F_CM_CalculateWoehlerCurve 1:

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.25

PC or CX (x86, x64)

Tc3_CM_Base