User data for external spindle tasking

The parameters for external spindle tasking must be saved in the structure elements described below. Not all structure elements need to be completed dependent on the type of job for the spindle.

Programmed block feed

Description

Programmed block feed

Information flow

PLC -> CNC

ST path

pAC[axis_idx]^.addr^.McControlIpo_Data.MCControlExtToIpo_ExtToIpo.HLIExtToIpoData_Command.D_VbProg

Unit

10-3 °/s

Data type

DINT

Access

PLC writes

G and M functions

Description

Bit-coded spindle parameters

Information flow

PLC -> CNC

ST path

pAC[axis_idx]^.addr^.McControlIpo_Data.MCControlExtToIpo_ExtToIpo.HLIExtToIpoData_Command.D_GeoGmFkt

Data type

UDINT

Value range

Only the following 2 bits are currently used:

HLI_OPTIM_RICHTEN 0x00000010L Dress rotary axis optimised. When spindle positioning, the target position is approached over the shortest possible path.

HLI_ABSOLUT 0x00000100L Position information absolute

Access

PLC writes

Traverse path

Description

Traverse path (relative or absolute) when positioning the spindle with M19.

Information flow

PLC -> CNC

ST path

pAC[axis_idx]^.addr^.McControlIpo_Data.MCControlExtToIpo_ExtToIpo.HLIExtToIpoData_Command.D_Fahrweg

Unit

10-4 °

Data type

DINT

Access

PLC writes

Type of spindle tasking

Description

The type of spindle tasking is defined with this element.

Information flow

PLC -> CNC

ST path

pAC[axis_idx]^.addr^.McControlIpo_Data.MCControlExtToIpo_ExtToIpo.HLIExtToIpoData_Command.W_SatzTyp

Data type

UINT

Value range

The following values can be used:

1 HLI_NC_MOVE_LIN Linear interpolation

7 HLI_NC_MOVREF Homing

16 HLI_NC_MOVE_ENDLOS Continuous rotation

20 HLI_NC_GETRIEBE Shift gear of axis

29 HLI_NC_SPINDEL_STOP Stopping the spindle from
continuous rotation

30 HLI_NC_SUPER_IMPOSED according PLCopen MC_SuperImposed

31 HLI_NC_TABLE_SELECT Selection of a table according PLCopen
MC_CamTableSelect

32 HLI_NC_CAM_IN according PLCopen MC_CamIn

33 HLI_NC_CAM_OUT according PLCopen MC_CamOut

34 HLI_NC_GEAR_IN according PLCopen MC_GearIn

35 HLI_NC_GEAR_OUT according PLCopen MC_GearOut

36 HLI_NC_PHASING according PLCopen MC_Phasing

38 HLI_NC_TOUCH_PROBE according PLCOpen MC_TouchProbe

39 HLI_NC_ABORT_TRIGGER according. PLCOpen MC_AbortTrigger

Access

PLC writes

Direction of spindle rotation

Description

Defining the direction of spindle rotation

Information flow

PLC -> CNC

ST path

pAC[axis_idx]^.addr^.McControlIpo_Data.MCControlExtToIpo_ExtToIpo.HLIExtToIpoData_Command.W_DrehInfo

Data type

UINT

Value range

The following values apply when the spindle is moving:

0x0000 Negative direction of rotation

0x0001 HLI_SPDL_POS_DREHR Positive direction of rotation

Access

PLC writes