Fornax

Mis programm masinas tegelikult on? CNC programmide ajalugu Gitis

Which program is actually on the machine? CNC program history in Git

11.2026 · lugemisaeg ~5 minNov 2026 · ~5 min read

Programmid on masina arvutis, mälupulgal ja kellegi kaustas, ja keegi ei tea täpselt, milline koopia kehtib. Lahendus ei olnud uus süsteem operaatoritele, vaid vaikne koguja, mis paneb iga muudatuse ajalukku.

Programs live on the machine PC, on a USB stick and in someone’s folder, and nobody knows exactly which copy is current. The fix was not a new system for operators, but a quiet collector that records every change in history.

Probleem

The problem

Lahendus: ainult lugemine ja Git iga masina kohta

The fix: read-only, one Git repo per machine

Iga masina arvuti jagab ainult programmikausta, lugemisõigusega ja ühele teenusekontole. Koguja töötab OT-võrgus, käib kaustad iga 5–15 minuti järel läbi ja kopeerib muutunud failid selle masina Git-reposse. Commit tekib ainult siis, kui midagi muutus.

Each machine PC shares only its program folder, read-only, to one service account. The collector runs inside the OT network, scans the shares every 5–15 minutes and copies changed files into that machine’s Git repo. A commit is created only when something changed.

OT-võrkOT network CNC-01 jagatud kaustshared folder CNC-02 jagatud kaustshared folder CNC-03 jagatud kaustshared folder ro KogujaCollector iga 5–15 minevery 5–15 min võrdleb räsi (sha256)compares hashes (sha256) commit ainult muutuselcommit only on change repos/cnc-01 repos/cnc-02 repos/cnc-03 ajaluguhistory võrdlus (diff)diff otsingsearch Masinatesse ei kirjutata kunagi: jagamine ja ühendus on ainult lugemiseks.Nothing is ever written to the machines: shares and mounts are read-only.
Koguja loeb masinate kaustu ainult lugemisõigusega ja paneb iga muudatuse selle masina Git-ajalukku.
The collector reads machine shares read-only and records every change in that machine’s Git history.

Koguja ei kirjuta kunagi masinasse. Ainult lugemiseks mõeldud jagamine ja ühendus tagavad, et isegi koguja viga ei saa programmi muuta.

The collector never writes to a machine. Read-only shares and read-only mounts mean that even a bug in the collector cannot change a program.

Mida see annab

What you get

Paljud puidutööstuse CNC-vormingud on tekstifailid (näiteks woodWOP .mpr, Biesse .cix/.bpp, SCM Xilog .xxl), nii et Git näitab täpselt, milline rida muutus. Binaar- ja pakitud vormingud salvestatakse muutmata kujul, aga ka nende muudatuste ajalugu on olemas.

Many woodworking CNC formats are text (e.g. woodWOP .mpr, Biesse .cix/.bpp, SCM Xilog .xxl), so Git shows exactly which line changed. Binary or zipped formats are stored as-is and still get a change history.

# näide: mis muutus masinas cnc-02?
$ git -C repos/cnc-02 log --oneline -3
4f1c2a9 cnc-02: 1 files changed (scan 2026-11-12T06:15:02+00:00)
a83d0e1 cnc-02: 3 files changed (scan 2026-11-10T14:30:11+00:00)
19be7c4 cnc-02: 2 files changed (scan 2026-11-06T09:45:40+00:00)

$ git -C repos/cnc-02 diff a83d0e1 4f1c2a9 --stat
 programs/panel_A12.cix | 2 +-
# example: what changed on machine cnc-02?
$ git -C repos/cnc-02 log --oneline -3
4f1c2a9 cnc-02: 1 files changed (scan 2026-11-12T06:15:02+00:00)
a83d0e1 cnc-02: 3 files changed (scan 2026-11-10T14:30:11+00:00)
19be7c4 cnc-02: 2 files changed (scan 2026-11-06T09:45:40+00:00)

$ git -C repos/cnc-02 diff a83d0e1 4f1c2a9 --stat
 programs/panel_A12.cix | 2 +-

Disainiotsused

Design decisions

Õppetunnid

Lessons

Sarnane mure liinil?

A similar problem on your line?