Data of the M/H function

Data of the M/H function

Description

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

Data type

HLI_M_H_PROZESS

ST Path

pMHProcess: POINTER TO HLI_M_H_PROZESS;

 

Channel-specific, default synchronisation:

pMHProcess := ADR(gpCh[channel_idx]^.techno_unit_std_sync[tech_unit_idx].attribut_r.data[0]);

 

Channel-specific, cross-block synchronisation:

pMHProcess := ADR(gpCh[channel_idx]^.techno_unit_late_sync[tech_unit_idx].attribut_r.data[0]);

Access

PLC is reading

Number of the M function/H function

Description

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

Example: For instance, if M4711 was programmed.

ST Element

.nr

Data type

UDINT

Access

FktNr: UDINT;

FktNr := pMHProcess^.nr

Probable execution time M/H function

Description

Contains values configured for the channel parameters in the entry P-CHAN-00040 or P-CHAN-00026 (m_prozess_zeit[]). These values can be used to implement timeout monitoring for technology functions in the PLC application.

or

If synchronisation type MOS_TS is configured, the sample time offset of the M/H technology function is indicated in this element. It is calculated and output by the NC kernel.

ST Element

.time

Data type

DINT

Unit

µs

Access

Time     : DINT;

Time := pMHProcess^.time

Characteristics

Re. 1.): For spindle-specific M functions the corresponding parameter is called mX_prozess_zeit where [X = 3, 4, 5, 19].

Example: The parameter for the M3 function of a spindle is:

spindel[index].m3_prozess_zeit.

Block number of the M/H function

Description

Block number from the NC program to specify the program line in the NC program in which the M or H function was programmed.

ST Element

.satz_nr

Data type

UDINT

Access

BlockNr     : UDINT;

BlockNr := pMHProcess^.satz_nr

Program line number of the M/H function

Description

Number of the NC program line in which the M/H function was programmed.

ST Element

.prg_zeilen_nr

Data type

UDINT

Access

PrgLineNr: UDINT;

PrgLineNr := pMHProcess^.prg_zeilen_nr

Number as additional information

Description

A number assigned to an M or H function in the NC program and transferred when the M/H function is output to the interface.

See [PROG//M/H- functions with additional information].

ST Element

.add_nr_r

Data type

DINT

Access

AddNr     : DINT;

AddNr := pMHProcess^.add_nr_r

Number of cross-block synchronised technology functions not acknowledged by the PLC

Description

Number of technology functions not yet acknowledged by the PLC but with cross-block synchronisation and waiting at the interface. The number contains all types of technology functions.

ST Element

.nr_late_sync

Data type

UINT

Access

NrLateSync     : UINT;

NrLateSync := pMHProcess^.nr_late_sync

Synchronisation type of the M/H function

Description

Synchronisation type of an M or H function. This value corresponds to the values defined in the channel parameters P-CHAN-00041 and P-CHAN-00027 for a particular technology function.

ST Element

.synch_ctrl

Data type

DWORD

Access

SynchCtrl: DWORD;

SynchCtrl := pMHProcess^.synch_ctrl

Characteristics

This datum is not available in all PLC environments.