Status information of a spindle

Operating state

Description

Current operating state of the spindle

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.ipo_state.spindle.mode_r

Data type

UDINT

Value range

Value

Meaning

1

M05 active

2

M03 active

4

M04 active

8

M19 active

16

Superimposed motion active (PLCopen)

32

RPF active

 

Access

PLC reads

Speed monitoring active

Description

Speed monitoring is activated for the spindle.

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.lr_state.rev_control_aktiv_r

Data type

BOOL

Value range

[TRUE = Speed monitoring is active, FALSE]

Access

PLC reads

Special features

If the axis is not a spindle, the value is undefined.

Nominal speed reached

Description

The spindle has reached the programmed speed setpoint.

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.lr_state.rev_erreicht_r

Data type

BOOL

Value range

[TRUE = Speed setpoint reached, FALSE]

Access

PLC reads

Special features

If the axis is not a spindle, the value is undefined.

Spindle stopped

Description

The spindle speed is lower than the value of vb_min_null (speed = 0) contained in the axis parameter list.

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.lr_state.rev_null_r

Data type

BOOL

Value range

[TRUE = Spindle stopped, FALSE]

Access

PLC reads

Special features

If the axis is not a spindle, the value is undefined.

Speed monitoring invalid

Description

If the speed of rotation of the spindle exceeds the limit speed of the position sensor of the spindle, speed monitoring is deactivated. The limit speed for the position measuring system is defined in the axis parameter list by parameter vb_regelgrenze.

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.lr_state.rev_control_invalid_r

Data type

BOOL

Value range

[TRUE = Speed monitoring invalid, FALSE]

Access

PLC reads

Special features

If the axis is not a spindle, the value is undefined.

Distance to go

Description

Distance to go when positioning with M19

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.ipo_state.spindle.dist_to_go_r

Data type

DINT

Unit

10-4 °

Access

PLC reads

Spindle command error

Description

A command sent to the spindle was not executed due to error.

Signal flow

CNC → PLC

ST path

gpAx[axis_idx]^.ipo_state.spindle_order_error_r

Data type

BOOL

Value range

[TRUE = Command not executed, FALSE]

Access

PLC reads

Special features

Valid only in conjunction with external spindle command by the PLC