All Variables

VariableACTIVETOOL

$ACTIVETOOL

Contains the name of the active tool. If no M6 style tool load command is used this is the same as $LASTTOOL.

When starting/restarting transmission from a specified block/line number, you can use $ACTIVETOOL to ensure that the transmission is started with the correct toolmaker.

For further information, please refer to Datei senden and Übertragung wieder aufnehmen.

Example: If you want to start the transmission from line 1220, the server will scan the input file, and record the last tool used before line 1220, and store this value in $ACTIVETOOL.

VariableBACKUP

$BACKUP

The backup directory for this port. This is the default directory used for backups.

The default value is $MACHINE\Backup.

VariableDATA

$DATA

Data directory for this port. You can use $DATA when specifying auto receive or remote request directories.

The default value is $MACHINE.

VariableDATE

$DATE

Current date. The format depends on the servers regional settings. To change the servers regional settings, open the Windows® Control Panel and select Regional Settings.

Never use $DATE as part of a directory variable, since it can contain characters that are illegal in filenames.

Example: 29/04/95

VariableDATEA

$DATEA

Abbreviated weekday name.

VariableDATEAA

$DATEAA

Full weekday name.

VariableDATEB

$DATEB

Abbreviated month name.

VariableDATEBB

$DATEBB

Full month name.

VariableDATECLEAN

$DATECLEAN

Date in local format using only valid file name characters.

Example: 29-04-95

VariableDATED

$DATED

Day of month as decimal number (01 - 31).

VariableDATEDD

$DATEDD

Day of month as decimal number (1 - 31).

VariableDATEJ

$DATEJ

Day of year as decimal number (001 - 366).

VariableDATEM

$DATEM

Month as decimal number (01 - 12).

VariableDATEMM

$DATEMM

Month as decimal number (1 - 12).

VariableDATESTRIP

$DATESTRIP

Date in local format using only digits.

Example: 290495

VariableDATETIME

$DATETIME

Date and time in local format.

Example: 29/04/95 13:22:02

VariableDATETIMECLEAN

$DATETIMECLEAN

Date and time in local format using only digits.

Example: 290495 132202

VariableDATETIMESTRIP

$DATETIMESTRIP

Date and time in local format using only valid file name characters.

Example: 29-04-95 13-22-02

VariableDATEU

$DATEU

Week of year as decimal number, with Sunday as first day of week (00 - 53).

VariableDATEW

$DATEW

Weekday as decimal number (0 - 6; Sunday is 0).

VariableDATEWW

$DATEWW

Week of year as decimal number, with Monday as first day of week (00 - 53).

VariableDATEY

$DATEY

Year without century, as decimal number (00 - 99).

VariableDATEYY

$DATEYY

Year with century, as decimal number.

VariableFAILED

$FAILED

The failed transfer directory for this port. This is the default directory used to save failed transfers.

The default value is $MACHINE\Failed.

VariableFEEDRATE

$FEEDRATE

When starting/restarting transmission from a specified block/line/tool number, as described in Datei senden and Übertragung wieder aufnehmen, you can use $FEEDRATE to ensure that the transmission is started with the correct feedrate.

Example: If you want to start the transmission from line 1220, the server will scan the input file, and record the last feedrate used before line 1220, and store this value in $FEEDRATE.

$FEEDRATE is only available if the server is licensed for feed/speed control. In addition, feedrate information must be configured in the protocol. For further information on how to configure feedrate information, please refer to [LINK:ProtocolCfg_FeedSpeed].
VariableINCOMING

$INCOMING

Incoming directory for this port. You can use $INCOMING when specifying auto receive or remote request directories.

The default value is $DATA.

VariableINFOALL

$INFOALL

Complete log text, including filenames etc.

Example: 'Received file: D:\ROOT\Mazak\MOULD.MZK'

VariableINFOBYTES

$INFOBYTES

Number of bytes transferred.

VariableINFOCOUNT

$INFOCOUNT

Number of files send/received.

VariableINFOCPS

$INFOCPS

Transfer speed in characters per second.

VariableINFODIRNAME

$INFODIRNAME

Directory name.

Example: 'D:\ROOT\Mazak'

VariableINFOERRDESC

$INFOERRDESC

Error description.

Example: 'File not found'

VariableINFOERRORS

$INFOERRORS

Transfer errors.

VariableINFOFILENAME

$INFOFILENAME

File name (no path).

Example: 'MOULD.MZK'

VariableINFOFILENAMENOEXT

$INFOFILENAMENOEXT

File name without extension.

Example: 'MOULD'

VariableINFOFILESIZE

$INFOFILESIZE

Size of file transfered.

VariableINFOLINES

$INFOLINES

Number of lines transferred.

VariableINFOLPS

$INFOLPS

Transfer speed in lines per second.

VariableINFOPATH

$INFOPATH

File name with path.

Example: 'D:\ROOT\Mazak\MOULD.MZK'

VariableINFOPRGNAME

$INFOPRGNAME

Program name.

VariableINFOTAG

$INFOTAG

Short tag indicating type of message.

Examples: SENDSTART, RECVSTART, OMSG

VariableINFOTEXT

$INFOTEXT

Short description of the event.

Example: 'Received file'

VariableINFOTIME

$INFOTIME

Transfer time in hours, minutes and seconds.

Example: 02:31:07

VariableINFOTIMESEC

$INFOTIMESEC

Transfer time in seconds.

Example: 7342

VariableLASTTOOL

$LASTTOOL

Contains the name of the last tool found, regardless of whether is has been activated by a M6 style command. If the port is configured to use a M6 style tool load command, you should normally use $ACTIVETOOL instead (see below).

When starting/restarting transmission from a specified block/line number, as described in Datei senden and Übertragung wieder aufnehmen, you can use $LASTTOOL to ensure that the transmission is started with the correct tool number.

Example: If you want to start the transmission from line 1220, the server will scan the input file, and record the last tool found before line 1220, and store this value in $LASTTOOL.

VariableLOG

$LOG

The log directory for this port. This is the default directory used to save port logs.

The default value is $MACHINE\Log.

VariableMACHINE

$MACHINE

Base directory for this port. All other port directory variables are by default defined relative to $MACHINE.

The default value is $ROOT\$PORTNAME.

VariableOPERATOR

$OPERATOR

Name of operator.

VariableORGDIR

$ORGDIR

Original path name when using File Operations.

Example: C:\MILL

VariableORGEXT

$ORGEXT

Original extension when using File Operations.

Example: nc

VariableORGNAME

$ORGNAME

Original filename when using File Operations.

Example: Mould.nc

VariableORGNAMENOEXT

$ORGNAMENOEXT

Original filename without extension when using File Operations.

Example: Mould

VariableORGPATH

$ORGPATH

Original file name with path when using File Operations.

Example: C:\MILL\Mould.nc

VariablePORTGROUP

$PORTGROUP

The port group (defined in the port log configuration).

VariablePORTNAME

$PORTNAME

The name of the port.

VariableRECVBYTES

$RECVBYTES

Number of bytes received.

VariableRECVCPS

$RECVCPS

Number of characters received per second.

VariableRECVDIRNAME

$RECVDIRNAME

Directory of received program.

Example: C:\NCPRG\MachineA

VariableRECVERRORS

$RECVERRORS

Number of communication errors.

VariableRECVERRTEXT

$RECVERRTEXT

If an error occurred, a $RECVERRTEXT contains a description of the error. If no errors occurred, $RECVERRTEXT is empty.

Example: 'Error copying file:test.nc [Disk full]'

VariableRECVFILENAME

$RECVFILENAME

Filename of received program.

Example: PRG1234.NC

VariableRECVLINES

$RECVLINES

Number of lines received.

VariableRECVLPS

$RECVLPS

Number of lines received per second.

VariableRECVONO

$RECVONO

O number of received program.

Example: O12

VariableRECVONO4

$RECVONO4

O number of received program with 4 digits.

Example: O0012

VariableRECVONO6

$RECVONO6

O number of received program with 6 digits.

Example: O000012

VariableRECVONO8

$RECVONO8

O number of received program with 8 digits.

Example: O00000012

VariableRECVPATH

$RECVPATH

Filename and path of received program.

Example: C:\NCPRG\MachineA\PRG1234.NC

VariableRECVPRGNAME

$RECVPRGNAME

Name of received program.

Example: 1234

VariableROOT

$ROOT

The server root directory. This is the default base directory for all other directory environment variables.

For information on how to change server environment variables, please refer to Directories.

VariableROOTLOG

$ROOTLOG

This is the directory used for saving server log files.

The default value is $ROOT\Log.

For information on how to change server environment variables, please refer to Directories.

VariableSERVERNAME

$SERVERNAME

The name of the server.

VariableSPINDLESPEED

$SPINDLESPEED

When starting/restarting transmission from a specified block/line/tool number, as described in section Datei senden and Übertragung wieder aufnehmen, you can use $SPINDLESPEED to ensure that the transmission is started with the correct spindle speed.

Example: If you want to start the transmission from line 1220, the server will scan the input file, and record the last feedrate used before line 1220, and store this value in $SPINDLESPEED.

$SPINDLESPEED is only available if the server is licensed for feed/speed control. In addition, spindle speed information must be configured in the protocol. For further information on how to configure spindle speed information, please refer to [LINK:ProtocolCfg_FeedSpeed].
VariableTIME

$TIME

Current time. The format depends on the servers regional settings. To change the servers regional settings, open the Windows® Control Panel and select Regional Settings.

Never use $TIME as part of a directory variable, since it can contain characters that are illegal in filenames.

Example: 13:22:02

VariableTIMECLEAN

$TIMECLEAN

Time in local format using only valid file name characters.

Example: 13-22-02

VariableTIMEH

$TIMEH

Hour in 24-hour format (00 - 23).

VariableTIMEI

$TIMEI

Hour in 12-hour format (01 - 12).

VariableTIMEM

$TIMEM

Minute as decimal number (00 - 59).

VariableTIMEP

$TIMEP

A.M./P.M. indicator for 12-hour clock.

VariableTIMES

$TIMES

Second as decimal number (00 - 59).

VariableTIMESTRIP

$TIMESTRIP

Time in local format using only digits.

Example: 132202