OtomasyonAutomation··3 dk okuma4 min read
Seçimden 3D modele: üç saatlik işi on dakikanın altına indiren otomasyonFrom selection to 3D model: the automation that cut a three-hour job to under ten minutes
Her santralde aynı sıra: seçim programının çıktısını aç, parametreleri tek tek CAD modeline gir, çizimi al, iş emri belgelerini doldur. Bir mühendisin üç saati. Bu işi bir betiğe devrettik ve süre on dakikanın altına indi. Bizi asıl rahatlatan ise kazanılan zaman olmadı.Every unit, the same routine: open the selection program's output, type the parameters into the CAD model one by one, produce the drawings, fill in the work-order documents. Three hours of an engineer's day. We handed it to a script and it dropped below ten minutes. The time saved, though, was not what mattered most.
Özel üretim klima santralinde satış, ünitenin bütün bileşenlerini seçim programında belirler: bölüm sırası, batarya ölçüleri, fan, filtre, damper, kasa boyutları. Bu bilgi bir dosyada hazır durur. Sonra bir mühendis aynı bilgiyi 3D CAD programındaki parametrik modele yeniden girer; uzunluklar, panel sayıları, kapı yönleri, delik konumları. Ardından çizimler alınır ve iş emri belgeleri yazılır.
Aynı rakamlar, üç ayrı yere, elle.
Bir gün 1.250 yerine 1.520 yazılır
Otomasyona başlarken aklımızdaki ilk şey hız değildi. Elle giriş olan her yerde bir gün iki rakamın yeri karışır. Çizim üretime gider, sac kesilir, hata ancak montajda fark edilir. O noktada kaybedilen şey masa başında üç saat olmaktan çıkar, üç haftalık bir teslimatı etkiler. Bu yüzden koyduğumuz ilk hedef basitti: seçim programında bir kez yazılmış bir rakam, ikinci kez insan eliyle yazılmayacak.
Teknik tarafı anlatması kolay. Bir betik seçim programının çıktısını okuyor, parametreleri CAD programının API'si üzerinden parametrik modele yazıyor, modeli yeniden oluşturuyor, çizimleri ve iş emri dosyalarını üretiyor. Bunu yazmak, açık konuşayım, işin rahat kısmıydı.
Bence bu tür bir betiğin uyması gereken ilk ilke, tahmin etmemesi. Seçim dosyasında bir bilgi eksikse ya da iki bilgi birbiriyle çelişiyorsa, en makul görünen değeri seçip devam etmek cazip gelir. Bu, elle girişin hatasını otomasyonun içine taşımak demektir ve üstelik hatayı daha görünmez kılar. Eksik bilgi, mühendisin önüne açıkça bir soru olarak gelmeli.
Kurallar çizimlerin içine gömülüydü
Zor olan, tecrübeli bir mühendisin çizim yaparken farkında bile olmadan uyguladığı kuralları yazıya dökmekti. Bu kuralları kimse bir listede tutmuyordu. Yıllar içinde yapılmış çizimlerin içinde, birkaç kişinin hafızasında ve "biz hep böyle yaparız" cümlelerinde yaşıyorlardı. Birkaç örnek vereyim:
- Bölüm belli bir uzunluğun altındaysa servis kapısı sığmaz.
- İki batarya arka arkaya geliyorsa aralarındaki damlalık boşluğu belli bir değerin altına inemez.
- Bazı fan boyları bazı kasa kesitlerine fiziksel olarak girmez.
- Kapının açılış yönü, servis tarafına ve yanındaki bölümün ne olduğuna göre değişir.
Bunları tek tek sorarak, eski çizimleri karıştırarak topladık. Bu tür kuralları toplamanın en verimli yolu, eski bir çizimi açıp "bu ölçü neden böyle?" diye sormak; cevabın içinden neredeyse her zaman yazılmamış bir kural çıkıyor. Sonunda elli civarında doğrulama kuralı oldu. Her biri tek başına küçük bir şey; hepsi birlikte, bir mühendisin yıllar içinde biriktirdiği muhakemenin yazıya dökülmüş hâli.
Kuralları yazmaya harcadığımız zaman, betiği yazmaya harcadığımızın üç katıydı. O kurallar artık herkesin açıp okuyabildiği bir listede duruyor.
Betik durmuyor, işaretliyor
Bir kural ihlal edildiğinde betik işi kesmiyor. İlgili yeri KONTROL diye işaretleyip devam ediyor. Sebebi şu: bazı ihlaller satışın bilerek yaptığı tercihlerdir ve onları hata gibi durdurmak işi boş yere kilitler. Mühendis çıktıya bakıyor, işaretli yerleri açıyor, onaylıyor ya da düzeltiyor. Otomasyon işi hazırlıyor; son kararı imzalayan hâlâ bir insan.
Üç saatlik iş on dakikanın altına indi. Bu, ölçülebilen kısım. Ölçmesi zor olan kısım şu: yeni başlayan bir mühendis ilk haftasında tecrübeli birinin çizimini üretebiliyor, çünkü kurallar yazılımın içinde. Tecrübeli mühendis ise elle veri girmek yerine kuralların yanlış ya da eksik olduğu yerleri buluyor. Yani işin gerçekten düşünülmesi gereken kısmına dönüyor.
Mühendislik ofisinde otomasyon genellikle insanı devreden çıkarmak diye anlatılır. Bizim gördüğümüz bunun tersiydi. Devreden çıkan elle veri girişi oldu; mühendis ise tam da muhakemenin gerektiği yerde, KONTROL yazan satırların başında kaldı.
In a custom air handling unit, sales defines every component in the selection program: section order, coil dimensions, fan, filter, dampers, casing size. That information sits in a file, ready. Then an engineer types the same information again into the parametric model in the 3D CAD program: lengths, panel counts, door orientations, hole positions. After that come the drawings and the work-order documents.
The same numbers, in three different places, by hand.
One day someone types 1,520 instead of 1,250
Speed was not the first thing on our minds when we started. Wherever there is manual entry, sooner or later two digits swap places. The drawing goes to production, the sheet metal is cut, and the mistake surfaces only at assembly. By then you are no longer losing three hours at a desk; you are putting a three-week delivery at risk. So our first target was simple: a number written once in the selection program would never be written a second time by a human hand.
The technical side is easy to describe. A script reads the selection program's output, writes the parameters into the parametric model through the CAD program's API, regenerates the model, and produces the drawings and work-order files. Writing that was, honestly, the comfortable part.
In my view the first principle for a script like this is that it must never guess. When information is missing from the selection file, or two pieces of information contradict each other, it is tempting to pick the most plausible value and keep going. That simply moves the manual-entry error inside the automation, where it is even harder to see. Missing information should reach the engineer as an explicit question.
The rules were buried in old drawings
The hard part was writing down the rules an experienced engineer applies without even noticing. Nobody kept them in a list. They lived inside drawings made over the years, in a few people's memories and in sentences that start with "we always do it this way". A few examples:
- If a section is shorter than a certain length, the service door won't fit.
- If two coils come back to back, the drain gap between them cannot go below a certain value.
- Some fan sizes physically do not fit into some casing cross-sections.
- Which way a door opens depends on the service side and on what the neighbouring section is.
We collected them one by one, by asking and by digging through old drawings. The most efficient way to collect rules like these is to open an old drawing and ask "why is this dimension what it is?"; almost every answer contains an unwritten rule. In the end it came to around fifty validation rules. Each one is small on its own; together they are an engineer's accumulated judgement, finally written down.
We spent three times longer writing the rules than writing the script. Those rules now sit in a list anyone can open and read.
The script flags, it doesn't stop
When a rule is violated, the script does not abort. It marks the spot CHECK and carries on. The reason: some violations are choices sales made on purpose, and stopping on them as if they were errors would block the job for nothing. The engineer looks at the output, opens the flagged items, and confirms or corrects them. The automation prepares the job; the person who signs it off is still human.
A three-hour task now takes under ten minutes. That is the measurable part. The part that is hard to measure goes like this: a newly hired engineer can produce an experienced colleague's drawing in their first week, because the rules live in the software. The experienced engineer, instead of typing, hunts for the places where the rules are wrong or missing, which is to say they get back to the part of the job that actually needs thinking.
Automation in an engineering office is usually described as taking the human out of the loop. What we saw was the reverse. Manual data entry left the loop, and the engineer stayed exactly where judgement is needed, at the lines marked CHECK.