Skip to content

Mazak CNC ​

The Mazak CNC driver collects real-time operating data from Mazak CNC via a passive UDP listener. The Mazak CNC sends status data packets over UDP, and the driver parses the packet fields into individual data tags. The driver does not send any requests to the CNC; it only listens for incoming UDP data.

For the generic steps, see Create a Southbound Driver and Groups and Tags.

TIP

The Mazak CNC driver is read-only. It only supports data collection (read) and does not support control (write).

Add Driver ​

On Data Collection → South Devices, click Add Device.

  • Name: The name of this device node.
  • Driver: Select the Mazak CNC driver.

Connection Parameters ​

Click the driver card to open the Device Configuration page and fill in:

ParameterDescription
Bind IPThe local IP address to bind the UDP listener. Default is 0.0.0.0 (listen on all interfaces).
PortThe UDP port to listen on, ranging from 1 to 65535. Default is 51001.
Connection Timeout (ms)UDP receive timeout, ranging from 1 to 60000. Default is 3000.

Tag Configuration ​

The data types and address formats supported by this driver are listed below.

After successfully creating a group, click on its name to proceed to the Tag List page. This page allows you to add device tags for data collection. You'll need to provide information such as the tag address, attributes, and data type.

TIP

The Mazak CNC driver only supports the read-only tag attribute. All tag addresses are flat string names; there are no data areas or indexes.

Data Types ​

  • STRING
  • INT32

Address Format ​

The Mazak CNC driver defines a fixed set of tag addresses. Each address corresponds to a specific field parsed from the incoming UDP data packet.

AddressData TypeAttributeDescription
machine_nameSTRINGReadMachine name
machine_ipSTRINGReadMachine IP address
statusSTRINGReadMachine status (STOPPED, ACTIVE, FEED_HOLD)
modeSTRINGReadOperation mode (AUTOMATIC, MANUAL_DATA_INPUT, MANUAL, EDIT)
program_numberSTRINGReadCurrent program number
program_nameSTRINGReadCurrent program name
subprogram_numberSTRINGReadCurrent subprogram number
subprogram_nameSTRINGReadCurrent subprogram name
alarm_numberSTRINGReadAlarm number
alarm_messageSTRINGReadAlarm message text
alarm_fore_colorSTRINGReadAlarm foreground color
alarm_back_colorSTRINGReadAlarm background color
part_countINT32ReadWorkpiece count
toolSTRINGReadCurrent tool identifier
rapid_rateINT32ReadRapid traverse override rate
feed_sp_rateINT32ReadFeed / spindle override rate
feed_rateINT32ReadFeed rate

Status Values ​

The status address returns one of the following string values:

ValueMeaning
STOPPEDMachine is stopped
ACTIVEMachine is running
FEED_HOLDFeed hold is active
UNKNOWNUnknown status

Mode Values ​

The mode address returns one of the following string values:

ValueMeaning
AUTOMATICAutomatic operation mode
MANUAL_DATA_INPUTManual Data Input (MDI) mode
MANUALManual operation mode
EDITProgram editing mode
UNKNOWNUnknown operation mode

Address Examples ​

AddressData TypeDescription
machine_nameSTRINGMachine name
statusSTRINGMachine status
modeSTRINGOperation mode
program_numberSTRINGCurrent program number
alarm_numberSTRINGAlarm number
alarm_messageSTRINGAlarm message text
part_countINT32Workpiece count
toolSTRINGCurrent tool identifier
rapid_rateINT32Rapid traverse override rate
feed_rateINT32Feed rate