Skip to content

MTConnect Agent and Adapter for Haas CNC Machines using Ethernet or RS-232

License

Notifications You must be signed in to change notification settings

TrakHound/MTConnect-Agent-For-Haas

Repository files navigation

MTConnect® Agent For Haas

Open Source MTConnect® Agent and Adapter for Haas CNC Machines using Ethernet or RS-232

This supports the basic data collection variables available using setting 143 on Haas machines described in the link below:

http://diy.haascnc.com/data-collection-using-rs-232-port-0

TODO:

  • Add the ability to add Q600 variables to the configuration file
  • Better error management

Ethernet Adapter Configuration File

<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <Device>
  
	<!-- Device Name used in Devices.xml file for MTConnect® Agent's schema -->
    <DeviceName>Haas_Device</DeviceName>
	
	<!-- Port to communicate with MTConnect Agent -->
    <Port>7885</Port>
	
	<!-- Adapter heartbeat -->
    <Heartbeat>1000</Heartbeat>

    	<!-- Ethernet settings to communicate with the Haas machine -->
    <EthernetServer>localhost</EthernetServer>
    <EthernetPort>5051</EthernetPort>
	
  </Device>
</Configuration>

RS232 Adapter Configuration File

<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <Device>
  
	<!-- Device Name used in Devices.xml file for MTConnect® Agent's schema -->
    <DeviceName>Haas_Device</DeviceName>
	
	<!-- Port to communicate with MTConnect Agent -->
    <Port>7885</Port>
	
	<!-- Adapter heartbeat -->
    <Heartbeat>1000</Heartbeat>

	<!-- COM Port to communicate with the Haas machine -->
    <COMPort>COM3</COMPort>
	
  </Device>
</Configuration>