User data for external spindle commands

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

Programmed block feed

Description

Programmed block feed

Signal flow

PLC → CNC

ST path

gpAx[axis_idx]^.ipo_mc_control.ext_to_ipo.command_w.vb_prog

Data type

DINT

Unit

10-3 °/s

Access

PLC writes

G and M functions

Description

Bit-encoded spindle parameters

Signal flow

PLC → CNC

ST path

gpAx[axis_idx]^.ipo_mc_control.ext_to_ipo.command_w.geo_gm_fkt

Data type

UDINT

Value range

Only the following 2 bits are currently used:

 

Constant

Value

Description

HLI_OPTIM_RICHTEN

0x00000010L

Dress optimised rotary axis. When positioning the spindle, the target position is approached by the shortest possible path.

HLI_ABSOLUT

0x00000100L

Position information absolute

 

Access

PLC writes

Motion path

Description

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

Signal flow

PLC → CNC

ST path

gpAx[axis_idx]^.ipo_mc_control.ext_to_ipo.command_w.fahrweg

Data type

DINT

Unit

10-4 °

Access

PLC writes

Type of spindle commands

Description

The type of spindle commands is defined with this element.

Signal flow

PLC → CNC

ST path

gpAx[axis_idx]^.ipo_mc_control.ext_to_ipo.command_w.satz_typ

Data type

UINT

Value range

Value

Constant

Meaning

1

HLI_NC_MOVE_LIN

Linear interpolation

7

HLI_NC_MOVREF

Homing

16

HLI_NC_MOVE_ENDLOS

Endless rotation

20

HLI_NC_GETRIEBE

Spindle gear changes

29

HLI_NC_SPINDEL_STOP

Stopping the spindle from endless rotation

30

HLI_NC_SUPER_IMPOSED

accordingly PLCopen MC_SuperImposed

31

HLI_NC_TABLE_SELECT

Selection of a table according to PLCopen MC_CamTableSelect

32

HLI_NC_CAM_IN

accordingly PLCopen MC_CamIn

33

HLI_NC_CAM_OUT

accordingly PLCopen MC_CamOut

34

HLI_NC_GEAR_IN

accordingly PLCopen MC_GearIn

35

HLI_NC_GEAR_OUT

accordingly PLCopen MC_GearOut

36

HLI_NC_PHASING

accordingly PLCopen MC_Phasing

38

HLI_NC_TOUCH_PROBE

accordingly PLCopen MC_TouchProbe

39

HLI_NC_ABORT_TRIGGER

accordingly PLCopen MC_AbortTrigger

 

Access

PLC writes

Direction of spindle rotation

Description

Defining the direction of spindle rotation

Signal flow

PLC → CNC

ST path

gpAx[axis_idx]^.ipo_mc_control.ext_to_ipo.command_w.dreh_info

Data type

UINT

Value range

The following values apply when the spindle moves:

 

Value

Constant

Meaning

0x0000

---

Negative direction of rotation

0x0001

HLI_SPDL_POS_DREHR

Positive direction of rotation

 

Access

PLC writes