Skip to main content
Version: 3.2

Brother SpeedioSPEEDIO Brother Speedio Integration Guide

Read the state, program, mode and operation folder of Brother Speedio machines, and read and write their PLC devices.

Status
Beta
Machines
Speedio S300X1 · S500X1 · S700X1 · M140X1 · R450X1
Transport
TCP, port 10000 or above
Operations
Read Device · Read Block · Write Device
Triggers
None: poll with a Schedule trigger

Brother Speedio SX1 machining centres (S300X1, S500X1, S700X1, M140X1 and R450X1) answer the Type 2 ASCII protocol on their Ethernet port. The models speak the same protocol, so one connector serves them all. MaestroHub reads the machine's status (its execution state, running program, mode and operation folder) and reads and writes the devices of its built-in PLC by address, such as D100 or Y1F. This guide covers the connection, the addresses, the three function types, and how the matching nodes fit into the Pipeline Designer.

The Brother TC machines speak the same protocol with small differences, and have their own connector: see Brother TC.

Beta

What stands behind the connector today:

  • Brother publishes no manual for the Type 2 protocol; it gives it to its customers. The frames, the PLC area table, the value encodings and the CNC records MaestroHub uses were read from a reference driver for these machines, and only the parts confirmed there are implemented.
  • A public source agrees with that reading: the Maple Systems guide for Brother Speedio machines gives port 10000 and the X and Y range 0 to 3FF.
  • MaestroHub's tests run against an in-process test machine that checks every request byte by byte, and against the HTTP API with that machine behind it.

What is not proven yet:

  • It has not been run against a real Brother Speedio machine. No open-source implementation or simulator of the protocol exists to check MaestroHub against.
  • What each completion code other than 00 means: no table of them is documented, so MaestroHub reports the code the machine answered with.
  • The Speedio's work counters, tool life and alarm records, and which status field means the machine runs: their layout on a Speedio was not confirmed, so this version does not read them (see Not supported).

Overview​

The Brother Speedio connector provides:

  • Machine status: execution state, the program number, the mode and the operation folder
  • Five models: S300X1, S500X1, S700X1, M140X1 and R450X1, which speak the same protocol
  • PLC devices: the bits X, Y, M, LM, BX, BY and the signed 16-bit words D, LD, BDX, BDY; writes to Y, M, LM, D and LD
  • Block reads: many named devices and signals in one node, the status file read once

Terms used in this guide​

TermMeaning
Type 2Brother's ASCII request and response protocol over TCP. Each request has a 19-character header; the machine answers with the header repeated, a two-digit completion code and the data.
Completion codeTwo digits in every answer. 00 is success; what any other code means is not documented.
CNC fileData the machine's control keeps as lines of records, read whole. This connector reads MEM, the status file.
PLC deviceA bit or a word of the machine's built-in PLC, named by its area and number: D100, Y1F.

Not supported​

WhatWhy
Work counters, tool life and alarm codesThe Speedio's records for these were not confirmed: the counter record's name, the tool-life columns and the alarm file's layout. An address such as COUNTER:1:COUNT, TOOLLIFE:0:1 or ALARM:1 is refused with that reason.
RUNNINGWhich status field means the machine runs was not confirmed on a Speedio. Read EXECUTIONSTATE instead.
Writing CNC dataEvery CNC signal is read only.
The checksum modeThe Speedio's checksum is off by default, and the digits it sends for a sum of 10 to 15 were not confirmed. MaestroHub always sends 00 and leaves the machine's checksum switch off.
The timer and counter areas of the PLC (LT, LC forms)Not confirmed; not in this version.
A model settingThe five models change nothing on the wire, so the connection has no model field.
A list of values in one writeThe protocol writes one device per request. Write each device with its own function.
A triggerThe machine does not send data on its own. Poll it with a Schedule trigger.

What happens on connect​

MaestroHub opens the TCP connection to the machine's port, then reads D0, the first data register, which every machine has. Any answer in the protocol counts, a completion code other than 00 included: it proves a Brother machine answers there. An open TCP port alone proves nothing.

A Type 2 answer carries no request number: it is matched to its request only by repeating the request's header. So the connection sends one request at a time. An answer that does not repeat the header, data after the end of an answer, a request that gets no answer within the Response Timeout, and a lost connection close the connection, and it is opened again: a late answer could otherwise be read as the answer to the next request. Before each request the connection also checks that nothing is waiting on it. Bytes no request asked for (a reply sent twice or unasked) close the connection before the request is sent: the request reports the connection as unavailable, and nothing reaches the machine. A machine that closes or resets the idle connection is noticed when it happens, not at the next request: the connection is checked at once and opened again, and a request in between is not sent and reports the connection as unavailable. A completion code other than 00 is a whole answer and leaves the connection in use.

Use one MaestroHub connection per machine.

Connection Configuration​

Creating a Brother Speedio Connection​

Navigate to Connections → New Connection → Brother Speedio and fill in the form. It has four tabs: Connection, Functions, Scaling and Health. The Functions, Scaling and Health tabs unlock after the connection is saved.

1. Profile Information​

FieldDefaultDescription
Profile Name-A descriptive name for this connection profile (required). Must be unique across all connections.
Description-Optional description for this connection
Labels-Key-value pairs to categorize and organize the connection

2. Machine​

FieldDefaultMeaning
Address(required)Machine host name or IP address, e.g. 192.168.1.20
Port10000The machine's Type 2 TCP port, 10000 to 65535. 10000 is the Brother default
Connection Timeout5sMaximum time to open the connection and read D0 (1s to 5m)
Response Timeout5sHow long one request waits for the machine's answer (500ms to 30s)

Each function has its own Timeout (default 30m) that bounds the whole operation. Within it, each request waits at most the Response Timeout for its answer.

Brother Speedio connection formBrother Speedio connection form

The Connection tab: the machine's address and port, and the timeouts

Testing the Connection​

Click Test Connection at the bottom of the form to try the current settings before saving. It connects as described in What happens on connect. Once the connection runs, its health probe reads D0 again and reports the round trip. When the machine does not answer, the connection is closed and opened again.

Function Builder​

Creating Brother Speedio Functions​

After the connection is saved:

  1. Open the connection and navigate to the Functions tab
  2. Click New Function to open the function type selection dialog
  3. Choose Read Device, Read Block or Write Device
  4. Fill the Basic tab (name, description, labels) and the Configuration tab (operation-specific parameters)
  5. Use the Test button to run the function against the machine before saving. Testing a Write Device function writes to the machine's PLC
Brother Speedio function typesBrother Speedio function types

Two reads and one write

Addresses​

An address is a PLC device or a CNC signal. Letter case does not matter: y1f is Y1F.

PLC devices are an area and a number, with no separator:

AreaWhat it isNumbersValueWritable
XInputs0 to 3FF, hexadecimaltrue/falseNo
YOutputs0 to 3FF, hexadecimaltrue/falseYes
BX, BYInterface bits0 to 3FF, hexadecimaltrue/falseNo
MInternal relays0 to 8191true/falseYes
LMLatched relays0 to 1023true/falseYes
DData registers0 to 2047-32768 to 32767Yes
LDLatched data registers0 to 2047-32768 to 32767Yes
BDX, BDYInterface words0 to 255-32768 to 32767No

CNC signals are read from the machine's status file, MEM, record A01, and are read only:

SignalValue
EXECUTIONSTATEThe execution state, 0 to 3
PROGRAMNUMBERThe program number, 0 to 9999
MODEThe mode, 0 to 9
OPERATIONFOLDERThe operation folder, up to 8 characters, trailing spaces removed

Read Device (brotherspeedio.read.device)​

ParameterRequiredDescription
DeviceYesA PLC device or a CNC signal, as in Addresses
TimeoutNoBound on this single operation (default 30m)

A CNC signal reads the status file, then takes the one field.

Read Block (brotherspeedio.read.block)​

ParameterRequiredDescription
Data PointsYesThe points to read. Each has a Name, the key of its value in the result, and a Device / Signal. Each name is used once
TimeoutNoBound on this single operation (default 30m)

The status file is read once however many of its signals are listed: EXECUTIONSTATE, PROGRAMNUMBER and OPERATIONFOLDER together cost one request. Each PLC device takes a request of its own. A point the machine does not give (a device it refuses) is reported by name in the result, and the other points are still read.

Write Device (brotherspeedio.write.device)​

ParameterRequiredDescription
DeviceYesA writable PLC device: Y, M or LM for a bit, D or LD for a word
ValueYesFor a bit: true or false (also 1/0, on/off). For a word: a whole number from -32768 to 32767. Supports ((parameter)) placeholders
TimeoutNoBound on this single operation (default 30m)

A device that is read only, a CNC signal, or a value that does not fit is refused when the function is saved, and again before anything is sent when a placeholder fills in a value that does not fit.

Write Device function parametersWrite Device function parameters

A Write Device function whose value comes from a parameter

A write happens when the node runs, or not at all

A write is never buffered for later delivery: a setpoint that arrives an hour late is a new decision, not the old one. A pipeline run started by a late (replayed) input does not execute the write unless the node allows late input. A write whose answer did not come (no answer within the Response Timeout, the connection closed or reset, an answer that does not repeat the request) may have reached the machine: its outcome is reported as unknown, not as refused, and the connection is opened again.

Using Parameters​

The Value field supports ((parameterName)) placeholders; they appear in the Function Parameters block, where you set each one's type, whether it is required, and a default. For example, Device D100 and Value ((setpoint)) write the node's setpoint parameter to D100.

Pipeline Integration​

Use the functions you configure here as nodes inside the Pipeline Designer. Each function type has its own node:

  • Brother Speedio Read Device (connected.brotherspeedio.read.device): executes a brotherspeedio.read.device function
  • Brother Speedio Read Block (connected.brotherspeedio.read.block): executes a brotherspeedio.read.block function
  • Brother Speedio Write Device (connected.brotherspeedio.write.device): executes a brotherspeedio.write.device function

A Brother machine does not send data on its own: to poll one, drive the reads from a Schedule trigger.

Brother Speedio node in the pipeline designerBrother Speedio node in the pipeline designer

The Read Device node with its connection and function

For node-level details (output structure, execution settings), see the Brother Speedio Nodes page.

Common Use Cases​

Machine state to the UNS​

A Read Block of EXECUTIONSTATE, PROGRAMNUMBER, MODE and OPERATIONFOLDER on a Schedule trigger, routed to the Unified Namespace. One request per run.

Counts kept in the PLC​

When the ladder program counts parts in a data register, read it with the status: a Read Block of PROGRAMNUMBER and D200 costs two requests.

Requests to the ladder program​

Write true to a relay the ladder program watches (M100) to request a sequence, or a value to a register (D200) the program reads as a setpoint.

Retry on Fail and relays the ladder program clears

A write whose answer did not come is reported as outcome unknown, because it may have reached the machine. Writing a value again leaves the device as one write did, so the write is declared safe to repeat, and the node's Retry on Fail and Retry on Timeout send it again (see A write whose outcome is unknown is sent again only when that is safe). For a relay the ladder program sets a sequence going with and then clears, a second write can start the sequence twice: turn Retry on Fail and Retry on Timeout off on that node.

Troubleshooting​

Error Reference​

What you seeMeaningRetried?
"Q100" is not an address: …Not a PLC device or a signal this connector reads. The save is refusedNo
"COUNTER:1:COUNT" is not an address this connector reads. … not confirmed …A Speedio counter, tool life or alarm signal, or RUNNING, not read in this version. The save is refusedNo
"D2048" is out of range: D is 0 to 2047The number is past its area. The save is refusedNo
X1 is read only; the writable areas are Y, M, LM, D and LDA write to an input or interface area. The save is refusedNo
PROGRAMNUMBER is a CNC signal, and every CNC signal is read onlyA write to a CNC signal. The save is refusedNo
D is a word area of signed 16-bit values, -32768 to 32767The value does not fit. Nothing was sentNo
the machine's MEM file has no A01 recordThe machine's status file has no status recordNo
the machine answered "…" with completion code NNThe machine answered with code NN; what it means is not documented. Check the device against the machine's PLC programYes
no answer from the machineThe request was sent and not answered within the Response Timeout. The connection is closed and opened again. A read is reported as transient; a write's outcome as unknown, because it may have reached the machineA read: yes. A write: yes, as outcome unknown; it is safe to repeat
the machine's reply does not answer the request: …An answer that does not repeat the request's header, or data after its end. The connection is closed and opened again. A write's outcome is reported as unknownA read: yes. A write: yes, as outcome unknown; it is safe to repeat
unexpected queued response: …, the machine closed the idle connection or the idle connection failed: …Before the request was sent, bytes no request asked for were waiting (a reply sent twice or unasked), or the machine had closed or reset the idle connection. The request was not sent; the connection is opened againYes, after reconnect
the machine's data cannot be read: …The answer arrived whole but its data has the wrong shape, for example a record with the wrong number of fields, or a write's acknowledgement that carries data (whether the value was written is not known)A read: yes. A write: yes, as outcome unknown; it is safe to repeat
not connectedThe connection is not upYes, after reconnect

"Retried?" says whether the node's Retry on Fail setting sends the request again. A write whose outcome is unknown is sent again too: writing a value again is safe to repeat. A request MaestroHub refuses before sending gives the same answer every time, so it is not retried.

Connection Issues​

SymptomPossible CauseSolution
Test Connection fails with connect to the Brother Speedio at …Nothing listens at that address and port, or a firewall is in the wayCheck the machine's IP address, the port (10000 by default), and that the port is reachable from the MaestroHub host
Test Connection fails with did not answer a read of D0The port took the connection but answered no Type 2 requestCheck that the port is the machine's Type 2 port
The status signals fail with the MEM A01 record has 7 fields; a Brother Speedio's has 8The machine is a TC, whose status record has no operation folderUse the Brother TC connector
Requests fail with no answer from the machine while the machine is busyThe answer takes longer than the Response TimeoutRaise Response Timeout