Three brands, three languages on a single factory floor. A FANUC CNC controller communicates via port 8193 using its proprietary API; a Heidenhain TNC answers on port 19000 with concise four-letter telegrams; and a Mazak delivers MTConnect output via a SMARTBOX gateway without exposing the CNC kernel. Across the same production line, three distinct data cultures coexist side by side.
The CNC control protocols guide was structured to place these distinct languages onto a single architectural map. Its purpose is not merely memorizing command sets; it demonstrates which operational problem belongs to which protocol layer, which pathways offer read-only versus write authorization, and where essential security boundaries must be drawn. This guide consolidates five major protocol families into a unified decision framework: FOCAS, LSV2, Heidenhain DNC, Mazak SMARTBOX, and MTConnect.

Guide at a Glance
| Scope | Five CNC data protocol families; architecture, transport, ports, data direction, and licensing limits |
|---|---|
| Protocols | FOCAS (FANUC), LSV2 (Heidenhain), Heidenhain DNC, Mazak SMARTBOX, MTConnect |
| Target Audience | OT/automation engineers, MES integrators, maintenance specialists, plant managers |
| Data Direction | FOCAS/LSV2/DNC: read + write; MTConnect: read-only by design |
| Documentation | FOCAS/LSV2/DNC: proprietary and licensed; MTConnect: open and royalty-free |
| Starting Point | MTConnect for multi-brand telemetry; FOCAS for deep FANUC access; DNC/LSV2 for Heidenhain |
| Update | 14 November 2026; references and specific protocol versions documented per article |
Which problem are you solving?
Protocol selection begins not with brand loyalty, but with your specific operational data requirement. The following routing matrix connects four common industrial scenarios directly to the relevant technical dossier.
| Operational Requirement | Recommended Path | Technical Rationale |
|---|---|---|
| Need parameters, tool offsets, PMC registers, or macro values on FANUC controls | FOCAS Guide | Native vendor API offering deep controller access and write authorization. |
| Need program transfers, execution status, and tool data on Heidenhain TNCs | DNC Guide + LSV2 | DNC provides the licensed software layer; LSV2 governs underlying telegram transport. |
| Deploying multi-brand shop-floor telemetry across a Mazak-heavy cell | Mazak Guide | Explains the SMARTBOX/SENSOR BOX gateway architecture and dialect handling. |
| Building a plant-wide OEE, downtime classification, and energy dashboard | MTConnect Guide | Delivers open, standardized, read-only semantic modeling across all equipment. |
Five Protocols, One Map
MTConnect
An open, royalty-free semantic standard based on XML and HTTP. Features an Agent/Adapter architecture with /probe and /current endpoints; strictly read-only by design. The structural bedrock of multi-brand manufacturing dashboards.
FOCAS
FANUC’s proprietary API suite. Operates via Ethernet port 8193 or high-speed HSSB bus, utilizing DLL libraries and handle-based transactions. Unlocks deep CNC/PMC diagnostics; write capabilities require strict isolation.
LSV2
Heidenhain’s proprietary TCP telegram protocol. Uses port 19000, 4-character ASCII command headers, session login roles, and R_RI telemetry registers. A lean, undocumented, yet observable binary protocol.
Heidenhain DNC
A comprehensive software suite rather than a single protocol: bundles Option 18 SIK licensing, COM interfaces, TNCcmdPlus, and server engines. Clarifies the crucial distinction between physical connectivity and functional data access.
Mazak
A gateway architecture rather than a raw protocol: MAZAK SMARTBOX, SENSOR BOX SC/S/E, and Smooth MONITOR AX. Surfaces standardized MTConnect streams without altering the proprietary CNC core; fidelity depends on gateway boundaries.
Architectural Comparison
| Protocol | Maintainer | Architecture Type | Transport / Port | Direction | Documentation | Primary Use Case |
|---|---|---|---|---|---|---|
| FOCAS | FANUC | Native Vendor API | TCP 8193 / HSSB | Read + Write | Proprietary | Deep FANUC machine control |
| LSV2 | Heidenhain | Proprietary TCP Telegram | TCP 19000 / SSH 22 | Read + Write + Files | Proprietary | Lightweight TNC collectors |
| Heidenhain DNC | Heidenhain | Licensed COM API Suite | 19000 / 19003 | Read + Write + Files | Proprietary | Vendor-supported automation |
| Mazak SMARTBOX | Mazak | Hardware Gateway + MTConnect | Encrypted bus / MTConnect | Primarily Read | Commercial | Mazak-centric production cells |
| MTConnect | MTConnect Institute | Open Semantic Standard | HTTP/XML, SHDR, MQTT | Read-Only | Open | Plant-wide telemetry and OEE |
How to Read This Guide
Engineers and managers approach manufacturing data from distinct vantage points. If you are an executive or plant director evaluating plant architecture, focus first on the comparison matrix and the five-step deployment methodology. If you are an OT or automation engineer, examine the wire-level transport, memory layouts, and permission boundaries detailed in the dedicated FOCAS, LSV2, and DNC dossiers. If your responsibility lies in MES, analytics, or SCADA, start with the MTConnect dictionary and Mazak gateway sections. This guide does not crown a generic “winner”; it establishes the appropriate architectural layer for each problem domain.
Three Frequently Confused Concepts
- Protocol vs API vs Standard: FOCAS is an API library; LSV2 is a wire protocol; MTConnect is a semantic dictionary. Referencing all three under the broad term “protocol” obscures critical differences in abstraction.
- Port vs Connection Lifecycle: Port numbers such as 8193 or 19000 are merely socket endpoints. The session authentication, privilege levels, and licensing handshake operating behind that socket dictate true data flow. An open TCP port does not guarantee data availability.
- Read vs Write Boundaries: Certain interfaces accommodate bidirectional read and write operations, whereas MTConnect is deliberately read-only. Operational authorization influences system security far more than protocol syntax.
First Turn: It Is a Question of Layer, Not Protocol
These five technologies do not inhabit the same tier of the OSI stack. FOCAS and LSV2 function as direct transport and API layers; they interface intimately with controller registers. Heidenhain DNC functions as a software product and licensing layer; it wraps LSV2 mechanics within COM objects and desktop utilities. Mazak SMARTBOX operates as a hardware gateway layer; it isolates the machine network while emitting standardized telemetry. MTConnect resides at the semantic abstraction layer; it assigns uniform industrial meaning to raw variables regardless of the underlying transport.
Failing to recognize these operational layers results in misleading debates, such as framing choices as “MTConnect versus FOCAS.” The accurate question is: At what abstraction layer does your system require this data? If your application must inject tool offsets or manipulate PMC logic, FOCAS, LSV2, or DNC are mandatory. If your platform aggregates operational telemetry across dozens of machines, MTConnect is the optimal choice. If you must connect sealed Mazak CNCs without violating warranty boundaries, SMARTBOX provides the validated pathway.
Second Turn: The Read/Write Safety Boundary
Write capability represents the critical dividing line in manufacturing networks. FOCAS, LSV2, and DNC permit remote applications to alter CNC parameters, shift coordinate systems, overwrite G-code files, and toggle PLC memory coils. While essential for advanced automation cells, this capability introduces physical operational risk. An erroneous offset or corrupted register can cause catastrophic spindle crashes, damage tooling, or endanger operators. MTConnect intentionally eliminates this entire risk surface: it is architecturally read-only.[1]
None of the guides in this series furnish instructions for executing unvalidated write routines. Instead, we establish governance and architectural safeguards: any client process possessing write authority must reside on a segmented subnet, enforce strict cryptographic authentication, and require human operational verification. It should never share a process boundary with passive telemetry collectors.
Third Turn: Licensing and Engineering Overhead
FOCAS, LSV2, and Heidenhain DNC operate within proprietary ecosystems; developer libraries, hardware dongles, or SIK software licenses must be sourced directly from the manufacturer. Conversely, MTConnect is open and royalty-free. However, “royalty-free” does not equate to zero implementation cost. Setting up adapter processes, aligning data tags, configuring network subnets, and managing schema versions demand substantial engineering labor. Over the life of a project, the total cost of ownership is dominated by tag normalization and dialect maintenance rather than initial license fees.
Technical documentation reflects the same trade-off. With proprietary systems, implementation relies on official vendor manuals and commercial technical support. With open standards, engineering teams leverage community repositories, reference C++ agents, and open-source model browsers. Regardless of which avenue you select, maintaining a rigorous version matrix is mandatory: CNC firmware versions, agent builds, and client collectors must remain tightly synchronized.
Where to Begin: A Five-Step Methodology
- Audit Controller Fleet: Catalog machine makes, models, controller generations, and installed network cards. A generic “FANUC” designation is insufficient; a Series 0i-F differs fundamentally from a 30i-B.
- Define Exact Data Requirements: Determine whether operations require read-only monitoring or bidirectional writing. Document specific fields: part counts, spindle overrides, PMC alarms, or coordinate positions.
- Enforce Network Segmentation: Establish strict firewalls between the operational machine subnet, edge gateways, and enterprise IT networks. Isolate write-capable systems entirely.
- Execute a Single-Machine Pilot: Validate end-to-end communication on a single machine tool before attempting plant-wide deployment. Observe physical behavior under real machining conditions.
- Establish Formal Semantic Contracts: Document precise
dataItemIdmapping, engineering units, scaling factors, timestamp accuracy, and error handling policies. Undocumented configurations degrade within months.
Upcoming: Deep-Dive Technical Dossiers
This hub serves as the architectural overview. The accompanying technical dossiers examine the internal mechanics of each protocol family alongside verified implementation patterns.
| Technical Dossier | Technical Focus |
|---|---|
| FOCAS Frame Structures & DLL Matrix | 10-byte packet headers, 28-byte sub-packets, command IDs, and serial DLL mapping |
LSV2 Telegrams & R_RI Telemetry |
Login role hierarchies, override scaling, program execution status, and SSH tunnels |
| Heidenhain DNC COM Object Surface | Option 18 SIK activation, access modes, JHAutomatic, and 19000/19003 port differences |
| Mazak SMARTBOX Tag Normalization | MTConnect item dialects, tool/program/part count mappings, and avail availability states |
| MTConnect Agent/Adapter Architecture | /probe, /current, /sample, SHDR pipeline, ring buffer sizing, and schema versions |
Deployment Case Studies: Aggregating OEE across FANUC cells; secure G-code distribution to Heidenhain TNCs; unifying Mazak and FANUC equipment within a centralized dashboard; monitoring energy draw and cycle times via MTConnect; connecting legacy equipment through SENSOR BOX hardware. All examples incorporate real-world operational constraints and verified documentation.
Security and Operational Ethics
🔒 Industrial Safety and Protocol Boundaries
Write Access = Physical Safety. Injecting parameters, tool wear offsets, PLC registers, or G-code into a live CNC machine tool entails immediate physical risk. No content in this publication is intended to circumvent manufacturer licensing, bypass credentials, or execute unverified write commands.
Network Segmentation = Defense. Read-only monitoring pipelines must remain strictly separated from control channels. Machine networks must be isolated from corporate WANs, and edge gateways must be regularly patched.
Conclusion: The Strategic Question
In manufacturing data integration, the defining question is never simply “which protocol?” It is “which architectural layer, what authorization level, and which security boundary?” FOCAS offers register depth, LSV2 delivers lean simplicity, Heidenhain DNC provides vendor-supported integrity, Mazak offers turnkey gateway isolation, and MTConnect provides a unified vocabulary. The optimum architecture depends entirely on your operational goals.
Where does manufacturing data currently reside on your shop floor: trapped inside CNC controllers, guarded behind physical gateways, or normalized into an open enterprise schema? And do your operational requirements necessitate passive telemetry collection, or are you prepared to govern the rigorous safety responsibilities of remote write execution?
Series & Related Technical Resources
- What Is MTConnect? The Open Standard for Machine Tool Data
- What Is FOCAS? The Proprietary Gateway to FANUC CNCs
- The LSV2 Protocol: Heidenhain’s Quiet Data Language
- What Is Heidenhain DNC? Remote Access and File Transfers on TNCs
- Mazak MAZATROL & SMARTBOX: A Gateway Architecture, Not a Raw Protocol
- RS-232 for Nerds: The Serial Protocol That Tested Our Patience
- I2C, SPI & UART Protocol Physics: Pull-Up Math & Signal Diagnostics
- 3D CAD Software & Mechanical Engineering Design Guide