⚡ Quick Answer: The “Smart Factory” Handshake
Can HeatSign machines talk to SAP, Oracle, or custom MES systems?
Yes. Through TCP/IP (Ethernet) or RS232 (Serial), HeatSign markers can act as a connected node in your network.
Instead of typing numbers manually, your ERP sends a JSON or ASCII command (e.g., {"Text":"SN-2026-001"}) to the machine. The machine marks the part, verifies the operation, and sends a “Success” signal back to your database. This closes the loop on traceability, eliminating human error and enabling “One-Piece Flow” manufacturing.

Introduction: The Hidden Cost of the “Typing Finger”
In the era of Industry 4.0, the most dangerous tool on the factory floor is often a keyboard.
If your production line relies on an operator reading a work order and manually typing a serial number into a laser marking machine, you have a “Data Silo.” It is an air-gapped process prone to human error. A single typo in a 12-digit VIN number or a medical UDI code can result in:
- Scrapped Batches: If the number doesn’t match the database, the part is useless.
- Failed Audits: In aerospace and medical (FDA 21 CFR Part 11), data integrity is mandatory.
- Production Bottlenecks: Manual data entry is slower than the laser itself.
At HeatSign, we design our machines not just to mark metal, but to process data. Whether you are running a Dot Peen marker on a chassis line or a Fiber Laser on a PCB assembly line, our controllers support robust communication protocols (JSON, ASCII, Modbus) that let your IT infrastructure take the wheel.
This guide explores the technical architecture of connecting a HeatSign machine to your SQL database or MES (Manufacturing Execution System).
1. The Architecture: How the Handshake Works
To an IT Manager, a laser marker is just another I/O device. Here is the standard data flow in a connected environment.
The “Mark & Verify” Workflow:
- Trigger: A part arrives at the marking station (detected by a sensor or barcode scan).
- Request: The Middleware (PC/PLC) queries the SQL Database: “What is the next serial number for SKU #123?”
- Send: The Database returns “SN-999”. The Middleware wraps this in a HeatSign-compatible packet (JSON/ASCII) and sends it via TCP/IP port 8080.
- Action: The HeatSign machine receives the string, updates the “Text” variable in the active template, and fires the laser.
- Feedback: Upon completion, the machine sends a callback (e.g.,
Mark Complete) to the Middleware. - Close: The Middleware updates the SQL Database: “SN-999 marked at 10:42 AM.”
2. Connectivity Options: RS232 vs. TCP/IP vs. File Mode
HeatSign software supports three primary methods of data ingestion. Choosing the right one depends on your facility’s infrastructure.
Option A: TCP/IP (Ethernet) – The Modern Standard
- How it works: The laser machine acts as a TCP Server or Client. Your MES software opens a socket connection to the machine’s IP address (e.g.,
192.168.1.10) and Port. - Best For: High-speed production lines, remote control, and complex data exchange (JSON format).
- HeatSign Feature: Our software includes a “Net” element that listens for incoming strings and marks them instantly.
Option B: RS232 (Serial) – The Legacy Reliable
- How it works: A physical DB9 cable connects the machine to a PLC or PC.
- Best For: Environments with heavy electrical noise (where Ethernet might drop) or legacy PLCs that lack Ethernet ports.
- HeatSign Feature: The “Com” element allows you to define Baud Rate (default 9600), Data Bits (8), and Parity to match your PLC.
Option C: Local File/Database (TXT/Excel) – The Batch Solution
- How it works: The machine reads a specific line from a local
.txtor.csvfile. Your ERP simply updates this text file in a shared folder. - Best For: Facilities without direct socket programming resources. It’s a “low-code” integration.
- HeatSign Feature: The “File” element allows line-by-line reading with “Auto-Increment” and “Rejection of Duplicates” capabilities.
Feature | TCP/IP (Ethernet) | RS232 (Serial) | Local File (TXT/XLS) |
Speed | ⚡ Fast (ms latency) | 🐢 Moderate | 🐢 Slower (File I/O) |
Data Integrity | High (Checksums) | Medium | Medium |
Complexity | High (Requires Socket Programming) | Medium | Low (Easy Setup) |
Distance | Unlimited (Network) | < 15 Meters | N/A (Local PC) |
Feedback | Full 2-Way Communication | Full 2-Way | Read-Only (Mostly) |
3. Deep Dive: The HeatSign JSON Protocol
For developers building a middleware C# or Python application to talk to HeatSign, we use a lightweight JSON-based protocol. This is cleaner and easier to parse than hex-codes.
Based on our technical documentation (TCP Control Marking Protocol), here is how you control the machine:
Step 1: Login (Handshake)
Before sending data, your system must authenticate.
-
Client Sends:
{"F":"Login_C2S", "password":"123456"}# -
Machine Replies:
{"F":"Login_S2C", "status":"success"}#
Step 2: Update the Variable (The “Payload”)
You don’t need to resend the whole graphics file. You just target the specific text object (e.g., “SerialNum”) and update its value.
-
Client Sends:
{“F”:”SetTextInfo_C2S”,
“Doc”:”Template1.orzx”,
“PosIndex”:0,
“Text”:”SN-2025-BATCH-A”}#
-
Machine Replies:
{"F":"SetTextInfo_S2C", "status":"success"}#
Step 3: Execute Marking
-
Client Sends:
{"F":"DevsMark_C2S", "devs":["Device1"]}# -
Machine Replies:
{"F":"DevsMark_S2C", "status":"success"}#
💡 Engineer’s Note: Notice the
#at the end of every string. This is the packet terminator. Your TCP listener must look for this character to know the message is complete.
4. Direct Database Integration (SQL/ODBC)
Some clients prefer not to write socket code. They want the HeatSign machine to “look” directly into a SQL database.
While the machine itself doesn’t run a SQL engine, we provide Middleware Solutions (often a small Windows Service running on the control PC) that acts as the bridge.
The “Polling” Workflow:
-
Database Table: You create a table named
PENDING_JOBSwith columnsID,DATA,STATUS. -
HeatSign “File” Mode: We map the HeatSign software to read from a local CSV.
-
The Script: A simple Python/PowerShell script runs in the background. It queries
SELECT * FROM PENDING_JOBS WHERE STATUS='NEW'. -
Data Push: The script takes that data, writes it to
input.txt(which the laser is watching), or pushes it via localhost TCP to the marking software. -
Write Back: Once the laser finishes (detecting the “End of Mark” signal), the script runs
UPDATE PENDING_JOBS SET STATUS='DONE'.
This allows you to control the machine entirely using SQL queries, a language your IT team already speaks fluently.
5. Handling Errors and “Bad Data”
Integration isn’t just about sending data; it’s about handling failure. HeatSign protocols include specific error codes to prevent scrap.
-
Duplicate Check: In our “File” mode settings, you can check the box “Check Repeat.” If the ERP sends a serial number that has already been marked (cached in the system log), the machine will refuse to fire and throw an alarm.
-
Status Query: Your system can periodically send
{"F":"GetMarkStatus_C2S"}#.-
If response is
0= Idle (Ready for new data). -
If response is
2= Busy (Marking in progress). -
If response is
Error= The machine might be in E-Stop or fault mode.
-
This “Heartbeat” monitoring allows your central SCADA system to know the health of the marking station in real-time.
6. HeatSign Equipment Recommendations for Automation
Not all markers are automation-ready. Here is what we recommend for connected factories:
For Heavy Industry (VIN / Steel): HeatSign HS-PE01-P (Dot Peen)
-
Why: These pneumatic markers are robust. The controllers feature dedicated I/O ports (Start/Stop/Busy) and RS232/Ethernet interfaces specifically designed for PLC integration (Siemens/Allen Bradley).
For Electronics & Precision (High Speed): HeatSign HS-FLY60 (Fiber Laser)
-
Why: The digital control board supports high-speed “Fly Marking” (marking while the conveyor moves). The software architecture handles rapid variable data updates (milliseconds latency) required for serialized QR codes on moving parts.

🚀 Conclusion: Close the Loop
Digital transformation doesn’t have to be complicated. By connecting your HeatSign marker to your ERP, you convert a “dumb” machine into an intelligent data node. You eliminate typo-related scrap, ensure 100% traceability, and speed up production.
Whether you are using a simple Excel sheet or a complex SAP environment, HeatSign has the protocol support to make the integration seamless.
🙋♀️ Frequently Asked Questions (FAQ)
Can I connect HeatSign directly to a PLC (e.g., Siemens S7)?
Yes. Most PLCs communicate via Modbus or raw TCP/IP. You can configure the PLC to send the ASCII command strings (commands like SetTextInfo) directly to the HeatSign controller’s IP address. Alternatively, we can use discrete I/O (24V signals) for simple “Start/Stop” control while data is sent via RS232.
What happens if the network goes down?
The HeatSign machine is a standalone unit. If the network fails, it can switch to “Offline Mode.” The operator can manually select templates or input data via the touchscreen, or read from a locally cached USB file until the network is restored.
Can the machine generate its own serial numbers if the database is slow?
Yes. The software has powerful internal counters. You can set the machine to auto-increment (001, 002…) internally. It can then report these numbers back to the database after marking (“I just marked 001”), rather than waiting for the database to tell it what to mark.
Do you support CSV files?
Yes. In the “File” element of our software, you can select “Excel/TXT”. You define the delimiter (comma or tab). The machine reads line 1, marks it, marks line 2, etc. It can also loop back to the start or stop at the end of the file.
How do I test the connection without writing code?
We recommend using a simple “TCP/IP Debugging Tool” (like NetAssist or Putty) on your PC. You can connect to the machine’s IP and manually type the JSON commands (e.g., {"F":"GetCount"}#) to see if the machine responds. This verifies the physical link before you integrate it into your ERP.
What is the "Command" vs "Data" distinction in your protocol?
- Command: Instructions to change settings, load files, or start marking (e.g.,
StartMark). -
Data: The actual content to be engraved (e.g.,
SN-12345). Our protocol handles both. You can send a single packet that loads a template AND fills it with new data in one go.







