Axis-specific variables (V.A.)

The code for axis-specific variables is "V.A. ...".

The axis-specific identifier can be specified in 2 variants:

1: Axis name according to channel list (represented with “X” as example below)

2: Axis index [i] according to channel list where <i>: 0…31

Example:

V.A.ABS.X  or  V.A.ABS[0]

Attention

attention

V.A. variables can only be programmed for linear and rotary axes but not for spindles.

V.A.<var_name>

Meaning

Data type

Unit for
input/output

Permitted access
Read /
Write

MENT.X

Virtual coordinate of the previous NC block

(see Section Mirroring G20-G23)

Real

[mm, inch]

R

PROG.X

Programmed coordinate of the previous NC block During active contour rotation (#ROTATION) the variable supplies the coordinate value mapped onto the machine axes.

Real

[mm, inch]

R

ABS.X

Absolute coordinate of the previous NC block or current absolute coordinate after NC command #CHANNEL INIT each in the currently active coordinate system

Real

[mm, inch]

R

ACS.ABS.X

Current actual axis position in the present coordinate system without offsets.

Real

[mm, inch]

R

ACS.ABS.X

Current actual position during active transformation mapped onto the machine axes.

Real

[mm, inch]

R

-SWE.X

Current effective negative software limit switch

Real

[mm, inch]

R

+SWE.X

Current effective positive software limit switch

Real

[mm, inch]

R

-SWE_MDS.X

Configured negative software limit switch (acc. to P-AXIS-00177).

Real

[mm, inch]

R

+SWE_MDS.X

Configured positive software limit switch (acc. to P-AXIS-00178).

Real

[mm, inch]

R

REF.X

Machine reference point (only assigned after successful machine reference search)

Real

[mm, inch]

R

BZP.X

Reference point offset

Real

[mm, inch]

R

PZV.X

Clamp position offset

Real

[mm, inch]

R

MESS.X

After measurement run completed, supplies the axis-specific measured value in the coordinate system in which measurement took place. The value includes all offsets in the calculation

With 2.5D: ACS values or with CS / TRAFO: PCS values

Real

[mm, inch]

R

Release Note

release_note

As of Build V2.11.2020.07, the axis-specific variables V.A.MEAS.ACS.VALUE and V.A.MEAS.PCS.VALUE supplement the variable V.A.MESS. The additional variables supply the measured value both in the axis coordinate system including all offsets and also the measured value in the programming coordinate system without offsets.

MEAS.ACS.VALUE.X

After measurement run completed, supplies the axis-specific measured value in the axis coordinate system (ACS). The value contains all offsets.

Real

[mm, inch]

R

MEAS.PCS.VALUE.X

After measurement run completed, supplies the axis-specific measured value in the programming coordinate system (PCS). The value does not contain any offsets

Real

[mm, inch]

R

MOFFS.X

Measurement offset

Real

[mm, inch]

R

MERF.X

Measurement run completed? If yes, then 1

Boolean

0 , 1

R

MEIN.X

Included measuring offset

Real

[mm, inch]

R

RERF.X

Homing completed? If yes, then 1

Boolean

0 , 1

R

MANUAL_OFFSETS.X
or SOFFS.X

Motion path in manual mode. Only practical in conjunction with NC command #GET MANUAL OFFSETS.

Real

[mm, inch]

R

MODE.X

Current axis mode

Integer

-

R

MODULO_VALUE.X

Modulo range

Real

[°]

R

LOG_AX_NR.X

Logical axis number of an axis

Integer

-

R

AX_LIST_NAME.X

Configured axis name (acc. to P-AXIS-00297)

String

-

R

AXIS_DEACTIVATED.X

Variable indicates whether the axis was parked via the HLI.

Available as of V2.11.2813

Boolean

-

R

ENCODER2_VALUE.X

Current value of a second encoder (optional) in the drive

Real

[mm, inch]

R

MIRROR.X

Mirror status of axis
(1: no mirroring -1: mirroring)

Integer

-

R

WCS.X

MCS.X

Convert between machine coordinates (MCS) and workpiece coordinates (WCS). Only practical in conjunction with the NC commands #WCS TO MCS and #MCS TO WCS

Real

[mm, inch]

R/W

DIAMETER_PROG.ABS.X

Supplies the value of P-AXIS-00058 if the following applies:
- Diameter programming (G51) is active
- Axis is configured as face turning axis
[as of CNC Build V2.11.2051.00]

Boolean

0 , 1

R

DIAMETER_PROG.REL.X

Supplies the value of P-AXIS-00059 if the following applies:
- Diameter programming (G51) is active
- Axis is configured as face turning axis
[as of CNC Build V2.11.2051.00]

Boolean

0 , 1

R

CROSS_COMP_INIT.X

Is cross compensation initialised for the axis? If yes, then 1

Boolean

0 , 1

R

 

PLANE_COMP_INIT.X

Is plane compensation initialised for the axis? If yes, then 1

Boolean

0 , 1

R

 

LEAD_COMP_INIT.X

Is leadscrew error compensation activated for the axis? If yes, then 1

Boolean

0 , 1

R

 

TEMP_COMP_INIT.X

Is temperature compensation initialised for the axis? If yes, then 1

Boolean

0 , 1

R

 

CROSS_COMP_ACTIVE.X

Is cross compensation active for the axis? If yes, then 1

Boolean

0 , 1

R

 

PLANE_COMP_ACTIVE.X

Is plane compensation active for the axis? If yes, then 1

Boolean

0 , 1

R

 

LEAD_COMP_ACTIVE.X

Is leadscrew error compensation active for the axis? If yes, then 1

Boolean

0 , 1

R

 

TEMP_COMP_ACTIVE.X

Is temperature compensation active for the axis? If yes, then 1

Boolean

0 , 1

R

 

As of CNC Build V2.11.2810 the following V.A. variables of the current compensation values are available.

LEAD_COMP_CURR.X

Current compensation value of LSEC for the axis

Real

[mm, inch]

R

 

CROSS_COMP_CURR.X

Current compensation value of cross compensation for the axis

Real

[mm, inch]

R

 

PLANE_COMP_CURR.X

Current compensation value of plane compensation for the axis

Real

[mm, inch]

R

 

TEMP_COMP_CURR.X

Current compensation value of temperature compensation for the axis

Real

[mm, inch]

R

 

When strings are used for axis designation (e.g. X_SLIDE, see also Sec. 3.1) these axis names are used to identify the variables.

Example: V.A.MENT.X_SCHLITTEN

Programing Example

prg_example

N10 G90 G92 X50

N20 G100 X100

;Meas. run, interrupt 2mm before target

N30 G90 G92 X0

N40 XV.A.MESS.X YV.A.MOFFS.X

;X at 148 (98+50), Y at 2

or

N40 XV.A.MEAS.ACS.VALUE.X YV.A.MOFFS.X

;X at 148 (98+50), Y at 2

N50 XV.A.MEAS.PCS.VALUE.X

;X at 98