Recently, I developed an advanced monitoring system for the Haas VF2SSYT CNC machining center. The goal was to collect real-time production data to optimize operational efficiency and improve the analysis of machining cycles using IoT technologies and industrial automation.
The Challenge: Accurate Signal Detection
One of the primary challenges was acquiring reliable signals from the machine’s electrical panel and CNC control system. Since CNC machines do not always provide easily interpretable digital outputs, I opted for a light-based detection method using the machine’s cycle status lamp.
The Hardware Solution: LDR and Arduino Uno R4 WiFi
To overcome this limitation, I used an LDR (Light Dependent Resistor) sensor with an Arduino Uno R4 WiFi board. The Arduino was programmed using the Arduino IDE with code written in C++. The code performs the following tasks:
- Luminosity Reading: Utilizes
analogRead()to monitor the light intensity. - Timing Logic: Implements a timer using
millis()to ensure the lamp stays continuously on for 4 seconds before sending a signal. - Data Transmission: Uses the
WiFiS3.hlibrary for WiFi connectivity and transmits data to the FileMaker server via theWiFiClientclass.
Sample Arduino Code:
int lightValue = analogRead(A0);
if (lightValue > 300) {
if (millis() - startTime > 4000) {
client.print("GET /fmp/data/start.php HTTP/1.1\r\n");
client.print("Host: server_filemaker\r\n");
client.print("Connection: close\r\n\r\n");
}
}
The Software Technology: FileMaker Pro and REST APIs
For data management and storage, I selected FileMaker Pro, a relational database software known for its powerful REST API support. FileMaker was configured to:
- Database Creation: A structured table to log events (
startandstop), timestamps, and machine details. - REST Endpoints: Configured using FileMaker Data API.
- Server-Side Scripting: Automating data recording and cycle time calculations using FileMaker scripts that compute the difference between
startandstopevents.
FileMaker API Example:
{
"url": "https://server_filemaker/fmi/data/v1/databases/monitoring/records",
"method": "POST",
"headers": {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
},
"body": {
"fieldData": {
"event": "start",
"machine": "Haas VF2SSYT",
"timestamp": "2024-05-01T12:00:00Z"
}
}
}
Conclusion and Future Prospects
This implementation successfully enabled detailed monitoring of operations on a Haas VF2SSYT CNC machining center by combining open-source technologies with professional software like FileMaker Pro. The communication between Arduino Uno R4 WiFi and FileMaker through REST APIs ensured accurate and reliable recording of production cycles. I will soon share additional technical details and screenshots of the completed system.




FileMaker Pro
FileMaker Pro is a relational database software developed by Claris, designed for creating custom data management solutions. With its intuitive interface and native support for REST APIs, it is ideal for industrial automation and real-time data collection projects. Key features include:
- Customizable relational database
- Integration with IoT devices through REST APIs
- Process automation with built-in scripting tools
Examples of Applications for FileMaker Pro:
Industrial Production Management:
- Monitoring production phases with automatic event logging (start, stop, pause).
- Detailed reporting on efficiency and cycle times.
Quality Control and Traceability:
- Storing quality control data with images and measurements.
- Generating reports for audits and compliance tracking.
Inventory and Logistics Management:
- Real-time monitoring of stock levels.
- Integration with barcode scanners for instant database updates.
Arduino Uno R4 WiFi
Arduino Uno R4 WiFi is an open-source development board designed for IoT and automation projects. This R4 WiFi version includes a native Wi-Fi module, enabling direct wireless network connectivity for real-time data transmission.
- Microcontroller compatible with C++
- Built-in Wi-Fi module for IoT projects
- Ideal for sensor monitoring and real-time data transmission
Examples of Applications for Arduino Uno R4 WiFi:
Real-Time Environmental Monitoring:
- Collecting data such as temperature, humidity, and air quality.
- Sending data to a remote server for analysis with graphical dashboards.
Industrial Automation and Machine Control:
- Monitoring CNC machines using status sensors (like cycle lamps).
- Sending alerts when a machine stops or exceeds maximum cycle time.
Home Automation and Smart Home Projects:
- Controlling lights, blinds, and appliances via Wi-Fi.
- Automations triggered by environmental conditions, such as turning on the heating when the temperature drops below a threshold.
Leave a Reply