Data of the M function/H function

Data of the M function/H function

Description

The function number and the execution time are transferred as additional parameters of an M or H function.

Data type

MHProzess

ST path

pMHProcessData : POINTER TO MHProzess;

Channel-specific, default synchronization:

pMHProcessData := ADR(pMC[channel_idx]^.addr^.ATechnoUnitChannel_Std[tech_unit_idx].MSTHProsessChannel_Attribut.AB_Data[1]);

Channel-specific, cross-block synchronization:

pMHProcessData := ADR(pMC[channel_idx]^.addr^.ATechnoUnitChannel_Late[tech_unit_idx].MSTHProsessChannel_Attribut.AB_Data[1]);

Access

PLC reads

Number of the M function/H function

Description

Number of the M or H function. This corresponds to the number in the case of an M or H function programmed in the NC program.

For instance, if “M4711“ is programmed in the NC program, this leads to a D_Number = 4711.

ST element

. D_Number

Data type

UDINT

Unit

-

Access

Function No.: UDINT;

Function No.:= pMHProcessData^.D_Number

Characteristics

 

Probable execution time M/H function

Description

Contains the values entered in the channel parameters in entry m_prozess_zeit[]. This allows a timeout function for technology functions to be implemented on the part of the PLC. This is also used internally in the NC for estimating the production time. With synchronization type MOS_TS the variable contains the sample time offset of the M-Code.

ST element

. D_Time

Data type

UDINT

Unit

Us

Access

Time : UDINT;

Time := pMHProcessData^.D_Time

Characteristics

The value is the value for the corresponding M/H function defined in the channel parameter set.

Example: The characteristic parameter is as follows for an M function: spindle[index].mX_prozess_zeit.