Introduction
There are two potential data collection methods available for HAAS Machines: HAAS Serial and HAAS Next Gen. The age and model of the HAAS machine will determine which Data Collection method is appropriate.
Topics covered in this article
- HAAS Next Gen
- HAAS Serial
- Connecting a Haas Serial machine
- Configure Moxa with a Browser
- Physical Connection
- Integrating a Haas Next Gen machine
HAAS Next Gen
Any HAAS Machine manufactured in or after 2017 will generally have a 'Next Gen Control'.
HAAS Serial
Any HAAS Machine manufactured prior to 2017 will require a Serial Port integration. This differs from most machine tool brands, wherein MachineMetrics typically collects data via ethernet port integrations.
Some older HAAS Machines lack ethernet ports, while some older HAAS machines possess ethernet ports. However, even when an older Machine has an available ethernet port, it still can't provide MachineMetrics with the necessary data. These older HAAS controls require an extra piece of hardware known as a Moxa Box. This device can be provided by MachineMetrics and will be factored into any quote for integration which involves a HAAS serial integration. The Moxa box provides a way to convert a Serial port connection into an Ethernet connection.
Connecting a Haas Serial machine
- On your HAAS control, open your settings. The location of the specific settings fields may differ between control models. In the example image below, the settings are found under the 'I/O' tab.
- Set your Haas machine’s control Settings to the following:
- Baud Rate Select: 38400
- Parity Select: EVEN
- Stop Bit: 1
- RS-232 Data Bits: 7
- Synchronization: XON/XOFF
- 143 Machine Data Collection: ON
- The Moxa box (Serial to Ethernet box) will likely be configured to the provided IP address and settings prior to shipment. (If not configured by MachineMetrics skip down to on how to configure the Moxa from a browser.)
- Plug the Moxa into the machine’s serial port & connect Ethernet to your MachineMetrics Edge Device or machine network via Ethernet.
- To test connectivity- use a laptop to connect to the Moxa Box via Ethernet and use the command line to ping the Moxa’s IP address that has been set.
- Add the machine to MachineMetrics by using the Machine Settings page.
- If the machine isn’t reporting after 5-10 minutes, double check that your settings are correct from Step 1. Contact Support if further assistance is needed.
Configure Moxa with a Browser
Follow this link for detailed instructions on how to Configure the Moxa Serial to Ethernet Converter.
Connect the Moxa Box to a desktop or laptop computer via Ethernet. Browse to the Moxa’s IP address e.g. http://192.168.127.254
If the Moxa prompts for a password, the factory default is 'moxa'. I also sometimes find them configured with the empty password.
MAKE SURE TO click Submit on every page after making any changes.
Notes, in page order:
Basic Settings
Set the Server Name to something that indicates the machine it is serving e.g. HAAS_VF12.
Network Settings
IP configuration: Static and choose an IP address that the gateway can reach, or select IP configuration: DHCP and set up a permanently reserved address on the local DHCP server.
Either way, note the NPort's IP address for later.
Serial Settings- Port 1
Set the Port Alias to something meaningful too, for example VF12
Match the Haas serial settings for Baud Rate, Data Bits, Stop Bits, Parity, and Flow Control.
I always leave FIFO: Enabled.
Make sure that Interface: RS232.
Operation Modes- Port 1
I leave default settings except for:
Operation mode: TCP Server
Max Connection: 3
Local TCP port: 4001
Finally, go to the Save/Restart page and Submit.
Physical Connection
Locate serial port 1 on your HAAS machine
Connect Moxa Box to a power source
Integrating a Haas Next Gen machine
- Set your Haas machine’s control Settings to the following:
- 143 Machine Data Collection: 4001
- IP Address: Match machine’s IP in MachineMetrics
- Plug Ethernet cable from MachineMetrics Edge device or network switch into machine’s data collection Ethernet port
- Add the machine to MachineMetrics by using the Machine Settings page.
- If the machine isn’t reporting after 5-10 minutes, double check that your settings are correct from Step 1. Contact Support if further assistance is needed.
NOTE: Newer Haas Next Gen controls may have an MTConnect Agent avaiable on port 8082. You can test if the control has this by going to http://<MACHINE-IP>:8082/current
Have questions? Reach out to support@machinemetrics.com for additional information.
Comments
2 comments
The HAAS Serial Data Collection feature, or 'Q codes' became standard in 2001.
Looks like you can assume this feature is present on:
VF-3YT (but not VF-3 in general)
VF-2YT (but not VF-2 in general)
EC500
TR-series
Almost certainly have it:
MDC-series
ST-series
Super Mini Mill
TL-series
TM-series
VM-series
Models this feature should not be assumed, depending on year of mfg and updates/upgrades:
HL- series
HLT-series
HS-series
Mini Mill
SL-series
VF-0, VF-1, VF-2, VF-3, VF-4, VF-5, VF-6, VF-7, VF-8, VF-9 other than YT variant.
Have you had any issues with rs232 connection becoming unusable after a certain amount of time where it states:
Too many connections. Disconnecting.
The only solution I've found so far is reset the setting 143 back to 0 and then back to the normal port I use.
Article is closed for comments.