Skip to content

Brother CNC

The Brother CNC plugin is used to access Brother CNC machining centers via the Brother NC protocol. It collects machine operating data such as axis coordinates, spindle, tool, alarms, workpiece count, program number, PLC devices, and tool offset data. The plugin supports connecting to the device over either a serial (Serial) or Ethernet link.

TIP

The Brother 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 Brother 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
Physical LinkSelect Serial or Ethernet as the communication medium. Default is Ethernet.
Connection Timeout (ms)Time to wait for the device to respond to a request, ranging from 1000 to 30000. Default is 3000.
Serial DeviceIn serial mode, the path of the serial device, e.g. /dev/ttyS0 on Linux.
Baud RateSerial connection parameter. Options: 115200/57600/38400/19200/9600/4800. Default is 9600.
Data BitsSerial connection parameter. Options: 7/8. Default is 8.
Stop BitsSerial connection parameter. Options: 1/2. Default is 1.
ParitySerial connection parameter. Options: none/odd/even. Default is none.
CNC IP AddressIn Ethernet mode, the IPv4 address of the target CNC device.
CNC PortIn Ethernet mode, the port of the target CNC device, ranging from 1 to 65535. Default is 10000.

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 Brother CNC plugin only supports the read-only tag attribute. During collection, the plugin batches requests for tags of the same data area (PDSP, ALARM, PLCD, etc.). Grouping tags of the same area together is recommended to improve collection efficiency.

Data Types

  • INT16
  • UINT16
  • INT32
  • UINT32
  • INT64
  • UINT64
  • FLOAT
  • DOUBLE
  • BIT
  • BOOL
  • STRING

Address Format

The Brother CNC plugin organizes tag addresses by data area. The address format and supported data types vary between areas.

PDSP (Machine Operating Data)

AddressData TypeAttributeDescription
PDSP.MACHINE_XINT16/UINT16/INT32/UINT32/INT64/UINT64/FLOAT/DOUBLEReadMachine X-axis coordinate
PDSP.MACHINE_YINT16/UINT16/INT32/UINT32/INT64/UINT64/FLOAT/DOUBLEReadMachine Y-axis coordinate
PDSP.MACHINE_ZINT16/UINT16/INT32/UINT32/INT64/UINT64/FLOAT/DOUBLEReadMachine Z-axis coordinate
PDSP.FEED_SPEEDINT16/UINT16/INT32/UINT32/INT64/UINT64/FLOAT/DOUBLEReadFeed speed
PDSP.SPINDLE_SPEEDINT16/UINT16/INT32/UINT32/INT64/UINT64/FLOAT/DOUBLEReadSpindle speed
PDSP.TOOL_NOINT16/UINT16/INT32/UINT32/INT64/UINT64ReadCurrent tool number
PDSP.NEXT_TOOL_NOINT16/UINT16/INT32/UINT32/INT64/UINT64ReadNext tool number
PDSP.RAPID_OVERRIDEINT16/UINT16/INT32/UINT32/INT64/UINT64ReadRapid traverse override
PDSP.FEED_OVERRIDEINT16/UINT16/INT32/UINT32/INT64/UINT64ReadFeed override
PDSP.SPINDLE_OVERRIDEINT16/UINT16/INT32/UINT32/INT64/UINT64ReadSpindle override

ALARM (Alarm Data)

AddressData TypeAttributeDescription
ALARM.<N>INT32/UINT32/INT64/UINT64ReadAlarm data, where N is the column index (0-based)

WKCNTR (Workpiece Count Data)

AddressData TypeAttributeDescription
WKCNTR.COUNTINT16/UINT16/INT32/UINT32/INT64/UINT64ReadWorkpiece count

PRDC2 (Production Time Data)

AddressData TypeAttributeDescription
PRDC2.CYCLE_TIMEINT16/UINT16/INT32/UINT32/INT64/UINT64ReadCycle time
PRDC2.CUTTING_TIMEINT16/UINT16/INT32/UINT32/INT64/UINT64ReadCutting time

PRGN (Program Number Data)

AddressData TypeAttributeDescription
PRGN.CURRENTINT32/UINT16/STRINGReadCurrent program number
PRGN.MAININT32/UINT16/STRINGReadMain program number
PRGN.BLOCKINT32/UINT16/STRINGReadCurrent block number

PLCD (PLC Devices)

AddressData TypeAttributeDescription
PLCD.D.<N>INT16/UINT16/INT32/UINT32/FLOAT/DOUBLEReadD data register, N is the register address
PLCD.M.<N>BIT/BOOLReadM relay, N is the register address

TOLSD (Tool Offset Data)

AddressData TypeAttributeDescription
TOLSD.<DB>.<ID>.<N>INT16/UINT16/INT32/UINT32/INT64/UINT64/FLOAT/DOUBLEReadTool offset data, DB ranges 1-10, ID ranges 1-99, N is the column index

Address Examples

AddressData TypeDescription
PDSP.MACHINE_XFLOATMachine X-axis coordinate
PDSP.SPINDLE_SPEEDINT32Spindle speed
PDSP.TOOL_NOINT16Current tool number
PDSP.FEED_OVERRIDEINT32Feed override
ALARM.1INT32Alarm data column 1
WKCNTR.COUNTINT32Workpiece count
PRDC2.CYCLE_TIMEINT32Cycle time
PRGN.CURRENTINT32Current program number
PRGN.MAINSTRINGMain program number
PLCD.D.100INT16D register at address 100
PLCD.M.2048BITM relay at address 2048
TOLSD.1.1.2FLOATDB 1, tool ID 1, column index 2

Data Monitoring

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