Skip to content

Mazak CNC

The Mazak CNC plugin collects real-time operating data from Mazak CNC via a passive UDP listener. The Mazak CNC sends status data packets over UDP, and the plugin 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.

TIP

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

Add Device

Go to Configuration -> South Devices, then click Add Device to add the driver. Configure the following settings in the popup dialog box.

  • Name: The name of this device node.
  • Plugin: Select the Mazak CNC plugin.

Device Configuration

After clicking Create, you will be redirected to the Device Configuration page, where you set up the parameters required for Neuron to establish a connection with the device. You can also click the device configuration icon on the southbound device card to enter the Device Configuration interface.

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.

Configure Data Groups and Tags

After the plugin is added and configured, the next step is to establish communication between your device and Neuron by adding groups and tags to the southbound driver.

Once device configuration is completed, navigate to the South Devices page. Click on the device card or device row to access the Group List page. Here, you can create a new group by clicking Create, then specifying the group name and data collection interval.

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.

For information on general configuration items, see Connect to Southbound Devices. The subsequent section will concentrate on configurations specific to the driver.

TIP

The Mazak CNC plugin 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 plugin 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

Data Monitoring

After configuring the tags, you can click Monitoring -> Data Monitoring to view device information. For more details, see Data Monitoring.