Axis identification
Axis name (PCS) | |
Description | Name of the logical axis used for the current reference in the current automatic program / manual block (e.g. X, Y, Z). This may be changed by default when the channel (SDA-MDS list) is programmed or dynamically in the NC program by means of a swap command. |
Signal flow | CNC → PLC |
ST path | gpCh[channel_idx]^.bahn_state.coord_r[axis_idx].axis_name_r.zeichen(HLI_ACHS_NAME_LAENGE) |
Data type | STRING(HLI_ACHS_NAME_LAENGE) |
Access | PLC reads |
Axis number (PCS) | |
Description | Logical axis number which is unique system-wide for the axis which is currently traversed on the channel. The logical axis number is defined arbitrarily in the axis parameter lists and is required to identify the axis for axis exchange, etc. (e.g. #CALL AX [X, 1, 0]). |
Signal flow | CNC → PLC |
ST path | gpCh[channel_idx]^.bahn_state.coord_r[axis_idx].log_achs_nr_r gpAx[axis_idx]^.ipo_state.log_achs_nr_r |
Data type | UINT |
Value range | [1, MAX_UNS16] In TwinCAT normally [1, gNrAX] |
Access | PLC is reading |
Axis spindle (ACS) | |
Description | Indicates whether the axis is currently interpolated by the path interpolator (e.g. thread drilling, tapping) or the BF spindle. |
Signal flow | CNC → PLC |
ST path | gpAx[axis_idx]^.ipo_state.spindle_axis_r |
Data type | BOOL |
Value range | [TRUE = the axis is traversed by the BF spindle, FALSE] |
Access | PLC is reading |
Axis type (PCS) | |
Description | Type of axis |
Signal flow | CNC → PLC |
ST path | gpCh[channel_idx]^.bahn_state.coord_r[axis_idx].axis_type_r gpAx[axis_idx]^.ipo_state.type_r |
Data type | UINT |
Value range | 1 = Translator, 2 = Rotator, 4 = Spindle |
Access | PLC is reading |
Channel number of the axis | |
Description | Number of the channel (corresponding to the parameterisation of P-CHAN-00400)
The following applies to the channel number displayed: == 0: Axis is currently not in a channel or spindle is not processing any channel command. != 0 and <= HLI_SYS_CH_MAX: Axis is assigned to a channel or spindle is executing a channel command.
Only with one spindle: == (HLI_SYS_CH_MAX + 1): Spindle executes a command which was sent by the PLC. |
Signal flow | CNC → PLC |
ST path | gpAx[axis_idx]^.lr_state.cnc_channel_r gpAx[axis_idx]^.ipo_state.cnc_channel_r |
Data type | UINT |
Value range | Axis: [0, HLI_SYS_CH_MAX] Spindle: [0, (HLI_SYS_CH_MAX + 1)] |
Access | PLC is reading |