Skip to content

Brother CNC ​

The Brother CNC driver 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 driver supports connecting to the device over either a serial (Serial) or Ethernet link.

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

TIP

The Brother 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 Brother CNC driver.

Connection Parameters ​

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

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.

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 Brother CNC driver only supports the read-only tag attribute. During collection, the driver 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 driver 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