MTConnect.NET-AgentModule-HaasAdapter
7.2.0.105
dotnet add package MTConnect.NET-AgentModule-HaasAdapter --version 7.2.0.105
NuGet\Install-Package MTConnect.NET-AgentModule-HaasAdapter -Version 7.2.0.105
<PackageReference Include="MTConnect.NET-AgentModule-HaasAdapter" Version="7.2.0.105" />
<PackageVersion Include="MTConnect.NET-AgentModule-HaasAdapter" Version="7.2.0.105" />
<PackageReference Include="MTConnect.NET-AgentModule-HaasAdapter" />
paket add MTConnect.NET-AgentModule-HaasAdapter --version 7.2.0.105
#r "nuget: MTConnect.NET-AgentModule-HaasAdapter, 7.2.0.105"
#:package MTConnect.NET-AgentModule-HaasAdapter@7.2.0.105
#addin nuget:?package=MTConnect.NET-AgentModule-HaasAdapter&version=7.2.0.105
#tool nuget:?package=MTConnect.NET-AgentModule-HaasAdapter&version=7.2.0.105

MTConnect Haas Adapter Agent Module
This Agent Module reads data directly from a Haas CNC control (including the Haas Next Generation Control) over Ethernet or RS-232 using Haas Machine Data Collection (Q-commands), so no separate adapter is required.
Haas NGC controls also include a built-in MTConnect Agent on port 8082 (software 100.20.000.1200 or higher recommended), which can be read using the
http-adaptermodule.
Control Setup
Enable Machine Data Collection by setting Setting 143 to the TCP port to use (ex. 5051). Do not use ports 8082 or 9090 - 9999, which are used by the control.
Configuration
Ethernet
modules:
- haas-adapter:
deviceKey: VF2
server: 192.168.1.60
port: 5051
RS-232
modules:
- haas-adapter:
deviceKey: VF2
connection: serial
comPort: COM1
baudRate: 19200
parity: None
dataBits: 7
stopBits: 1
5-Axis with Work Positions
modules:
- haas-adapter:
deviceKey: UMC-750
server: 192.168.1.61
units: inch
axes: [X, Y, Z, A, C]
workPositions: true
Common
deviceKey- The UUID or Name of the Device that observations are added to.createDevice- Whentrue(default), the module adds a Device nameddeviceKeycontaining the DataItems listed below. The Device Description is updated with the model and serial number read from the control. Set tofalseto use a Device defined in a Devices file instead.deviceUuid- The UUID of the Device created whencreateDeviceistrue. Defaults todeviceKey.connection-ethernet(default) orserial.readInterval- The interval (in milliseconds) between reads of the control. Default is1000.slowReadInterval- The interval (in milliseconds) between reads of slowly changing values (timers, counters, software version, work offset, single block / optional stop). Default is10000.responseTimeout- The maximum time (in milliseconds) to wait for a reply to a command. Default is2000.units- The units the control reports linear positions in:mm(default) orinch(Setting 9). Positions reported in inches are converted to millimeters.axes- The axes to read positions for: any ofX,Y,Z,A,B,C. Default is[X, Y, Z].workPositions- Whentrue, work coordinate positions are read in addition to machine positions. Default isfalse.spindleLoad- Whentrue(default), the spindle load is read (machines with a Haas vector drive).coolantLevel- Whentrue, the coolant level is read (machines with a coolant level sensor). Default isfalse.
Ethernet
server- The hostname or IP address of the Haas control.port- The TCP port set in Setting 143. Default is5051.connectionTimeout- The maximum time (in milliseconds) to wait for the TCP connection to open. Default is5000.
RS-232
These must match the RS-232 settings on the control (Settings 11-15).
comPort- The serial port name (ex.COM1or/dev/ttyUSB0). Default isCOM1.baudRate- Default is19200.parity-None,Even,Odd,MarkorSpace. Default isNone.dataBits- Default is7.stopBits-1or2. Default is1.
DataItems
If you use your own Device (createDevice: false), it needs DataItems whose id or name match the keys below.
Read every cycle (readInterval)
| Key | DataItem | Source |
|---|---|---|
avail |
AVAILABILITY | AVAILABLE while the control replies to ?Q100, otherwise UNAVAILABLE |
mode |
CONTROLLER_MODE | ?Q104 |
execution |
EXECUTION | ?Q500 (IDLE = READY, BUSY = ACTIVE, FEED HOLD = INTERRUPTED, ALARM ON = STOPPED) |
program |
PROGRAM | ?Q500 (empty in MDI) |
partCount |
PART_COUNT | ?Q500 (M30 counter #1) |
system |
SYSTEM (Condition) | ?Q500 (FAULT while ALARM ON) |
tool |
TOOL_NUMBER | ?Q201 |
x_act, y_act, z_act |
POSITION (ACTUAL) | ?Q600 5021 - 5023 (machine position, mm) |
a_act, b_act, c_act |
ANGLE (ACTUAL) | ?Q600 5024 - 5026 (machine position, degrees) |
x_work ... c_work |
POSITION / ANGLE (ACTUAL) | ?Q600 5041 - 5046 (workPositions: true), referencing the Device's work coordinate system |
speed |
ROTARY_VELOCITY (ACTUAL) | ?Q600 3027 (spindle speed, RPM) |
spindleLoad |
LOAD | ?Q600 1098 (spindle load, %) (spindleLoad: true) |
Read every slowReadInterval
| Key | DataItem | Source |
|---|---|---|
firmware |
FIRMWARE (VERSION) | ?Q101 (control software version) |
powerOnTime |
EQUIPMENT_TIMER (POWERED) | ?Q300 (seconds) |
cycleStartTime |
EQUIPMENT_TIMER (OPERATING) | ?Q301 (total cycle start time, seconds) |
lastCycleTime |
PROCESS_TIMER (PROCESS) | ?Q303 (seconds) |
previousCycleTime |
PROCESS_TIMER (PROCESS) | ?Q304 (seconds) |
partCount2 |
PART_COUNT | ?Q403 (M30 counter #2) |
workOffset |
WORK_OFFSET | ?Q600 4132 (active work offset number, ex. 54) |
singleBlock |
CONTROLLER_MODE_OVERRIDE (SINGLE_BLOCK) | ?Q600 3030 |
optionalStop |
CONTROLLER_MODE_OVERRIDE (OPTIONAL_STOP) | ?Q600 3033 |
coolantLevel |
FILL_LEVEL | ?Q600 13013 (coolantLevel: true) |
The model (?Q102) and serial number (?Q100) are used for the Device Description.
Notes
- The control only reports the program name, part count and alarm state while it is not running a program (
?Q500returnsSTATUS, BUSYwhile running), so these values update when the program stops. - Commands the control does not recognize (it replies
?, ?Qxxx) are not read again until the control reconnects. - The control sends every reply to every connected client. Replies to other clients' commands are ignored when they can be identified by their label, but macro variable replies (
MACRO, value) do not identify the variable, so avoid other clients reading macro variables over Machine Data Collection at the same time. - Feed, rapid and spindle override percentages, current axis loads and active alarm numbers are not available through Machine Data Collection.
| Product | Versions 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. |
-
.NETFramework 4.6.1
- MTConnect.NET-Common (>= 7.2.0.105)
-
.NETFramework 4.6.2
- MTConnect.NET-Common (>= 7.2.0.105)
-
.NETFramework 4.7
- MTConnect.NET-Common (>= 7.2.0.105)
-
.NETFramework 4.7.1
- MTConnect.NET-Common (>= 7.2.0.105)
-
.NETFramework 4.7.2
- MTConnect.NET-Common (>= 7.2.0.105)
-
.NETFramework 4.8
- MTConnect.NET-Common (>= 7.2.0.105)
-
.NETStandard 2.0
- MTConnect.NET-Common (>= 7.2.0.105)
- System.IO.Ports (>= 8.0.0)
-
net10.0
- MTConnect.NET-Common (>= 7.2.0.105)
- System.IO.Ports (>= 8.0.0)
-
net6.0
- MTConnect.NET-Common (>= 7.2.0.105)
- System.IO.Ports (>= 8.0.0)
-
net7.0
- MTConnect.NET-Common (>= 7.2.0.105)
- System.IO.Ports (>= 8.0.0)
-
net8.0
- MTConnect.NET-Common (>= 7.2.0.105)
- System.IO.Ports (>= 8.0.0)
-
net9.0
- MTConnect.NET-Common (>= 7.2.0.105)
- System.IO.Ports (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MTConnect.NET-AgentModule-HaasAdapter:
| 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 | 130 | 11/21/2026 |
| 7.2.0.105-prerelease | 127 | 11/21/2026 |
| 7.2.0.103-prerelease | 128 | 11/20/2026 |