Global variables(V.G.)

The code for inter-axis, globally (in channel) valid variables, is "V.G.. ...".

For the axis-specific code, the following notations are to be used optionally (for instance, axis-offset for tool number j in X-direction):

  1. V.G.WZ[j].V.X or
  2. V.G.WZ[j].V[0]

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

PROG_NR

Number of the NC-program, if the NC-program name is a digit

Integer

-

R

SATZ_NR

The last programmed NC-block number

Integer

-

R

PROG_SA

Local block type, if in NC-block no more alteration takes place

Integer

-

R

MASS_MM

If measuring unit [mm], then 0

Boolean

0 , 1

R

MASS_360

If measuring unit [degree], then 0

Boolean

0 , 1

R

I

I-coordinate of the circular programming. Under active center point correction(G165), access on corrected value

Real

[mm] [inch]

R

J

J-coordinate of the circular programming. Under active center point correction(G165),access on corrected value

Real

[mm] [inch]

R

K

K-coordinate of the circular programming. Under active center point correction(G165), access on 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

MERR[i]

Correction offset of the circle center point

Real

[mm] [inch]

R

The „WZ[j]“-variables enable the read access on the data of any tool. They are available both for an external tool management (transparent access) and for the use of an internal tool table (j corresponds in this case to the tool number respectively to the index of the tool from the tool list).

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

WZ[j].R

Radius of the tool

Real

[mm] [inch]

R

WZ[j].L

Length of the tool

Real

[mm] [inch]

R

WZ[j].P[i]

Parameters of the tool

Real

-

R

WZ[j].V[i]

Axis-offsets of the tool

Real

[mm] [inch]

R

WZ[j].ME

Measuring unit of the tool data list; if [mm], then 0

Boolean

0 , 1

R

WZ[j].OK

Valid flag of the tool; if valid, then 1

Boolean

0 , 1

R

WZ[j].SPDL_AX_NR

Logical axis number of the assigned spindle

Integer

-

R

WZ[j].KIN_PARAM[i]

Kinematic parameters of the tool

Real

[0.1 µm],
[10-4 deg]

R

WZ[j].KIN_ID

Kinematik-ID of the tool

Integer

-

R

WZ[j].TYPE

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

Integer

-

R

WZ[j].SRK_ID

Cutter orientation of a turning tool

Integer

-

R

WZ[j].S_MIN_SPEED

Minimum speed (Tool dynamic data)

Real

[U/min]

R

WZ[j].S_MAX_SPEED

Maximum speed (Tool dynamic data)

Real

[U/min]

R

WZ[j].S_MAX_ACC

Maximum acceleration (Tool dynamic data)

Real

[deg/sec2]

R

WZ[j].SISTER_VALID

Valid flag of the sister tool (TOOL-ID)

Boolean

0 , 1

R

WZ[j].SISTER

Number of the valid sister tool

Integer

-

R

WZ[j].VARIANT_VALID

Valid flag of the variant tool (TOOL-ID)

Boolean

0 , 1

R

WZ[j].VARIANT

Number of the valid variant tool

Integer

-

R

The „WZ_AKT“-variables, „T_AKT“ and „D_AKT“ enable the access on the data of the current selected tool. They are available both for an external tool management and for the use of an internal tool table.

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

T_AKT

Number of the selected tool

Integer

-

R

D_AKT

Number of the selected tool compensation data set

Integer

-

R

Global variables(V.G.) 1:

A write accesss always causes the temporary change of tool data for the time of selection. After deselection (D0) or selection of a new tool (Dxx) the changed data are lost. They are not saved!Exception:If using an external tool management during deselection of the tool or during selection of a new tool the so called additional tool data (V.G.WZ_AKT.P[i]) are adopted and saved [1]-38.

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

WZ_AKT.R

Radius of the current tool

Real

[mm] [inch]

R / W

WZ_AKT.L

Length of the current tool

Real

[mm] [inch]

R / W

WZ_AKT.P[i]

Parameters of current tool

Real

-

R / W

WZ_AKT.V[i]

Axis offset of the current tool

Real

[mm] [inch]

R / W

WZ_AKT.ME

Measuring unit of the current tool; if [mm], then 0

Boolean

0 , 1

R

WZ_AKT.OK

Tool valid flag of the current tool; if valid, then 1

Boolean

0 , 1

R

WZ_AKT.SPDL_AX_NR

Logical axis number of the assigned spindle

Integer

-

R

WZ_AKT.KIN_PARAM[i]

Kinematic parameter of the current tool.
Note: For write access value must be programmed in internal units!

Real

[0.1 µm],
[10-4 deg]

R / W

WZ_AKT.KIN_ID

Kinematic-ID of the current tool

Integer

-

R

WZ_AKT.TYPE

Tool type of the selected tool

(0: Milling 1: Turning 2: Grinding)

Integer

-

R

WZ_AKT.SRK_ID

Cutter orientation of the selected turning tool

Integer

-

R

WZ_AKT.S_MIN_SPEED

Minimum speed (Tool dynamic data)

Real

[rpm]

R

WZ_AKT.S_MAX_SPEED

Maximum speed (Tool dynamic data)

Real

[rpm]

R

WZ_AKT.S_MAX_ACC

Maximum acceleration (Tool dynamic data)

Real

[deg/sec2]

R

WZ_AKT.SISTER_VALID

Valid flag of the sister tool (TOOL-ID)

Boolean

0 , 1

R

WZ_AKT.SISTER

Number of the valid sister tool

Integer

-

R

WZ_AKT.VARIANT_VALID

Valid flag of the variant tool (TOOL-ID)

Boolean

0 , 1

R

WZ_AKT.VARIANT

Number of the valid variant tool

Integer

-

R

WZ_AKT.WEAR_RADIUS

Radius wear at radius compensation (OTC)

Real

[mm] [inch]

R

WZ_AKT.WEAR[i]

Wear in axis <i> at length compensation (OTC)

Real

[mm] [inch]

R

WZ_AKT.WEAR_CONST

Wear constant (OTC)

Real

[0.1 µm/m]

R / W

Instead of V.G.WZ_AKT.P[i] also an access on the additional tool parameters with the variable V.G.WZ_INFO[i] is possible. It is only available for an external tool management:

WZ_INFO[i]

Parametersof current tool

Real

-

R

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

WZR

Radius of the current tool (Old syntax)

Real

[mm] [inch]

R / W

WZL

Length of the current tool (Old syntax)

Real

[mm] [inch]

R / W

NP[j].V[i]

Zero offset of one axis.
Caution: Write access causes permanent actualisation of internal zero offset data!

Real

[mm] [inch]

R / W

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

NP[j].ALL

Adressing of all axes of a zero group.
Caution: Write access causes permanent actualisation of internal zero offset data!

Real

[mm] [inch]

R / W

NP_AKT.V[i]

Currently active zero offset of an axis

Real

[mm] [inch]

R / W

NP_AKT.ALL

Addressing of the 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 at G53, 1 at G54...)

Integer

-

R

NP_DEFAULT

Default index of zero offset group after start-up

Integer

-

R / W

CNC_RELEASE

Build number of CNC version [up to V260]

Integer

-

R

CNC_CHANNEL

Current channel number

Integer

-

R

IPO_COUNT

System time counter

Integer

-

R

CS_ACTIVE

CS (#CS…) active? If active, then 1

Boolean

0 , 1

R

CS_COUNT

Number of active (linked) CS

Integer

-

R

ACS_ACTIVE

ACS (#ACS…)active?If active, then 1

Boolean

0 , 1

R

ACS_COUNT

Number of active (linked) ACS

Integer

-

R

CS

Machining coordinate system (CS) on/off

Integer

-

R

ACS

Fixture adaptive coordinate system (ACS) on/off

Integer

-

R

TOOL_COMP

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

 

 

R

AKT_PLATZ

Current clamp position offset index

 

 

R

AX_LINK.NR

Number of current or last active coupling group

Integer

-

R

AX_LINK.ACTIVE

Axes coupling (#AX LINK...) 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

[deg]

R

ROT_CENTER1

Offset of first main axis to the rotation point at contour rotation

Real

[mm] [inch]

R

ROT_CENTER2

Offset of second main axis to the rotation point at contour rotation

Real

[mm] [inch]

R

TIMER[i]

Counter value of the timer with number <i>

Integer

[ms]

R

RANDOM

Creates a random value in the range 0.0 - 1.0

Real

-

R

PROG_ABS

Dimensioning,0: G91 active 1: G90 active

Boolean

0 , 1

R

KIN[j].PARAM[i]

Kinematic parameters of a specific kinematic [j]

Note: For write access value must be programmed in internal units!

Caution: Write access causes permanent actualisation of internal channel parameter data!

Real

[0.1 µm],
[10-4 deg]

R / W

CNC_RELEASE

Build number of CNC version

Integer

-

L

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

CNC_VERSION.MAJOR

Major version of CNC [from V263.1501]

(e.g. 2 in V263.1501.00)

Integer

-

L

CNC_VERSION.MINOR

Minor version of CNC [from V263.1501]

(e.g. 63 in V263.1501.00)

Integer

-

L

CNC_VERSION.BUILD

Build number of CNC version [from V263.1501]

(e.g. 1501 in V263.1501.00)

Integer

-

L

CNC_VERSION.PATCH

Patch number of CNC version [from V263.1501]

(e.g. 00 in V263.1501.00)

Integer

-

L

MIRROR_ACTIVE

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

Boolean

0 , 1

L

WCS_POSLIMIT_1

WCS_POSLIMIT_2

WCS_POSLIMIT_3

Motion limits in the main axes in WCS.

Only useful in combination with the NC command #GET WCS POSLIMIT

Real

[mm] [inch]

R

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

FILE_OFFSET

File position of the beginning of the NC block with the programmed V.G.FILE_OFFSET variable

Integer

-

R

FILE_NAME

File name of the currently active NC program

String

-

R

PROG_NAME

Name (%...) of the currently active main or sub program (local/global)

String

-

R

PATH_NR

Logical path number of the currently active NC main or global sub program according to the start–up list (P-STUP-00019)

Integer

-

R

TRAFO_ACTIVE

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

Boolean

0 , 1

R

HSC_ACTIVE

Free form surface operation (#HSC...) or spline interpolation (#SET SPLINE... oder G151) active?
If active, then TRUE

Boolean

0 , 1

R

TRC_ACTIVE

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

Boolean

0 , 1

R

MCS_ACTIVE

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

Boolean

0 , 1

R

BLOCK_SEARCH_ACTIVE

Block search active? If active, then 1

Boolean

0 , 1

R

CONT_MODE_ACTIVE

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

1 at contouring type 1 ()

2 at contouring type 2 ()

3 at contouring type 3 ()

4 at contouring type 4 ()

5 at contouring type 5 ()

6 at contouring type 6 ()

0 at G260

Integer

-

R

The following variables enable the access on data of the M/H functions, defined in the channel parameters.

Global variables(V.G.) 2:

If the write access (W) on the pre output values and the synchronization types of the M/H functions are not conform, the synchronization type is implicitly adapted.
The changes keep valid until the next start-up!
If the read access (R) on the pre output values and the synchronization types of the M/H functions are not conform, an error message is created.

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

M_FCT[i].SYNCH

Synchronisation type of a M function <i>, defined in the channel parameters[1]-3

Integer

-

R / W

M_FCT[i].PRE_OUTP_PATH

Pre output distance m_pre_output[1]-47 of a M function <i> from synchronization type MEP_SVS, defined in the channel parameters.

Real

[mm] [inch]

R / W

M_FCT[i].PRE_OUTP_TIME

Pre output time m_pre_output[1]-47 of a M function <i> from synchronization type MET_SVS, defined in the channel parameters.

Real

[sec]

R / W

H_FCT[i].SYNCH

Synchronisation type of a H function <i>, defined in the channel parameters[1]-3

Integer

-

R / W

H_FCT[i].PRE_OUTP_PATH

Pre output distance h_pre_output[1]-47 of a H function <i> from synchronization type MEP_SVS, defined in the channel parameters.

Real

[mm] [inch]

R / W

H_FCT[i].PRE_OUTP_TIME

Pre output time h_pre_output[1]-47 of a H function <i> from synchronization type MET_SVS, defined in the channel parameters.

Real

[sec]

R / W

The V.G.SPEED_LIMIT" variables enable the access on data of the speed limit look ahead parameters [1]-48, defined in the channel parameters.

Global variables(V.G.) 3:

During write access the changed parameter setting is output to the channel. A possibly active motion is interrupted!
If the write access (W) on the values and the unit of the distance parameters are not conform, the unit is implicitly adapted.
The changes keep valid until program end or RESET! After program start the settings of the channel parameters are valid again.
If the read access (R) on the values and the unit of the distance parameters are not conform, an error message is created.

V.G.<> var_name

Significance

Data type

Unit of

In/ Output

Enabled
access

Read /
W
rite

SPEED_LIMIT.ENABLE

Selection/deselection of speed limit look ahead (0: Deselection 1: Selection)

Boolean

0 , 1

R / W

SPEED_LIMIT.VEL_LIMIT

Definition of speed limit value

Integer

[%]

R / W

SPEED_LIMIT.TIME

Unit definition 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

[sec]

R / W

SPEED_LIMIT.TIME_FROM_CORNER

Time distance from "corner"

Real

[sec]

R / W

SPEED_LIMIT.OVERRIDE_WEIGHT

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

Boolean

0 , 1

R / W

@P[i].VALID

Is a specific transfer parameter programmed inor sub programm call?

0: Parameter is not programmed

1: Parameter is programmed

Index <i> contains the number of the parameter, which should be checked for validity (e.g. 1 for @P1 or the first parameter, called with G8xx).

Note for read access:

The variable can only be used inside a cycle or in global sub programms G8xx with transfer parameters !

Boolean

0 , 1

R

TIME_STAMP

Current time stamp <date time> :

(e.g. 16.06.2011 13:08:10:000) [from Build 1507.02]

String

-

R