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 Send a File and Restart a Transmission.
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.
The backup directory for this port. This is the default directory used for backups.
The default value is $MACHINE\Backup.
Data directory for this port. You can use $DATA when specifying auto receive or remote request directories.
The default value is $MACHINE.
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
Abbreviated weekday name.
Full weekday name.
Abbreviated month name.
Full month name.
Date in local format using only valid file name characters.
Example: 29-04-95
Day of month as decimal number (01 - 31).
Day of month as decimal number (1 - 31).
Day of year as decimal number (001 - 366).
Month as decimal number (01 - 12).
Month as decimal number (1 - 12).
Date in local format using only digits.
Example: 290495
Date and time in local format.
Example: 29/04/95 13:22:02
Date and time in local format using only digits.
Example: 290495 132202
Date and time in local format using only valid file name characters.
Example: 29-04-95 13-22-02
Week of year as decimal number, with Sunday as first day of week (00 - 53).
Weekday as decimal number (0 - 6; Sunday is 0).
Week of year as decimal number, with Monday as first day of week (00 - 53).
Year without century, as decimal number (00 - 99).
Year with century, as decimal number.
The failed transfer directory for this port. This is the default directory used to save failed transfers.
The default value is $MACHINE\Failed.
When starting/restarting transmission from a specified block/line/tool number, as described in Send a File and Restart a Transmission, 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]. |
Incoming directory for this port. You can use $INCOMING when specifying auto receive or remote request directories.
The default value is $DATA.
Complete log text, including filenames etc.
Example: 'Received file: D:\ROOT\Mazak\MOULD.MZK'
Number of bytes transferred.
Number of files send/received.
Transfer speed in characters per second.
Directory name.
Example: 'D:\ROOT\Mazak'
Error description.
Example: 'File not found'
Transfer errors.
File name (no path).
Example: 'MOULD.MZK'
File name without extension.
Example: 'MOULD'
Size of file transfered.
Number of lines transferred.
Transfer speed in lines per second.
File name with path.
Example: 'D:\ROOT\Mazak\MOULD.MZK'
Program name.
Short tag indicating type of message.
Examples: SENDSTART, RECVSTART, OMSG
Short description of the event.
Example: 'Received file'
Transfer time in hours, minutes and seconds.
Example: 02:31:07
Transfer time in seconds.
Example: 7342
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 Send a File and Restart a Transmission, 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.
The log directory for this port. This is the default directory used to save port logs.
The default value is $MACHINE\Log.
Base directory for this port. All other port directory variables are by default defined relative to $MACHINE.
The default value is $ROOT\$PORTNAME.
Name of operator.
Original path name when using File Operations.
Example: C:\MILL
Original extension when using File Operations.
Example: nc
Original filename when using File Operations.
Example: Mould.nc
Original filename without extension when using File Operations.
Example: Mould
Original file name with path when using File Operations.
Example: C:\MILL\Mould.nc
The port group (defined in the port log configuration).
The name of the port.
Number of bytes received.
Number of characters received per second.
Directory of received program.
Example: C:\NCPRG\MachineA
Number of communication errors.
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]'
Filename of received program.
Example: PRG1234.NC
Number of lines received.
Number of lines received per second.
O number of received program.
Example: O12
O number of received program with 4 digits.
Example: O0012
O number of received program with 6 digits.
Example: O000012
O number of received program with 8 digits.
Example: O00000012
Filename and path of received program.
Example: C:\NCPRG\MachineA\PRG1234.NC
Name of received program.
Example: 1234
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.
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.
The name of the server.
When starting/restarting transmission from a specified block/line/tool number, as described in section Send a File and Restart a Transmission, 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]. |
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
Time in local format using only valid file name characters.
Example: 13-22-02
Hour in 24-hour format (00 - 23).
Hour in 12-hour format (01 - 12).
Minute as decimal number (00 - 59).
A.M./P.M. indicator for 12-hour clock.
Second as decimal number (00 - 59).
Time in local format using only digits.
Example: 132202