Hacker News new | past | comments | ask | show | jobs | submit login
Arduino PLC IDE (arduino.cc)
65 points by Lwrless 9 months ago | hide | past | favorite | 86 comments



I don't see what they they think the market is for pseudo-industrial hardware that lacks the bare minimum of ESD protection and terminations. And they want suckers to pay a premium for their black PCBs that have nothing about them to justify the cost.


Like a lot of Arduino products, it must be targeted at people who don't know any better and whose sole exposure to electrical engineering or systems engineering is what they see in make videos. Automation direct PLCs are cheaper than whatever they're hawking here and almost certainly way more robust (having used a few, they were surprisingly good). Anyone who is using PLCs in a remotely serious industrial fashion is almost certainly going to keep buying Rockwell or Siemens anyways.


> Like a lot of Arduino products, it must be targeted at people who don't know any better and whose sole exposure to electrical engineering or systems engineering is what they see in make videos.

Industrial automation is exactly this. If you look up the history of the PLC, Dick Morley, founder of Modicon, specifically designed it to hide the computer part. The reasons were twofold: partly for marketing as in ye olde days computers were big, expensive and required costly engineers, and to enable plant electricians and other maintenance personnel the ability to program them using ladder schematics which is why we have ladder logic. So from the beginning the PLC has been targeted at non-technical personnel.

> Automation direct PLCs are cheaper than whatever they're hawking here and almost certainly way more robust (having used a few, they were surprisingly good).

Indeed, though I only like the Click. I have two Clicks at home and used them at work for all sorts of little projects. I haven't bothered with their Productivity line as I dont think it's a very forward thinking platform as its stuck in the 90's with parallel busses on backplanes with proprietary expansion (literally a clone of their Koyo DL series). Then there is their legacy Direct Logic series from Koyo which is solid as hell but long in the tooth. Now they are selling LS Electric which makes me feel they are all over the place PLC wise.

For bigger automation projects I use Beckhoff gear which is very modular and their EtherCAT protocol is very well designed and thought out - deterministic structs over Ethernet. My only gripe is the big shitty Visual studio shell IDE that tends to fall over but every automation vendor has big shitty IDE's. Thankfully they have a FreeBSD runtime alternative to Windows Embedded for the controller side. I can write real-time PLC programs in C/C++ and whatever on the Windows/BSD side. Or stick with IEC 61131-3 languages.

> Anyone who is using PLCs in a remotely serious industrial fashion is almost certainly going to keep buying Rockwell or Siemens anyways.

That is more of an industry trope: "no one ever got fired for buying IBM" but replace IBM with AB for the USA or Siemens in Europe. Basically, Enterprise grade automation with all the associated enterprise goodness: high cost, licensing, price gouging legacy support, and poor technical decisions. I stay away from it.


Seconding Beckhoff. EtherCAT is a fantastic protocol, TwinCAT/BSD works great, reliability is excellent. It's super nice to run realtime PLC code on specific processor cores with µs of jitter while other cores run a normal OS with normal applications (e.g. VictoriaMetrics) on the controller itself.

I have a construction project involving several buildings with overlapping infrastructure. Everything gets connected to EtherCAT as quickly as possible. Electric generation: solar panels, batteries, inverters. Energy management: branch circuit monitoring, weather forecasts, solar forecasts, load control for things like EV charging and water heating. HVAC: heat pumps, buffer tanks, circulation pumps, valves. Building automation: lighting, access control. I just add I/O wherever, connect over Ethernet, and glue all the signals together in software.

I wouldn't dare approach a project like this with Arduino.


How is procurement process with Beckhoff? I am tempted to make the jump from mostly AB.


It's… fine? Unlike certain other brands, I've encountered no network of frothing, territorial, gatekeeping dealers with Beckhoff. For my project, I reached out to sales.usa@beckhoff.com, got a rep, asked for a quote, and went from there.

Secondhand can be viable too. Some of my "jellybean" EtherCAT terminals came from eBay. I won't get help from Beckhoff if they break, but given that I already have replacements on hand, I'm really not worried about it.

Beckhoff also lets you download almost all the development tools, runtimes, and PLC libraries without paying. In their words:

> Trial licenses can be generated in the TwinCAT 3 development environment (XAE) for many TwinCAT 3 functions for a validity period of 7 days. This can be repeated any number of times. An internet connection is not required for this. In this way, these TwinCAT functions can be used simply and cost-effectively in laboratory operations, e.g. in the education sector.

This is obviously useful for development and experimentation. It can also be an escape hatch in production if you need to substitute controllers. Beckhoff wants you to pay for what you use, sure, but their licensing scheme goes out of its way to avoid kicking you when you're down.


> Unlike certain other brands, I've encountered no network of frothing, territorial, gatekeeping dealers with Beckhoff.

This. They sell you gear then leave you alone. If you need help you call or email. Done. If the vendor demands you create an account to access simple datasheets - run like hell. Once they see you even glancing at a product they activate a frothing at the mouth sales rep who will launch a harassment campaign where they email and call multiple times a week seemingly forever or until you are EXTERMELY rude to them.


There's also this really weird fear in that industry of open-source anything.

A while back, I was investigating security options for PLCs (in the light of e.g. stuxnet), and while Siemens and Rockwell do ultimately feature such things, there was always a lot of "you can trust our security schema, but you can't trust that open-source stuff, anybody could put anything in there".

There are very good reasons to use PLCs, that the Arduino PLCs completely fail to address. But I'll bet that a lot of criticism within the industry will come down to "its open source, so you can't trust them!".


> There's also this really weird fear in that industry of open-source anything.

The weapon of choice of enterprise anything: FUD.


Beckhoff is so awesome. I bought at least 100 of their EP series modules, which are IP65 and can be mounted anywhere and use M12 and M8 connectors, so with the right sensors you can just connect with an off the shelf cable, no wiring connectors. No running endless sensor and actuator cables back to a central cabinet.

And you get fast deterministic control with etherCAT no problem.

Don't sleep on beckhoff


There may be competing products, but you can't go to a screwdriver shop today and buy quantity=1 to learn from, which vendors should have accommodated even at some substantial margin.


Any large supplier will hapilly sell you one PLC of any type (there are also quite a lot projects needing just one piece of specific PLU), the tools might kill your budget though. And there are special beginner/low scale series like Siemens LOGO with simplified configuration and cheaper simpler tooling.


https://mall.industry.siemens.com/mall/en/WW/Catalog/Product... seems like a difficult vendor, with no buy button and no price tag.


Call your closest electrical supply and get the price. Plant maintenance technicians are comparatively old-timey, so ask yourself how you would do it in 1990 and try that.

And for the record, brand new Logos are like $100-$200 on the low end and you probably shouldn't use them. The low end of S7-1200 will come in between $500-$1000 and is much more likely to fulfill your needs.


Sure, call. Do a back and forth with calls and emails for two days with their sales guy to make sure they got it right. Spending five to six figures. 5-15% of order shows up incorrect.

When you go to try another distributor: No, you're in crappy vendor's territory. So, sorry!

Waiting for that invisible hand of the free market to step in...


As i just posted, in this case, all you have to do is paste the part numbe rinto octopart and you would discover there are 5 no-questions-asked distributors that will sell you it without any issue.

Standard ones, like distrelec, mouser, TME, etc.

This is not hard


I guess I'm fortunate enough to have never had any issues with the local yokels and haven't run into anybody with any distributor horror stories. Save Keyence, of course, but at least their salespeople are so desperate for sales that the salesman you have at any given time will usually let you walk all over them. AB's licensing entitlement processes have always given me more grief than distributors. If it's any slight consolation, there are at least a few places in the world that don't have too bad.


Use the Siemens configuration tool, it verifies your selections and then gives you a BOM to order from.

You seem to speaking from the place of someone who actually hasn't done this before.


This is the distributor website Which they publish the entire catalog for (unlike some others). If you are a distributor, there actually is a buy button on the same page.

You can get them at mouser, digikey, and a million other places.

Seriously, this is not hard.

Let's take the first thing on the page. Part number 6ED10521CC080BA2.

Let's shove it into octopart: https://octopart.com/search?q=6ED10521CC080BA2&currency=USD&...

Let's see: distrelec, mouser, tme, etc.

You really seem to be making this out to be hard and it's super easy.

Siemens PLC stuff is really really easy to get.

I can't name a single PLC thing i could not get shipped to me overnight, from RS or mouser, without talking to anyone.

The only thing that requires actually talking to siemens is some of the CNC stuff, and there, it took me 1 day to set up an account and i just email them PO's, they auto-send me ship dates within an hour, and they invoice me later.

So even that is not like "this person tries to hard sell you on stuff". Heck, I sent them a PO today for 90 laser-inscribable keycaps for a machine control panel, not exactly a high value item. They are happy to do it.

Now, i happen to live near automationdirect, and their stuff is quite nice for simple things, but if you are integrating into the siemens ecosystem, it's just not that tricky to get stuff.


Or you can register as a customer if you work for a company that is deemed "worthy". I have full access to their prices and I can buy stuff directly from Siemens.

(Well, except for motor controllers that operate at higher frequencies. For that I need the approval of various government bodies as well as international organizations tasked with ensuring non-proliferation :-)).


Thanks, I hadn't seen any of those names before today, not being an experienced embedded builder. I used to browse Radio Shack, Fry's, and Micro Center for breadboards and stuff, but they all shut down over time, as did Halted Specialties (before I heard about them).


I've spent some time (not a lot) working with Siemens PLCs and RTUs. Their target customer typically has an account manager who will help them choose the right devices, the right modules and the software that you need. Their typical customer also has a significant budget for automation systems and they usually build systems that are mission critical. Like a production line.

Getting an account at Siemens requires a bit of work. They want to know who they are dealing with because a lot of their hardware is export restricted. Some of their hardware they can't even sell you without explicit government licenses. (For instance, motor controllers are tightly regulated when you get to the high RPM stuff since that can be used in gas centrifuges - ie to enrich uranium).

If you have an account with Siemens you can get prices. Also, it isn't exactly your run of the mill shopping experience. I may misremember some things since it is a couple of years since the last time I bought something from Siemens, but you typically create a "project" and then add components to it. It will then validate the stuff you have picked and point out what additional modules you need, what software you need, if this doesn't work with that etc.

You can kind if imagine a PC shopping experience where you buy parts to build a PC and it will automatically ensure that all the components will work together and help you figure out what choices you can make.

Once you think you have pieced together what you want, you typically talk to a solution engineer at Siemens and you go over it together. I bought various components for a small system, and still, I got excellent service. You get to talk to a person who can look over your order and make recommendations within a day or two. I was really impressed.

If you spend millions on automation gear (which one of my consulting customers do) this is the kind of relationship you want with a vendor. You want both the help from the website itself and a solution engineer who can help you make the right choices. And you want it in a timely manner.

Also note that I'm essentially an amateur in industrial automation. People who do this for a living often have many years of experience with this equipment. If, like me, you come from the outside, the website is rather daunting. Just picking the right PLC is going to take a couple of weeks of learning about them before you know what you are looking for. Then you need to figure out what software tools you will be needing to program, operate and maintain your installation.

That being said, their website could do with a makeover. It is unnecessarily hard to find things, the design and use of tiny fonts is ugly and annoying and it is slower than it needs to be. The software is also a bit clunky to use. But it helps understanding what audience it is aimed at. If you are trying to automate your hobbyist beer brewing setup, this isn't for you unless you are prepared to spend a pretty penny and invest time in learning how to program these things. It isn't that hard (it took me a couple of days to cobble together a PLC, a HMI a (third party) motor controller and make 40kg industrial motor do what I wanted), but it is completely overkill for a hobby project.

Yes, there is the LOGO line, but after playing with it a bit, I don't actually understand the point of it. It is too separate from their Simatic S7 line to work as a useful learning tool if you want to ease into the professional stuff, it is too limited to be much fun and it is too expensive. Of course, if you are controlling high power systems you do want equipment that is built to high quality standards.

Yes, the Arduino world has nothing in common with industrial automation hardware. For one, the amount of effort that has gone into delivering guarantees and meet certification criteria in automation hardware is miles beyond what you'll find in hobbyist MCU systems. (A good way to understand this is actually to look at the writeups of the Stuxnet attack. This gives you a good background in how Siemens industrial systems are engineered and what it takes to break them).

But I wouldn't shit on Arduino for doing this. Think of it as a somewhat cheaper entry level into teaching industrial automation and help people use it in hobbyist projects, prototyping on tight budgets or even doing small hobbyist setups. The professional stuff exists. There are lots of vendors. But it requires a lot of training and it costs a lot of money. There is a legitimate place for lower spec systems.

It can also play an important role in helping the industrial automation giants improve their products. It can, and will, generate ideas that, if the giants are smart, they can learn from. As in most of these professional/amateur interfaces between people, the professionals will scoff at this. But that doesn't matter. They're likely myopic and wrong.

I can remember back when Oracle wasn't ported to Linux and the database professionals scoffed at the idea of Oracle offering their database for Linux. (Yes, there was a time when that was the case). They were wrong. Not because they knew what they were talking about, but because they were snobs. And as it later turned out (after I spent a few years designing database schemas and optimizing databases) most of them weren't even particularly good at their jobs.

I think the same thing is going on here. Seasoned professionals with perhaps decades of experience with industrial automation, tend to not have the necessary perspective, which can lead to stagnation. I see this in, for instance, integration beyond traditional SCADA systems. Providers like Siemens have to adapt to new requirements of faster, cheaper, more open, more accessible integrations and a lot of the "old guard" simply have no frame of reference for understanding these things. For instance they have no idea how software engineers work, how fast processes need to be, and how much "self service" is expected. This is frightening and confusing and thus, from where we stand, it looks like silly snobbery.

I hope that my observations as an outsider getting tangled up in industrial automation and dipping my toe into that world might help people make sense of things.

Sure, the Arduino stuff is amateur hour, but it is still immensely valuable because it provides opportunities to advance the industrial automation, MCU and software worlds by exposing people to ideas, problems and solutions from outside their own bubble.


When I've bought Siemens gear in recent years the panel builder buys it for me, at prices I could never get, and deals with all the returns, late deliveries etc etc, they hold the Siemens account.

If you know what you are doing there are ways to make it easier and cheaper.


I second your opinion on Automation Direct PLC. I use a few of them in an installation for a museum 15 years ago and they had a surprisingly good reliability/feature/price ratio.


Cheap and reliable goods. Free software. Great prices. Decent Docs.

Best of all, no middle men distributors to dick around with. It is so easy to buy their stuff compared to almost all other controls hardware.


Maybe, Beckhoff are cheap, got a good programming environment and programming software is free, plus their simulator is so good you don't need hardware until commissioning. In Australia you can buy them at Blackwoods (Plumbing and general supplies with over 60 stores) who hold good stocking levels.

And there are others, Omron, Mitsubishi, Wago etc.

Allen Bradley is unreasonably expensive below a certain scale that isn't small and Siemens is not much better - you can easily blow 20k on just a single CPU module, and TIA Portal on a preconfigured laptop is 20k.

Rockwell (for AB programming) has changed to subscription model, but last time I had to buy Studio 5000 is was 10k for ladder and another 10k for the other languages.

Plus a PLC won't run of a battery for a month, or a year, but a microprocessor will, it is all about your use case.


> Automation direct PLCs are cheaper

Uh... no.


Click is competitively priced with the Opta and programming software is free.


I met with Arduino the other month. They're trying to get into the industrial market with a line of "pro" turnkey hardware, using their software ecosystem on top.

https://store-usa.arduino.cc/collections/pro-family


Prototypes.

Have 100% used arduino to PoC industrial electronics in a startup setting.


Why? Even siemens (pretty high priced) sells a $200 PLC you can use.

About the only people who seem impossible to get anything reasonably priced from are Allen Bradley, who even have usb->rs485 converters they sell for $1400.


And probably requires some crappy Windows only IDE to work with their proprietary language. It’s probably not possible use revision control or share the system with others. Try getting data out of their system into a software system reliably.


Maybe ask instead of asserting stuff?

In this case:

1. You can program them in vscode if you want, or using their IDE

2. Their IDE supports git just fine, and that's what i use

3. The languages, like just about all major PLC vendors, are PLCOpen (IEC61131-3) languages. They are well defined.

Vendors differ in what edition of PLCOpen they are up to, similar to how you'd see differences (in the past) in what version of C++ is supported by an IDE/compiler.

Since PLCOpen is not trying to actively add random crap (like C++ is), it's not really a huge treadmill

4. They all have OPC/other standard ways of data access.


Most PLCs now come with an embedded OPC server, or some option.


that's $200 that could have paid the internet bill that was cut off for being three months behind.


Uh? If you are in that state, i hope you are not buying any PLCs?


Serious question: Why not use a low cost PLC?


I'm not the GP but my guess is "if all I have is a hammer" - i.e. the same reasons you might prototype something with Arduino that you would make permanent with a timer relay. Why not prototype with a timer relay ffs? Well, because you don't have a timer relay, you do have an Arduino, and you want to make "progress" today.


Probably for folks who want to play around with PLC


Under $100 and software is free: https://www.automationdirect.com/adc/shopping/catalog/progra...

With Ethernet that supports both Modbus TCP and Ethernet/IP, two very standard industrial protocols*: https://www.automationdirect.com/adc/shopping/catalog/progra...

Note: I *HATE* EIP but we're stuck with it in the USA.*


The only reason why you want to use PLC is that the fact that the hardware is generally robust and has industrial IO interfaces offsets the totally horrible developer experience of IEC 61131-3.


What IDE? Honestly, CodeSys is not that bad, nor is TwinCAT.

TIA portal makes me want to kill myself sometimes, but Siemens AX is now just vscode with extensions!

I assume you don't think 61131-3 ladder/FBD/etc is horrible, only ST? If so, it's just pascal and not C/Algol.

Otherwise seems totally reasonable?


Doesn't sound like a great way to be spending one's days. Is there another type of PLC developer experience that is superior? I don't know much about PLC.


The PLC developer experience makes it possible for average technicians to do some things (like, things people typically use PLCs for) in days that would take average embedded C programmers weeks. It's worth taking a look at.


That might be case for small non-modular PLCs that replace what would otherwise be half a cabinet worth of relay rat's nest. That is a valid use for PLCs and the ladder diagram is also somewhat natural for that.

But in many cases you have large-ish systems that have various lookup tables in PLC memory, do non-cyclical communication (ie. communicate with something external over some “normal” protocol, not over fieldbus) or even just contain many instances of the same logic (there are PLC families that cannot do indirect accesses to the process image memory, so if you want the PLC to do 12 instances of the same trivial logic, there is no way to do that in a loop and you have to copy-paste that 12 times…). In my opinion for many of these situations just programming the thing in “real” programming language (even while preserving the cyclic process image model) would be very beneficial.


You don't understand industrial controls and the reason for scanned languages rather than event driven logic.

There is a certain amount of pain and inconvenience incurred for a highly deterministic outcome that is otherwise unachievable without very significant expertise.


> The PLC developer experience makes it possible for average technicians to do some things (like, things people typically use PLCs for) in days that would take average embedded C programmers weeks.

can you give examples where that is the case? It's hard for me to believe this. The embedded C ecosystem has all the best practices available (software and hardware abstractions, libraries and frameworks, unlimited open source availability, transparent tool chains, testing, build automation, continuous deployment, huge developer pool with shared)

Does PLC match ALL this and even go beyond?


At least with ladder logic, at the steel mill I worked at, even electricians with no programming experience could look at a ladder logic program and troubleshoot the problem, even remotely adjust controls and do overrides.


In terms of the skill level required for extremely deterministic outcomes, yes.

Plus PLC hardware has a level of inbuilt hardware diagnostics that would take months to code and prove from scratch.


That’s funny. The flip side is that the plc folks have an equally hard time understanding the cost, time, and expertise involved in custom embedded designs for volume production.


Yeah this. It’s about getting work done.

PLCs also replaced a hell of a lot of very unreliable wiring and electromechanical hardware.


Somewhere along the way I picked up that it wasn't very long ago that a whole lot of the jobs out there for mechanical engineers were designing cam-and-gear mechanisms for timing/sequencing in industrial automation.


Unfortunately, there really isn't. Phoenix Contact has their PLCNext which is alright. But regardless of the PLC you work with, the developer experience is pretty bad compared to what anyone here is going to be familiar with.


structured text is about the best thing you are going to get in the plc world. it's kinda bad and has a ton of quirks but it's alright.

ladder logic is painful but works pretty reliably and probably the easiest to learn.

depends on what you want to do and what you're familiar with. in all PLC is a different programming paradigm than you are used to.

the simplest and cheapest way to get into it is probably automation direct stuff or maybe the arduino pro stuff.


Almost all of them will import xml and you can build your own tools around this if you care so much.


Actually a big reason is that there is a ready pool of labour to come and modify it when you need, not just the guy who originally designed and coded it.


You can buy a shitty clone PLC off aliexpress if you want to do that.

They are similarly priced to the arduino and the hardware interface is several orders of magnitude more robust.


I think we need something in between PLCs and Arduinos, but anything like that is very rare.

Like, just put some 220 ohm resistors, PCB spark gaps, and ESD diodes on every pin, and you've covered a lot already.

I'm planning on ordering some PCBs for something similar in a few days, and I'm still confused about why this doesn't exist already.

So many simple cheap things could be done to make Arduino better. Like, connecting individual pins is fun very briefly as a beginner, after that I want nice clean professional r/cableporn.

Give us 3 pin servo plugs or STEMMA connectors for everything.

Put a diode on the USB-C line so I can power it externally without back feeding and breaking the spec.

Maybe figure out your inrush current so I can have some peace of mind that it won't break itself with inductive current spikes.

Maybe stop using crappy blue relays. 99% of DIY projects do not switch 120vac. Why can't we have protected MOSFETs that don't wear out?

Can we quit using a different pinout for ever everything? Just make your module copy something similar. Every little I2C display thingy has a different pinout for no reason, seemingly evenly distributed across all the possible combinations.

Give us a 5v IO pin for addressable LEDs. Why am I still using discreet 5mm LEDs with dead bug soldered on resistors for space-constrained stuff?

Hobby type MCU boards are too deep in the "Hacker" mindset, where the tech is the focus, as opposed to being part of something else.

Adafruit does great stuff, but so many boards are just... Meh.

Anything you build without getting a custom PCB almost always winds up as cable spaghetti even for trivial things, and it doesn't need to be like that.


I think its because the difference between "hacked together on top of an Arduino" and "hacked together on top of an Arduino with ESD protection and connectors" is basically nill. The market for that in-between species has got to be an order of magnitude smaller than either, because the problem becomes the one-size-fits-all approach.

I hate how many screw terminals appear in the average PLC wiring scheme, but there's really no other way to get things as customizable as the customer wants without servicing a million and a half SKUs. It sucks, but that's the business.


There's a lot that can be done if you don't need voltages above 5v or more than a few amps though, as long as you don't need the full flexibility of the MCU.

If you make all the IO pins accessible, you'll never protect them all fully or have any room for dedicated special purpose connectors, but if you choose the most common features and only support those you can do a lot.

For the board I'm doing I only have 3x servo plugs or STEMMA connectors, plus an LED strip output, switched 5v output, and Qwiic/Stemma QT plug, plus headers for the most common class D amp and RS485 modules.

That covers about half of all Arduino stuff I've ever done, and leaves a ton of room for onboard features even on a 35x70mm board.


Buy decent relays then, of which there is really only one option - Omron.

Standard relay is good for 50 million OPs, if you use them within manufacturers ratings.

Just one example, did you know that most relays have a minimum switching current, and if you don't meet it they will fail pretty quickly. I bet you never even considered that.


If I have enough control over the design that I can choose a relay brand, why wouldn't I just use an integrated protected switch IC?

Unless I know going to want to switch AC or something, or it's a special safety relay.

People who make cheap off the shelf gadgets don't use Omron.

That's actually really interesting to know about the minimum switching current though!


Have you looked at Ruggeduino? They’ve done the ESD protection thing.


They are really cool, but they're still stuck on Atmega and the Uno form factor


Well yeah, it’s an Arduino.


It's all about the education market - whether in schools or for maintenance techs and electricians to educate themselves and get promotions to controls engineering positions.

No one in their right mind is using this as a product around which to build a machine or a business.


Yeah this.

It actually scares the shit out of me when I see stuff like this because I know someone naive will use one somewhere completely inappropriate and something bad will happen.

(Ex EE for ref)


You mean someone working outside of their recognised competencies in a dangerous field.

Don't do stuff you don't understand. I'm certified in Ex design and Functional Safety and see amateur hour most days.


Ah, I thought it was something new, perhaps offering a IDE built on modern tech. It looks like it's built on old Win32 common controls, surely with poor text editing features.

I wonder who's going to be the first to integrate something like VSCode in their dev environment.

The dev tools in the industrial automation industry are so depressing, luckily we have the excellent Ignition (from Inductive Automation) for HMI/SCADA development.


SIMATIC AX seems to be a step in the direction of VSCode integration.


Oh this is interesting. Tia Portal v19 has this clunky capability in which you can export, edit, reimport all scripts of a project via a vscode extension that communicates with the Tia Portal process. All that effort just to have better autocompletion, but the export/import loop feels inefficient & some scripts just can’t be exported.


Just about all PLCs have had export import for decades, more recently via xml.


I gave this a shot a while back and it's as clunky as it looks in the screenshots, so about the same as the established industry.


A number of places have VSCode extenstions for their dev environment, eg ExpressIF for Esp32.


Modern tech like electron? Qt might have been nice but win32 is snappy and dependable.


It kinda seems like we've taken the best part of arduino (programming environment) and replaced it with the worst part of PLCs (IEC 61131). In turn we have traded the reliability of PLC hardware and compatibility with industrial sensors with hardware that has none of that.

We have actually been getting away from proprietary PLC's just so we can get away from IEC 61131. Its taken a few years but we are about there.


Damn. I was expecting ladder for everyone. I am nostalgic for ladder, which I learned alongside basic in the late 80s, and haven't used since. I'd run PC-LDR on a PC emulator (transformer) on the Amiga 500.

But it's walled behind a license fee. So no ladder for everyone, but rather, ladder for people who are already using ladder and aren't gonna drop their PLCs to adopt Arduino.

Sad.


Autonomy may have some software you'd want to check out https://autonomylogic.com/


This is awesome.

And further reinforces the "what the hell is Arduino doing" feeling.


Haha omg why!!

My dad had an industrial machine and he coherced the maker to give him the sources and it was done with this versapro thing.

Graphical environment + a gazillion of memory bugs because there were no variables, just memory addresses, and you were supposed to remember how many numbers to skip, depending on the size of the variable.


How prevalent is ladder logic for new industrial systems?

Over two decades ago I was programming a Foxboro PLC in their SALL language, which was compiled down to C. Variables and control structures! And you could hack the C if you wanted your state transitions to go faster.


For Boolean logic ladder is still a good visual representation that can be animated to make it obvious which inputs are determining the output.

In Allen Bradley rslogix it can be entered quickly using the keyboard.

In my opinion the ladder paradigm is poor when dealing with numeric values, and function block better serves the purpose there


I work for a subsidiary of a large industrial equipment manufacturing company, ladder logic is ubiquitous. At least across our partners and the plants we operate within. It's usually written by former electricians called "controls engineers", not software engineers, because it mimics relay diagrams. Controls engineers tend to live completely within the software ecosystem. I've known few who were comfortable with even "structured text" routines. One of the major advantages my company has is that they hire software engineers to produce custom featured HMIs for customers, and train on ladder logic.


In my opinion Ladder logic is easiest to troubleshoot, as cause and effect can be easily followed, especially when being connected online and seeing the signaling. Unless events are too quick. Then no language has the advantage. Then data trace is helpful.

Structured Text is superior when it comes to calculations, bit manipulation and code flow (loops, conditionals etc). Sequences diagrams are advantageous for abstracting sequences. Function Block Diagrams are good for connecting abstractions. They all have their place imo, except Instruction List, which I can’t think of having a single advantage.


It's sadly bread and butter, if you order a typical PLC program made-to-measure you'll get ladders. Anyway custom languages are certainly not the way to go, IEC 61131-3 languages are virtually always used, LD being most popular and SFC also gets its share.


Ladder logic? Ugh, come on!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: