MTConnect.NET-AgentModule-TormachAdapter 7.2.0.103-prerelease

This is a prerelease version of MTConnect.NET-AgentModule-TormachAdapter.
There is a newer version of this package available.
See the version list below for details.
dotnet add package MTConnect.NET-AgentModule-TormachAdapter --version 7.2.0.103-prerelease
                    
NuGet\Install-Package MTConnect.NET-AgentModule-TormachAdapter -Version 7.2.0.103-prerelease
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MTConnect.NET-AgentModule-TormachAdapter" Version="7.2.0.103-prerelease" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MTConnect.NET-AgentModule-TormachAdapter" Version="7.2.0.103-prerelease" />
                    
Directory.Packages.props
<PackageReference Include="MTConnect.NET-AgentModule-TormachAdapter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MTConnect.NET-AgentModule-TormachAdapter --version 7.2.0.103-prerelease
                    
#r "nuget: MTConnect.NET-AgentModule-TormachAdapter, 7.2.0.103-prerelease"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MTConnect.NET-AgentModule-TormachAdapter@7.2.0.103-prerelease
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MTConnect.NET-AgentModule-TormachAdapter&version=7.2.0.103-prerelease&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MTConnect.NET-AgentModule-TormachAdapter&version=7.2.0.103-prerelease&prerelease
                    
Install as a Cake Tool

MTConnect.NET Logo

MTConnect Tormach Adapter Agent Module

This Agent Module reads data from Tormach CNC machines running PathPilot. PathPilot is based on LinuxCNC and does not provide a network interface for machine data, so the included PathPilot status server (pathpilot/pathpilot_status_server.py) runs on the controller, reads the machine status using the LinuxCNC Python API, and sends it to this module over TCP.

The status server only reads status. It never sends commands to the machine.

PathPilot Status Server

Install

  1. Copy pathpilot_status_server.py (included in the pathpilot folder next to the Agent) to the PathPilot controller, for example using the controller's network file share or a USB drive.
  2. Start it on the controller (it uses only Python and the linuxcnc module included with PathPilot):
    python pathpilot_status_server.py
    
  3. Make sure the controller's network connection used for the Agent (not the machine control Ethernet port) allows TCP connections on the server port (default 7890).

To start the server automatically, add it to the controller's startup applications. It waits for PathPilot (LinuxCNC) and reports UNAVAILABLE while PathPilot is not running.

PathPilot updates may remove files and startup entries added to the controller. Check the status server is running after updating PathPilot.

Options

  • --port - The TCP port to listen on. Default is 7890.
  • --bind - The address to listen on. Default is all addresses.
  • --interval - The interval (in milliseconds) between status messages. Default is 500.

Configuration

modules:
  - tormach-adapter:
      deviceKey: PCNC1100
      server: 192.168.1.80
      port: 7890
  • deviceKey - The UUID or Name of the Device that observations are added to.

  • createDevice - When true (default), the module adds a Device named deviceKey and updates it with the machine name and axes configured in PathPilot. Set to false to use a Device defined in a Devices file instead.

  • deviceUuid - The UUID of the Device created when createDevice is true. Defaults to deviceKey.

  • server - The IP address or hostname of the PathPilot controller.

  • port - The port of the PathPilot status server. Default is 7890.

  • readInterval - The interval (in milliseconds) between processing the status received. Default is 500.

  • connectionTimeout - The maximum time (in milliseconds) to wait for the connection to open. Default is 5000.

  • dataTimeout - The time (in milliseconds) without receiving data after which the connection is considered lost and reopened. Default is 5000.

  • workPositions - When true, work coordinate positions are reported in addition to machine positions. Default is false.

DataItems

If you use your own Device (createDevice: false), it needs DataItems whose id or name match the keys below.

Key DataItem Source (linuxcnc.stat)
avail AVAILABILITY AVAILABLE while PathPilot is running and the status server is connected
estop EMERGENCY_STOP estop
mode CONTROLLER_MODE task_mode (AUTO = AUTOMATIC, MDI = MANUAL_DATA_INPUT, MANUAL = MANUAL)
execution EXECUTION interp_state (IDLE = READY, READING / WAITING = ACTIVE, PAUSED = FEED_HOLD; STOPPED in emergency stop or with the machine off)
program PROGRAM file (file name)
line LINE_NUMBER (ABSOLUTE) current_line
tool TOOL_NUMBER tool_in_spindle
workOffset WORK_OFFSET g5x_index (ex. 54, 59.1)
optionalStop CONTROLLER_MODE_OVERRIDE (OPTIONAL_STOP) optional_stop
feedrate PATH_FEEDRATE (ACTUAL) current_vel (mm/s)
feedOverride PATH_FEEDRATE_OVERRIDE (PROGRAMMED) feedrate (%)
rapidOverride PATH_FEEDRATE_OVERRIDE (RAPID) rapidrate (%)
speed ROTARY_VELOCITY (COMMANDED) spindle speed (RPM, 0 when the spindle is off)
spindleOverride ROTARY_VELOCITY_OVERRIDE spindle override (%)
{axis}_act POSITION / ANGLE (ACTUAL) actual_position (machine position, mm or degrees)
{axis}_work POSITION / ANGLE (ACTUAL) actual_position minus the work, G92 and tool offsets (workPositions: true), referencing the Device's work coordinate system

Axes are read from the PathPilot configuration ([TRAJ] COORDINATES, ex. X Y Z A). Positions in inch machine units are converted to millimeters.

Notes

  • The spindle speed is the commanded speed; LinuxCNC does not report the measured spindle speed.
  • Alarms and part counts are not reported: PathPilot errors are only available on the LinuxCNC error channel (reading it would take them away from PathPilot), and PathPilot's part counter is not part of the LinuxCNC status.
  • Work positions do not include rotation of the work coordinate system (G10 L2 R).
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MTConnect.NET-AgentModule-TormachAdapter:

Package Downloads
MTConnect.NET-Applications-Agents

MTConnect.NET-Applications-Agents contains classes to fully implement an MTConnect Agent application. Supports MTConnect versions up to 2.7. Supports .NET Framework 4.6.1 up to .NET 10

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.2.0.105 131 11/21/2026
7.2.0.105-prerelease 121 11/21/2026
7.2.0.103-prerelease 128 11/20/2026