Data of the S function
If M functions (M03, M04, M05, M19) relating to a spindle are programmed in the NC program, the technology function data is saved as an S function at the relating axis specific HLI area.
Data of the M function/H function | |
Description | The parameters of an S function are contained in structure Sprozess. |
Data type | Sprozess |
ST path | pSProcessData : POINTER TO SProzess; Axis-specific, default synchronization: pSProcessData := ADR(pAC[axis_idx]^.addr^.ATechnoUnitAxe_Std[tech_unit_idx].MSTHProsessAxe_Attribut.AB_Data[1]); Axis-specific, cross-block synchronization: pSProcessData := ADR(pAC[axis_idx]^.addr^.ATechnoUnitAxe_Late[tech_unit_idx].MSTHProsessAxe_Attribut.AB_Data[1]); |
Access | PLC reads |
Position setpoint of spindle in the case of M19 | |
Description | Position setpoint in the case of spindle position with M19 |
ST element | .D_Pos |
Data type | DINT |
Unit | 10-4 ° |
Access | ActivePosition : DINT; ActivePosition := pSProcessData^.D_Pos;pMHProcessData^.D_Pos |
Characteristics |
|
Programmed spindle speed | |
Description | Programmed spindle speed |
ST element | . D_Rev |
Data type | DINT |
Unit | 10-3 °/s |
Access | PrgRevolution : DINT; PrgRevolution: = pSProcessData^.D_Rev; |
Characteristics |
|
Probable execution time | |
Description | Time probably required for processing an S function. |
ST element | . D_Zeit |
Data type | UDINT |
Unit | μs |
Access | ExpectedTime : UDINT; ExpectedTime:= pSProcessData^.D_Zeit; |
Characteristics |
|
Number of the M function of the spindle indexing function | |
Description | Number of the spindle indexing function (M03, M04, M05) |
ST element | . W_MoveCmd |
Data type | UINT |
Unit |
|
Value range | 3 M03 4 M04 5 M05 |
Access | MoveCmdNum : UINT; MoveCmdNum := pSProcessData^.W_MoveCmd; |
Characteristics |
|
Number of the M function of the spindle positioning function | |
Description | Number of the spindle positioning function (M19) |
ST element | . W_PosCmd |
Data type | UINT |
Value range | 0 No M function specified 19 stands for M19 |
Access | PosCmdNum : UINT; PosCmdNum := pSProcessData^.W_PosCmd; |
Characteristics |
|
Axis number | |
Description | Number of a logical axis/spindle, unique system-wide |
ST element | . W_log_AxeNr |
Data type | UINT |
Value range | [1, nAxis] |
Access | LogAxisNum : UINT; LogAxisNum := pSProcessData^.W_Log_AxeNr; |
Characteristics |
|