Global variables (V.G.)

The identifier for inter-axis globally valid variables in the channel is "V.G. ...".

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.G.NP_AKT.V.X  or  V.G.NP_AKT.V[0]

 

V.G.<var_name>

 

Meaning

 

Data type

 

Unit for
input/output

Permitted access:
R
ead/
W
rite

BLOCK_NR

The last programmed NC block number

Integer

-

R

MASS_MM

If measuring unit [mm], then 0

Boolean

0 , 1

R

MASS_360

If measuring unit [°], then 0

Boolean

0 , 1

R

I

I coordinate of circular programming. With active centre point compensation (G165), access to corrected value

Real

[mm, inch]

R

J

J coordinate of circular programming. With active centre point compensation (G165), access to corrected value

Real

[mm, inch]

R

K

K coordinate of circular programming. With active centre point compensation (G165), access to corrected value

Real

[mm, inch]

R

R

The radius traversed during circular interpolation

Real

[mm, inch]

R

FEEDRATE

The last programmed feedrate (F word)

Real

[mm/min,
m/min,
inch/min]

R

FEEDRATE_MODE

G number of current feedrate mode:

93: G93 active, 94: G94 active, 95: G95 active,
194: G194 active [as of V2.11.2039.01]

Integer

-

R

FEEDRATE_SCALE

Permits adaptation of a feedrate programmed in mm/min to the unit specified in 'prog_start.feedrate_factor' (P-CHAN-00108).

Supplies the value

1000 for 'prog_start.feedrate_factor' = 0.1 (m/min)

1 for 'prog_start.feedrate_factor' = 100 (mm/min)

Programming example:

F2000 / V.G.FEEDRATE_SCALE results for

1000: F2 (m/min)

1: F2000 (mm/min) [as of V2.11.2024.00]

Integer

-

R

MERR[i]

Compensation offset of circle centre point in the main axes of the current plane where <i> := 0 , 1

Real

[mm, inch]

R

The “WZ[j]” variables permit read access to the data of any tool. They are both available with an external tool management system (transparent access) and for use of an internal tool table (<j> then corresponds to the index of the tool (or the tool number) in the tool list [5]).

Write access is only permitted if an internal tool table is used.

WZ[j].R

Radius of the tool

Real

[mm, inch]

R/W*

WZ[j].L

Length of the tool

Real

[mm, inch]

R/W*

WZ[j].P[i]

Tool parameter where <i>: 0 … 59

Real

-

R/W*

WZ[j].V[i] or WZ[j].V.X

Offset in axis <i> or "X" of the tool where < i>: 0 … 31

Real

[mm, inch]

R/W*

WZ[j].ME

Measuring unit of radius, length and axis offsets, always supplies 0 (for [mm]) when a tool list is used, otherwise the variable has no significance

Boolean

0 , 1

R

WZ[j].OK

Validity flag of the tool;
if valid, then 1

Boolean

0 , 1

R/W*

WZ[j].SPDL_AX_NR

Logical axis number of the assigned spindle

Integer

-

R/W*

WZ[j].KIN_PARAM[i]

Kinematic parameters of the tool in internal unit where < i>: 0 … 69

Real

[0.1 µm,
10-4°]

R/W*

WZ[j].KIN_ID

Kinematics ID of the tool

Integer

-

R/W*

WZ[j].TYPE

Tool type (0: Milling tool 1: Turning tool 2: Grinding tool)

Integer

-

R

WZ[j].TOOL_FIXED

Tool is alignable or fixed

Boolean

0 , 1

R/W*

WZ[j].SRK_ID

Cutter orientation of a turning tool

Integer

-

R/W*

WZ[j].S_MIN_SPEED

Minimum rotational speed (tool dynamic data)

Real

[rpm]

R/W*

WZ[j].S_MAX_SPEED

Maximum rotational speed (tool dynamic data)

Real

[rpm]

R/W*

WZ[j].S_MAX_ACC

Maximum acceleration (tool dynamic data)

Real

[°/s2]

R/W*

WZ[j].SISTER_VALID

Validity flag of sister tool (TOOL ID)

Boolean

0 , 1

R/W*

WZ[j].SISTER

Number of valid sister tool

Integer

-

R/W*

WZ[j].VARIANT_VALID

Validity flag of variant tool (TOOL ID)

Boolean

0 , 1

R/W*

WZ[j].VARIANT

Number of valid variant tool

Integer

-

R/W*

WZ[j].GOBJECT[i].*

Access to the subelements of a specific graphical object [as of Build V3.01.3018.00] where <i>: 0 … 4

-

-

WZ[j].LINKPOINT.*

Access to the subelements of associated linkpoints [as of Build V3.01.3018.00]

-

-

...

S*: Write access to data of the internal tool management system as of CNC Build V3.1.3079.08

The variables “WZ_AKT”, “T_AKT” and “D_AKT” permit access to the data of the currently selected tool. These variables are available both for an external tool management system and for the use of an internal tool table.

T_AKT

Number of the selected tool

Integer

-

R

D_AKT

Number of the selected tool compensation record

Integer

-

R

Notice

notice

A write access always causes the temporary change of tool data as long as this function is selected. When a new tool is selected (Dxx) or deselected (D0), the changed data are lost.

Exception:

When an external tool management system is used, the so-called additional tool data (V.G.WZ_AKT.P[i]) is adopted and saved when a new tool is selected or a tool is deselected (P-CHAN-00103).

WZ_AKT.R

Radius of the selected tool

Real

[mm, inch]

R/W

WZ_AKT.L

Length of the selected tool

Real

[mm, inch]

R/W

WZ_AKT.P[i]

Free parameters of the selected tool where <i>: 0 … 59

Real

-

R/W

WZ_AKT.V[i] or
WZ_AKT.V.X

Offset in axis <i> or "X" of the selected tool where < i>: 0 … 31

Real

[mm, inch]

R/W

WZ_AKT.ME

Measuring unit of radius, length and axis offsets of the selected tool, always supplies 0 (for [mm]) when a tool list is used, otherwise the variable has no significance

Boolean

0 , 1

R

WZ_AKT.OK

Validity flag of the selected tool;
is always 1 since only data of valid tools are adopted. An error message is output if invalid tools are requested

Boolean

0 , 1

R/W*

WZ_AKT.SPDL_AX_NR

Logical axis number of the assigned spindle

Integer

-

R/W*

WZ_AKT.KIN_PARAM[i]

CAUTION: Note on write access: Value must be programmed in internal units.

Kinematic parameters of the selected tool where < i>: 0 … 69

Real

[0.1 µm,
10-4°]

R/W

WZ_AKT.KIN_ID

Kinematic ID of the selected tool

Integer

-

R/W*

WZ_AKT.TYPE

Tool type of the selected tool
(0: Milling tool 1: Turning tool 2: Grinding tool)

Integer

-

R

WZ_AKT.TOOL_FIXED

Tool is alignable or fixed

Boolean

0 , 1

R/W

WZ_AKT.SRK_ID

Cutter orientation of the selected turning tool

Integer

-

R/W*

WZ_AKT.S_MIN_SPEED

Minimum rotational speed (tool dynamic data)

Real

[rpm]

R/W*

WZ_AKT.S_MAX_SPEED

Maximum rotational speed (tool dynamic data)

Real

[rpm]

R/W*

WZ_AKT.S_MAX_ACC

Maximum acceleration (tool dynamic data)

Real

[°/s2]

R/W*

WZ_AKT.SISTER_VALID

Validity flag of sister tool (TOOL ID)

Boolean

0 , 1

R/W*

WZ_AKT.SISTER

Number of valid sister tool

Integer

-

R/W*

WZ_AKT.VARIANT_VALID

Validity flag of variant tool (TOOL ID)

Boolean

0 , 1

R/W*

WZ_AKT.VARIANT

Number of valid variant tool

Integer

-

R/W*

WZ_AKT.WEAR_RADIUS

Total radius wear with radius compensation (OTC) (sum of discrete + continuous wear)

Real

[mm, inch]

R

WZ_AKT.WEAR_RADIUS_CONT

Continuous radius wear with radius compensation (OTC)

Real

[mm, inch]

R

WZ_AKT.WEAR[i] or
WZ_AKT.WEAR.X

Wear in axis <i> or "X" with length compensation (OTC) where < i>: 0 … 31

Real

[mm, inch]

R

WZ_AKT.WEAR_CONST

Wear constant (OTC)

Real

[0.1 µm/m]

R/W

WZ_AKT.GOBJECT[i].*

Access to the subelements of a specific graphic object (see FCT-C15) [as of V3.01.3018.00] where < i>: 0 … 4

-

-

-

WZ_AKT.LINKPOINT.*

Access to the subelements of associated link points (see FCT-C15) [as of V3.01.3018.00]

-

-

-

S*: Write access to these current tool data as of CNC Build V3.1.3079.08

NP[j].V[i] or
NP[j].V.X

Zero offset of an axis <i> or "X” where <j>: 0 … 96 and <i>: 0 … 31

CAUTION: Write access causes permanent changes to internal zero offset data.

Real

[mm, inch]

R/W

NP[j].ALL

Address all axes of a zero offset group where <j>: 0 … 96

CAUTION: Write access causes permanent changes to internal zero offset data.

Real

[mm, inch]

R/W

NP_AKT.V[i] or
NP_AKT.V.X

Currently (active) zero offset of an axis <i> or "X” where <i>: 0 … 31

Real

[mm, inch]

R/W

NP_AKT.ALL

Address (currently active) zero offsets of all axes

Real

[mm, inch]

R/W

NP_AKT.IDX

Index of the (currently active) zero offset group (e.g. 0 with G53, 1 with G54, etc.)

Integer

-

R

NP_DEFAULT

Index of zero offset group after start-up effective in initial state

Integer

-

R/W

The following variables can be used with a CS stack that was programmed with #(A,B)CS DEF or #(A,B)CS ON without ID specification. [as of V3.01.3080.03]

BCS_COUNT_DEF

Number of defined BCS

Integer

-

R

BCS_COUNT_FREE_DEF

Number of free places to define BCS

Integer

-

R

BCS_COUNT_ACTIVE

Number of active (linked) BCS

Integer

-

R

ACS_COUNT_DEF

Number of defined ACS

Integer

-

R

ACS_COUNT_FREE_DEF

Number of free places to define ACS

Integer

-

R

ACS_COUNT_ACTIVE

Number of active (linked) ACS

Integer

-

R

CS_COUNT_DEF

Number of defined CS

Integer

-

R

CS_COUNT_FREE_DEF

Number of free places to define CS

Integer

-

R

CS_COUNT_ACTIVE

Number of active (linked) CS

Integer

-

R

The following variables can be used with a CS stack that was programmed with #(A,B)CS ADD or #(A,B)CS SELECT. [as of V3.01.3080.03]

COORD_SYS_BCS_COUNT_DEF

Number of defined BCS

Integer

-

R

COORD_SYS_ACS_COUNT_DEF

Number of defined ACS

Integer

-

R

COORD_SYS_CS_COUNT_DEF

Number of defined CS

Integer

-

R

COORD_SYS_COUNT_ALL_DEF

Total number of defined coordinate systems (BCS+ACS+CS)

Integer

-

R

COORD_SYS_COUNT_ALL_ACTIVE

Total number of active coordinate systems after #CS SELECT

Integer

-

R

CNC_CHANNEL

Channel number

Integer

-

R

IPO_COUNT

System time counter

Integer

-

R

CS

Active tool compensation (1: RTCP 2: TLC 3: 2.5D )

Integer

-

R

TOOL_COMP

Current clamp position offset index

Integer

-

R

AX_LINK.NR

Number of current or last active coupling group

Integer

-

R

AX_LINK.ACTIVE

Is an axis coupling (#AX LINK ON) active? If active, then 1

Boolean

0 , 1

R

AX_LINK_GROUP[i].ACTIVE

Is a specific coupling group with the number < i>: 0 … 4 active? If active, then 1

Boolean

0 , 1

R

ROT_ACTIVE

Contour rotation (#ROTATION...) active? If active, then 1

Boolean

0 , 1

R

ROT_ANGLE

Angle of contour rotation

Real

[°]

R

ROT_CENTER1

Offset of 1st main axis to rotation point with contour rotation

Real

[mm, inch]

R

ROT_CENTER2

Offset of 2nd main axis to rotation point with contour rotation

Real

[mm, inch]

R

TIMER[i]

Counter value of timer with number
<i>: 0 … 127

Integer

[ms]

R

PROG_ABS

Measuring system, 0: G91 active 1: G90 active

Boolean

0 , 1

R

ACT_PLANE

G number of current active plane:

17: G17 active, 18: G18 active, 19: G19 active

Integer

-

R

CNC_RELEASE

Build number of CNC version (old syntax)

Integer

-

R

CNC_VERSION.MAJOR

Major version of CNC [as of V2.11.2800]

(e.g. 2 with V2.11.2807.42)

Integer

-

R

CNC_VERSION.MINOR

Minor version of CNC [as of V2.11.2800]

(e.g. 11 with V2.11.2807.42))

Integer

-

R

CNC_VERSION.BUILD

Build number of CNC version [as of V2.11.2800]

(e.g. 2807 with V2.11.2807.42))

Integer

-

R

CNC_VERSION.PATCH

Patch number of CNC version [as of V2.11.2800]

(e.g.. 42 with V2.11.2807.42)

Integer

-

R

WCS_POSLIMIT_1

WCS_POSLIMIT_2

WCS_POSLIMIT_3

Motion limits in the main axes in WCS.

Only practical in conjunction with the NC command #GET WCS POSLIMIT

Real

[mm, inch]

R

SIGNAL_READ

Read a signal without waiting [as of V2.11.2820.00]

1: Signal present and read,

0: Signal not present

Only practical in conjunction with the NC command #SIGNAL READ

Boolean

0 , 1

R

EXECUTION_MODE

Execution mode in the NC program job, for meaning of value see HLI description

Integer

-

R

RANDOM

Supplies a random value in the range 0.0 to 1.0

Variable is not available under TwinCAT.

Real

-

R

The following variables permit access to the data of kinematics defined in the channel parameter list.

In versions up to V2.11.28xx and for single step transformations from V3.00, access uses V.G.KIN[j].* (where j:= kinematic ID).

For multi-step transformations (as of Build V3.00.3012.00), access uses V.G.KIN_STEP[i].ID[j].*

(where i:= transformation step 0 or 1 and j:= kinematic ID).

Attention

attention

Write access causes a permanent change to internal channel parameter data. Value must be programmed in internal units.

The changes are retained until the next start-up or updating of the channel parameter list.

(single-stage up to V3.00.3017.01):

V.G.KIN[j].*

(multi-stage up to V3.00.3018.00):

V.G.KIN_STEP[i].ID[j].*

Meaning

Data type

Unit for
input/output

R/W*

PARAM[k]

Kinematic parameter where <k>:= 0 ... 69

Real

[0.1 µm,
10-4°]

R/W

* Permitted access: R/W = Read/Write

In addition, the following variables listed are provided for access to the data of the Universal Kinematic (ID 91, [FCT-C27])

ZERO_ORIENTATION[k]

Initial orientation of the tool where

<k>:= 0, 1, 2 (X, Y, Z)

Real

-

R/W

ZERO_POSITION[k]

Initial position of the tool where

<k>:= 0, 1, 2 (X, Y, Z)

Real

[0.1 µm,
10-4°]

R/W

PROGRAMMING_MODE

Programming mode, see P-CHAN-00112

Integer

-

R/W

RTCP

Angle transformation

Boolean

-

R/W

NUMBER_OF_AXES

Number of axes in kinematic chain

Integer

-

R/W

AXIS[k].*

Axis of kinematic chain where

<k>:= 0 … 5

-

-

-

AXIS[k].TYPE

Axis type (1: translatory, 2: rotary)

Integer

-

R/W

AXIS[k].ORIENTATION[l]

Orientation vector of axis (direction) where

<l>:= 0, 1, 2 (X, Y, Z)

Real

-

R/W

AXIS[k].POINT[l]

Interpolation vertex on axis where

<l>:= 0, 1, 2 (X, Y, Z)

Real

[0.1 µm,
10-4°]

R/W

CHAIN[k]

Description of axis sequence in the kinematic chain where

<k>:= 0 … 5

Integer

-

R/W

The 3 variables below permit read access to the currently selected kinematic ID:

V.G.KIN_ID

Currently selected kinematic ID for single-step transformations

Integer

-

R

V.G.KIN_ID_STEP[0]

Currently selected kinematic of the first step with multi-step transformations [as of Build V3.00.3018.00]

Integer

-

R

V.G.KIN_ID_STEP[1]

Currently selected kinematic of the second step with multi-step transformations [as of Build V3.00.3018.00]

Integer

-

R

TOTAL_KIN_OFFSET[i]

Effective total offset of the selected kinematics, consisting of the sum of kinematic offsets of the active tool and the kinematic offsets in the channel parameter list where <i>:= 0 … 69

[as of V2.11.2024.00]

Real

[0.1 µm,
10-4°]

R

MAIN_FILE_NAME

File name of the NC main program.
With MDI or manual block the variable supplies the filename “-”.

String

-

R

MAIN_PROG_NAME

Name (%...) of the NC main program

String

-

R

MAIN_PROG_NR

Number of the NC main program if the program name is a digit

Integer

-

R

FILE_NAME

File name of the currently active NC program

String

-

R

PROG_NAME

Name (%...) of the currently active NC program

String

-

R

PROG_NR

Number of the currently active NC program if the NC program name is a digit

Integer

-

R

PROG_LEVEL

Program level of the currently active NC program:

1: Main program

≥ 2: Local or global subroutine

Integer

-

R

PATH_NR

Logical path number of the currently active NC main or global subroutine contained in the start–up list (P-STUP-00019)

Integer

-

R

FILE_OFFSET

File position of start of the NC block where V.G.FILE_OFFSET is programmed

Integer

-

R

MIRROR_ACTIVE

Mirroring (G351 X... or G21, G22, G23) active?
If active, then 1

Boolean

0 , 1

R

BLOCK_SEARCH_ACTIVE

Block search active? If active, then 1

Boolean

0 , 1

R

TRAFO_ACTIVE

Kinematic transformation (#TRAFO...) active?
If active, then 1

Boolean

0 , 1

R

MCS_ACTIVE

Temporary transition to the machine axis coordinate system (#MCS...) active?
If active, then 1

Boolean

0 , 1

R

HSC_ACTIVE

Free-form surface machining (#HSC...) or spline interpolation (#SPLINE... or G151) active?
If active, then 1

Boolean

0 , 1

R

HSC_SURFACE_ACTIVE

Is free-form surface machining (#HSC [SURFACE...]) active? If active, then 1

Boolean

0 , 1

R

CONT_MODE_ACTIVE

Polynomial contouring (G261) active?
If active, then variable supplies the value of the current contouring type:

3 with contouring type DIST

4 with contouring type DEV

5 with contouring type POS

6 with contouring type DIST_SOFT

6 with contouring type DIST_MASTER

7 with contouring type PTP

0 with G260

Integer

-

R

TRC_ACTIVE

Tool radius compensation (G41, G42) active?
If active, then 1

Boolean

0 , 1

R

OTC_ACTIVE

Online tool compensation (#OTC…) active?
If active, then 1

Boolean

0 , 1

R

CAXTRACK_ACTIVE

Is C axis tracking (#CAXTRACK…) active?
If active, then 1

Boolean

0 , 1

R

CYCLE_ACTIVE

Is the current program level a cycle? If the current program was called with L or LL CYCLE... or G8xx with parameter transfer, then 1

Boolean

0 , 1

R

@P[i].VALID

Is transfer parameter programmed in the cycle call or subroutine call programmed with G8xx?

0: Parameter is not programmed

1: Parameter is programmed

Where <i>: = 1 ... 200 the number of the parameter subjected to a validity check is specified. (E.g. 1 for @P1 or on request of the first parameter when called with G8xx).

NOTE for read access: The variable can only be used inside a cycle or in global subroutines G8xx with parameter transfer.

Boolean

0 , 1

R

TIME_STAMP

Current time stamp <date time> in format
<DD.MM.YYYY hh:mm:ss:zzz>:

D: Day, two-digit

M: Month, two-digit

Y: Year, four-digit

h: Hours, two-digit

m: Minutes, two-digit

s: Seconds, two-digit

z: Milliseconds, three-digit

(e.g. 16.06.2015 14:08:10:123) [as of V2.10.1507.02]

String

-

R

TIME_STAMP_FILE_NAME

Current time stamp <date time> in the format as per ISO 6801:2004 <YYYYMMDDThhmmsszzz> without '.' and ':' e.g. for use in names of log files where:

Y: Year, always four-digit

M: Month, two-digit

D: Day, two-digit

h: Hours, two-digit

m: Minutes, two-digit

s: Seconds, two-digit

z: Milliseconds, three-digit

(e.g. 20150616T140810123) [as of V2.11.2024.03]

String

-

R

LIFT_ACTIVE

Lifting/lowering an axis (X[LIFT...]) active?
If active, then 1

Boolean

0 , 1

R

The following variables permit access to data of the M/H functions defined in the channel parameters.

Notice

notice

When M/H functions are defined with pre-output function (MEP_SVS, MET_SVS), the following must be taken into consideration:

If write access (S) to the pre-output values and the synchronisation modes of the M/H functions do not match, the synchronisation mode is implicitly adapted.

If read access (L) to the pre-output values and the synchronisation modes of the M/H functions do not match, an error message is output.

Attention

attention

The changes are retained until the next start-up or updating of the channel parameter list.

M_FCT[i].SYNCH

Synchronisation type of an M function <i> defined in the P-CHAN-00041 channel parameters. The value of the synchronisation type is specified in hexadecimal notation ‘Hex‘.

Integer

-

R/W

M_FCT[i].PRE_OUTP_PATH

Pre-output path m_pre_output of an M function <i> of type MEP_SVS defined in the P-CHAN-00070 channel parameters

Real

[mm, inch]

R/W

M_FCT[i].PRE_OUTP_TIME

Pre-output time m_pre_output of an M function <i> of type MET_SVS in the P-CHAN-00070 channel parameters

Real

[s]

R/W

H_FCT[i].SYNCH

Synchronisation type of an H function <i> defined in the P-CHAN-00027 channel parameters. >. The Synchronisation type of H functions (P-CHAN-00027) is specified in hexadecimal notation ‘Hex‘.

Integer

-

R/W

H_FCT[i].PRE_OUTP_PATH

Pre-output path h_pre_output of an H function <i> of type MEP_SVS defined in the P-CHAN-00107 channel parameters

Real

[mm, inch]

R/W

H_FCT[i].PRE_OUTP_TIME

Pre-output time h_pre_output of an H function <i> of type MET_SVS in the P-CHAN-00107 channel parameters

Real

[s]

R/W

The "V.G.SPEED_LIMIT” variables permit access to parameters pre-assigned in the channel parameters for speed limit look ahead [1]-6.

Notice

notice

With write access the changed parameterisation is output to the channel. A possibly active motion is interrupted.

If write access (S) to these values and the unit of the distance parameters do not match, the unit is implicitly adapted.

If read access (L) to these values and the unit of the distance parameters do not match, an error message is output.

Attention

attention

The changes are retained up to program end or RESET. After program start the settings of the channel parameters are valid again.

SPEED_LIMIT.ENABLE

Selecting/deselecting speed limit look ahead (0: deselect 1: select)

Boolean

0 , 1

R/W

SPEED_LIMIT.VEL_LIMIT

Definition of speed limit value

Integer

[%]

R/W

SPEED_LIMIT.TIME

Defining the unit of the distances to and from the "corner" (0: path 1: time)

Boolean

0 , 1

R/W

SPEED_LIMIT.DIST_TO_CORNER

Path distance to "corner"

Real

[mm, inch]

R/W

SPEED_LIMIT.DIST_FROM_CORNER

Path distance from "corner"

Real

[mm, inch]

R/W

SPEED_LIMIT.TIME_TO_CORNER

Time distance to "corner"

Real

[s]

R/W

SPEED_LIMIT.TIME_FROM_CORNER

Time distance from "corner"

Real

[s]

R/W

SPEED_LIMIT.OVERRIDE_WEIGHT

Weighting of speed limit value (0: no weighting
1: weighting by override)

Boolean

0 , 1

R/W

MAX_NC_BLOCKS_AHEAD

Block-related decoder block ahead limiting: all NC blocks

Integer

-

R/W

MAX_MOTION_BLOCKS_AHEAD

Block-related decoder block ahead limiting: NC motion blocks only

Integer

-

R/W

MAX_TIME_AHEAD

Time-related decoder block ahead limiting

Real

[s]

R/W

CIRCLE_CP_ABS

Circle centre point definition, 0: G162 active 1: G161 active

Boolean

0 , 1

R

CIRCLE_CPC_ACTIVE

Is circle centre point correction (G165) active?

If active, then 1

0 with G164

Boolean

0 , 1

R

SEGMENTATION_ACTIVE

Is segmentation (#SEGMENTATION...) active? If active, then 1

Boolean

0 , 1

R

STROKE_DEF_ACTIVE

Is definition of a stroke motion (#STROKE DEF…) active? If active, then 1

Boolean

0 , 1

R

PUNCH_ACTIVE

Punching (#PUNCH...) active?
If active, then 1

Boolean

0 , 1

R

NIBBLE_ACTIVE

Nibbling (#NIBBLE...) active?
If active, then 1

Boolean

0 , 1

R

EDM_ACTIVE

EDM machining (#EDM...) active?
If active, then 1
[as of CNC Build V3.1.3019]

Boolean

0 , 1

R

FRICTION_ACTIVE

Recording friction compensation values (#FRICTION ON […] active?
If active, then 1
[as of CNC Build V2.11.2022.05]

Boolean

0 , 1

R

VECTOR_OFFSET_ACTIVE

Is cutting edge compensation (#VECTOR OFFSET...) active? If active, then 1

Boolean

0 , 1

R

DIAMETER_PROG_ACTIVE

Is diameter programming (G51) active?
If active, then 1
[as of CNC Build V2.11.2051.00]

Boolean

0 , 1

R

DIAMETER_PROG.ZERO_OFFSET

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

Boolean

0 , 1

R

FILE_EXIST

Result of request with #FILE EXIST

If file check is positive, then 1

Boolean

0 , 1

R

MEAS_TYPE

Value of currently active measuring type [as of V2.11.2022.03]

Integer

-

R

TRACK_CS.X

TRACK_CS.Y

TRACK_CS.Z

TRACK_CS.A

TRACK_CS.B

TRACK_CS.C

Values of master position with dynamic coordinate system (see [FCT-C30]).

REAL

[mm, inch]

R

The following V.G. variables permit the readout of the number of all write accesses to the contents of each list since controller start-up. [available as of Build V2.11.2037.03]

CHAN_LIST_INVOKE

Channel parameter list

Integer

-

R

CLAMP_LIST_INVOKE

List of clamping offsets

Integer

-

R

TOOL_LIST_INVOKE

Tool list

Integer

-

R

VE_VAR_LIST_INVOKE

List of external variables

Integer

-

R

ZERO_POINT_LIST_
INVOKE

Zero offset list

Integer

-

R

The number of write accesses to individual zero offset groups is also possible [available as of V2.11.2037.03].

NP[j].INVOKE_COUNT

Number of all write accesses to a zero offset since controller start-up where <j>: 0 … 96

Integer

-

R

NP_AKT.
INVOKE_COUNT

Number of all write accesses to current zero offset group since controller start-up

Integer

-

R

Programing Example

prg_example

Read the number of write accesses to a zero offset group

N010 P1 = V.G.NP[1].INVOKE_COUNT ; Read counter

N020 V.G.NP[1].V.X = 15

N030 V.G.NP[1].V.X = 16

N040 $IF P1 +2!= V.G.NP[1].INVOKE_COUNT ; Read counter again

N050   #ERROR [ID1]

N060 $ENDIF

N070 G54

N080 $IF V.G.NP_AKT.INVOKE_COUNT != V.G.NP[1].INVOKE_COUNT

N090   #ERROR [ID2]

N100 $ENDIF

N110 G53

N120 M30

The following V.G. variables for TCP velocity limiting are available as of V3.1.3079.26

LIMIT.KIN[i].TOOL.LENGTH

Tool length where

<i>:= 0, 1 index of the configured kinematic

Real

[mm]

R/W

LIMIT.KIN[i].TOOL.KIN_PARAM[j]

Kinematic parameter of the tool where

<j>:= 0..69 Index of the kinematic parameter

Real

[0.1 µm,10-4°]

R/W