Kilidi açılmamış bir PLC'yi besleyen 4-20 mA döngüsünü, ona müdahale etmeden okumak
Yapay zekâ tarafından English dilinden çevrildi ·
Bakımını yaptığımız bir batarya depolama sahasında, sahadaki PLC’nin analog girişine bağlanan soğutma sıvısı döngüsü için 4-20 mA tank seviye transmitteri var. PLC satıcının, program kilitli, iletişim lisansı yok ve ona dokunmamıza izin yok. Sahada zaten bulunan ESP32 tabanlı düğüm üzerinden aynı seviyeyi Hermetry’de görmek istiyorum.Fikrim kendi küçük izolatörümü yapmak: döngüyü bir ADC ile okumak, bir izolasyon bariyerinden geçirmek ve PLC için bir DAC ile yeniden 4-20 mA üretmek. Böylece PLC “aynı” sinyali görür ve bedavaya dijital bir kopyayı elde ederim. Bunu yapan oldu mu? Doğruluktan ve kartım resetlenirse PLC okumasına ne olacağından endişeliyim.
On a battery storage site we look after, there’s a 4-20 mA tank level transmitter for the coolant loop that goes into an analog input of the site PLC. The PLC is the vendor’s, program locked, no comms licence, and we’re not allowed to touch it. I want the same level in Hermetry, through the ESP32-based node we already have on site.
My idea was a little isolator of my own: read the loop with an ADC, pass it over an isolation barrier, and regenerate a 4-20 mA with a DAC for the PLC, so the PLC sees the “same” signal and I get a digital copy for free. Has anyone built that? Worried about accuracy and what happens to the PLC reading if my board resets.
Yapay zekâ tarafından English dilinden çevrildi ·
Döngüye seri olarak ikinci bir direnç ekleyip direncin uçlarındaki gerilimi ESP ile okuyamaz mısınız? Evde bir basınç sensörüyle yaptığım şey tam olarak buydu.
Could you just add a second resistor in series in the loop and read the voltage across it with the ESP? That’s what I did with a pressure sensor at home.
Yapay zekâ tarafından English dilinden çevrildi ·
Belki aptalca bir soru, ama değeri neden ağ üzerinden PLC’den okumuyorsunuz?
Dumb question maybe, but why not read the value from the PLC over the network?
Yapay zekâ tarafından English dilinden çevrildi ·
@Kevin H. aptal değil, ama o PLC’de iletişim lisansı yok ve satıcı bu büyüklükteki bir saha için lisans satmayacak. @aisha.maker burada bekleyen bir toprak döngüsü (ground loop) var, ESP farklı bir besleme kaynağından besleniyor.
@Kevin H. not dumb, but no comms licence on that PLC and the vendor won’t sell one for a site this size. @aisha.maker that’s a ground loop waiting to happen here, the ESP is powered from a different supply.
Yapay zekâ tarafından English dilinden çevrildi ·
ADC/DAC düzeneğini kurmayın. Kartınız yeniden başlarsa veya DAC bozuk sinyal üretirse, PLC seviyede ani bir sıçrama görür ve sahayı durduran kişi siz olursunuz. Bu döngüye eklediğiniz her şey, sizin tarafınız devre dışı olsa bile PLC’nin okumasını doğru tutmalıdır.Kullandığım, ikisi de hazır piyasa ürünü olan iki yöntem:
- Döngü beslemeli bir sinyal ayırıcı/izolatör: bir giriş, iki izole 4-20 mA çıkış. PLC bir çıkışı, sizin node’unuz diğerini alır. Döngü beslemeli modeller gücünü döngüden alır, bu yüzden gerilim bütçesini kontrol edin: besleme gerilimi eksi transmitter minimumu eksi izolatörün gerilim düşümü eksi PLC girişinin yükü, 20 mA’de pozitif kalmalıdır.
- Aisha’nın fikri, güvenli biçimde uygulanmış hali: Modbus RTU çıkışlı izole bir analog giriş modülüne bağlı küçük bir seri şönt. İzolasyon, Ciarán’ın endişelendiği toprak döngüsünü ortadan kaldırır. Gateway’iniz bunu RS485 üzerinden diğer Modbus cihazları gibi okur. Aynı gerilim bütçesi kontrolü geçerlidir; 50 ohm’luk bir şönt 20 mA’de 1 V düşüm yaratır.
1’i tercih ediyorum, çünkü PLC’nin sinyal yolu sertifikalı bir parça; sonradan birinin çıkarabileceği bir şönt değil.Ardından Hermetry’de ham mA değerini gönderin ve dönüşümü orada yapın. Kök akışta, Save telemetry’den önce gelen bir Scale bloğu 4-20 aralığını tank aralığınıza eşler; arıza tespiti için ham değeri saklarsınız (3.8 mA’in altı kopmuş döngü anlamına gelir):
Scale: in_min 4, in_max 20, out_min 0, out_max 100 -> level_pct
Türetilmiş değer örneği Türetilmiş değerler sayfasında.
Don’t build the ADC/DAC thing. If your board resets or the DAC glitches, the PLC sees a level jump and you’re now the person who tripped the site. Anything you put in that loop must keep the PLC’s reading correct even when your side is dead.
Two things I’ve used, both off the shelf:
- A loop-powered signal splitter/isolator, one input, two isolated 4-20 mA outputs. The PLC gets one output, your node the other. Loop-powered ones take the power from the loop, so check the voltage budget: supply minus transmitter minimum minus the isolator’s drop minus the PLC input’s burden must stay positive at 20 mA.
- Aisha’s idea done safely: a small series shunt with an isolated analog input module that has Modbus RTU output. The isolation removes the ground loop Ciarán worried about. Your gateway reads it over RS485 like any other Modbus device. Same voltage budget check, a 50 ohm shunt costs 1 V at 20 mA.
I prefer 1 because the PLC’s signal path is a certified part and not a shunt someone may remove later.
Then in Hermetry send the raw mA and convert there. In the root flow, a Scale block before Save telemetry maps 4-20 to your tank range, and you keep the raw value for fault finding (below 3.8 mA means a broken loop):
Scale: in_min 4, in_max 20, out_min 0, out_max 100 -> level_pct
The derived value example is on Derived values.
Yapay zekâ tarafından English dilinden çevrildi ·
Döngü beslemeli bir ayırıcı kullandık; bütçe 4 V boşlukla çıktı. Node ikinci çıkışı okuyor, Scale bloğu level_pct değerini üretiyor ve ham mA anahtarını 3.8 altında bir alarmla tuttum. Node’un gücünü test için kestiğimizde PLC okuması değişmedi.
Went with a loop-powered splitter, the budget worked out with 4 V to spare. The node reads the second output, Scale block gives level_pct, and I kept the raw mA key with an alarm below 3.8. The PLC reading didn’t move when we cut the node’s power to test.
- Bu konuyu yanıtlamak için giriş yapmış olmalısınız.
Sohbete katılın
Soru sormak ve yanıtlamak, yararlı gönderileri beğenmek ve sorununuzu çözen yanıtı işaretlemek için oturum açın. Her katkı puan ve seviye kazandırır.

