Hardware to run the LinuxCNC software

A computer is required to run LinuxCNC itself. See Computer System Requirements

The most common is to use a x86 computer (standard Intel / AMD computer)

ARM computers such as the Raspberry Pi or Orange Pi can be used

Hardware Interface to CNC machine

An interface is necessary to transmit (and convert) signals and information between LinuxCNC (the software on the computer) and CNC hardware (such as stepper / servo drivers, limit switches, inputs and outputs etc.). There are multiple different ways to interface.

Interfaces include: - Parallelport - Ethernet - Ethercat - PCI / PCIe - SPI (where the computer has a native SPI interface, such as Raspberry Pi) - USB (not realtime interface)

A mix of different interfaces can be used. For example, a combination of ethercat for servo drives, and parallel port for additional General Purpose Inputs / Outputs (GPIO)

Some of these solutions are usable for all aspects of hardware interfacing, and some have specific roles (e.g. non-realtime GPIO, for an operator inferface).

Hardware interface options change over time. This list is not a 100% complete list of all hardware interfaces that can be used with LinuxCNC.

1. Parallelport

Using onboard motherboard parallel port, or a PCI/PCIe parallel port card.

2. Parallel Port Software Interface

Realtime (time critical) tasks such as step generation are done in software on the LinuxCNC host - this means the parallel port interface is much more sensitive to the LinuxCNC computer’s latency.

Advantages: - Low cost - Simple configuration

Disadvantages: - Sensitive to the LinuxCNC computer’s latency - Limited inputs/outputs - Some PCI/PCIe parallel port cards do not work well or do not properly support the EPP mode (EPP mode is required for parallel port interface to Mesa / PICO cards).

3. Parallel Port FPGA Communication

Realtime (time critical) tasks such as step generation are done in hardware (not on the computer)

3.1. Mesa via Parallel Port

Mesa use Field-programmable gate array (FPGA) interfaced via parallel port - e.g. 7i43

3.2. Pico Systems via Parallel Port

4. Ethernet

4.1. Mesa Ethernet

Mesa cards with a Field-programmable gate array (FPGA), interfaced to LinuxCNC computer via Ethernet. Time critical (realtime) tasks are performed on the FPGA card.

Multiple ethernet interface FPGA cards are available, with many expansion cards

4.2. Remora Ethernet

Realtime requirements are offloaded onto a controller board. Multiple differnet controller boards are supported - see Remora docs.

Note that some of these controller boards (e.g. NVEM, EC300, EC500) are designed / sold for use with Mach3. Use with LinuxCNC requires flashing new firmware, which has been developed by the LinuxCNC community. The manufacturer does not support LinuxCNC.

Expatria Technologies PicoBOB-DLX was designed for LinuxCNC Remora.

As of March 2024: ``` STM32 based controller boards

NVEM - an STM32F207 based board with Ethernet PHY chip, originally intended for Mach3. [No longer in production, Legacy Support - no new features]
EC500 - an STM32F407 based board with Ethernet PHY chip, originally intended for Mach3. [No longer in production, Legacy Support - no new features]
Expatria Technologies Flexi-HAL with uFlexiNET Ethernet adapter - an STM32F446 based board with W5500 Ethernet SPI adapter designed for Remora

iMX RT1052 based controller boards

NVEM, EC300 & EC500 - iMXRT1052 based controller boards with Ethernet PHY chip, originally intended for Mach3. [In active development]

RP2040 based controller boards

WIZnet W5500-EVB-Pico - Raspberry Pi RP2040 based development board with on-board W5500 Ethernet SPI adapter
    Expatria Technologies PicoBOB-DLX - Raspberry Pi RP2040 based board with on-board W5500 Ethernet SPI adapter designed for Remora
```

4.3. Litex-CNC

This project aims to make a generic CNC firmware and driver for FPGA cards which are supported by LiteX. Configuration of the board and driver is done using json-files. The supported boards are the Colorlight boards 5A-75B and 5A-75E, as these are fully supported with the open source toolchain.

Colorlight 5A-75B and 5A-75E cards are designed as a LED receiver card - it outputs to LED matrix panels. These cards have outputs only - hardware modification is required to enable use for inputs. Soldering required. Output buffers can be replaced with an input buffer.

4.4. LinuxCNC-RIO

RealtimeIO for LinuxCNC based on an FPGA

Ethernet interface can be used with a Ethernet to SPI interface.

5. Ethercat

Beckhoff EtherCAT™ and compatible systems can be made to work with LinuxCNC using the open source etherlab software.

EtherCAT is the open real-time Ethernet network originally developed by Beckhoff. The EtherCat master (LinuxCNC computer) uses a standard ethernet (network) interface - no special hardware is needed on the master. The slaves use special hardware. There are many EtherCat slave devices available including servo drives, stepper drives, input, output interfaces, VFDs, and others.

6. PCI / PCIe

6.1. Mesa

Mesa PCI / PCIe cards with a Field-programmable gate array (FPGA). Time critical (realtime) tasks are performed on the FPGA card.

Multiple daughter / expansion cards are available

7. SPI

SPI = Serial Peripheral Interface. SPI interfaces can be found on single board computers like Raspberry Pi, or Orange Pi. SPI interface is not generally present on standard computers (AMD/Intel).

7.1. Remora SPI

Realtime requirements are offloaded onto a controller board. https://remora-docs.readthedocs.io

7.2. LinuxCNC-RIO

RealtimeIO for LinuxCNC based on an FPGA

7.3. Mesa

Mesa cards with a Field-programmable gate array (FPGA), interfaced to LinuxCNC computer via SPI. Time critical (realtime) tasks are performed on the FPGA card.

Example: 7C80 for Raspberry Pi

8. USB

USB devices cannot be used to control motors or perform other "real time" tasks.

USB to Parallel port converters are NOT usable / suitable for CNC use.

8.1. LinuxCNC_ArduinoConnector

This Project enables you to connect an Arduino to LinuxCNC and provides as many IO’s as you could ever wish for. This Software is used as IO Expansion for LinuxCNC. It is NOT intended for timing and security relevant IO’s. Don’t use it for Emergency Stops or Endstop switches!

8.2. USB to RS485 / Modbus

USB to serial (RS485 / Modbus) adaptors can be used for control of non-realtime hardware such as variable frequency drives (VFD) for spindle control. Not suitable for time critical tasks.