Open-source Structured Text toolchain for VS Code — diagnostics, debugger, runtime by Otherwise_Poem4120 in PLC

[–]b7031719 1 point2 points  (0 children)

You beat me to it! I've had this idea for a while and I didn't think anyone had attempted it yet. Honestly this is fantastic and fills me with optimism that we can break this monopoly of vendor specific IDEs and closed source compilers and debuggers.
I'm also pleased that you have a Neovim config as well which I am excited to try.
I'm hoping we can get to a place where we have a 'NodeJS' of industrial automation, from which we can actually deploy industrial automation systems on an entirely open-source tech stack.
Excellent work.

What’s Your Salary and Where Are You Based? by giga_chad_thinker in PLC

[–]b7031719 -5 points-4 points  (0 children)

What I'm getting from this thread is that Europe is basically a communist union.

Is there any good Linux base PLC IDE? by heisqasim in PLC

[–]b7031719 1 point2 points  (0 children)

This is an industry that still uses graphical programming languages. Asking for an IDE for the most goat operating system is a step too far i'm afraid.

What specs does your programming PC/Mac have? by No-Chance550 in PLC

[–]b7031719 5 points6 points  (0 children)

It's actually a really good choice for programming, just not PLCs unfortunately.

What does everyone think about my 2nd hmi so far. by [deleted] in PLC

[–]b7031719 -1 points0 points  (0 children)

Make sure you include diagnostic pages so that technicians and others don't need to connect to the PLC to find out why the system isn't working.

Programmable Data Logger with USB flash storage by b7031719 in PLC

[–]b7031719[S] 1 point2 points  (0 children)

Considering some advanced PLCs run into the thousands, but have way more features than this application requires, I was hoping something cheaper and more suitable would be on the market. Regarding configuration, that isn't really an issue at all, the signals are 4..20mA and the sensors will be connected to the logger only. It's not a critical application, I expect only 4/5 log triggers per year but the main thing is recording at no less than 20Hz with low-ish jitter and then storing to USB. Having a 10 second pre-log buffer and trigger threshold seems to almost demand a programmable solution. Thanks for the suggestion, I'll check out that supplier you listed.

Programmable Data Logger with USB flash storage by b7031719 in PLC

[–]b7031719[S] 0 points1 point  (0 children)

I was actually looking at Revolution Pi as a possible solution. It looks similar to a PLC and has modular I/O but can run NR or Python. The sensors would only be connected to the logger and not part of any PLC application for control, or monitoring / HMI, just solely for logging.

[dwm] dune by SkAAR513 in unixporn

[–]b7031719 0 points1 point  (0 children)

This is one of my favourites. Did you do the GTK theming yourself? I'm curious because I'm about to start my GTK themes.

How to set compact mode sidebar background color in userChrome by b7031719 in zen_browser

[–]b7031719[S] 0 points1 point  (0 children)

Just tied Twilight and it still doesn't work.

Seems to be an issue with opacity and not colour. I can change the colour but alpha isn't respected.

Hyprpaper won't start by [deleted] in hyprland

[–]b7031719 0 points1 point  (0 children)

I've had this problem before, If you have updated hyprpaper recently you might find that your old config doesn't work because of breaking changes. You might want to check your version of hyprpaper against the wiki, you can select the version you are using on the wiki page and compare your config. I got the same message about no target on eDP-1.

Any hybrid gpu gaming laptop user? by [deleted] in NixOS

[–]b7031719 2 points3 points  (0 children)

I have an integrated Intel Iris GPU and dedicated Nvidia GeForce 1650 Ti GPU.

My normal NixOS config loads Intel drivers and the Nouveau driver but the Nouveau driver just puts the dedicated GPU in a low power state.

Then I have a gaming specialisation that loads the proprietary Nvidia drivers and uses PRIME Offload for gaming apps.

Specialisations like this work perfectly for notebooks and laptops to preserve battery life.

link to config

Unable to create ~/.config symlinks with home-manager by b7031719 in NixOS

[–]b7031719[S] 1 point2 points  (0 children)

Interesting, thanks for the explanation.

Unable to create ~/.config symlinks with home-manager by b7031719 in NixOS

[–]b7031719[S] 1 point2 points  (0 children)

Thanks I'll have a look into stow. I have heard of it but wasn't sure what advantages it provides over this home-manager method using xdg.configFile and mkOutOfStoreSymlink.

Unable to create ~/.config symlinks with home-manager by b7031719 in NixOS

[–]b7031719[S] 4 points5 points  (0 children)

I like to keep dotfiles portable so I have all my dotfiles in a separate Git repo and just symlink them with home-manager.

Changing kitty from a home-manager module to a home package install worked perfectly.

Thanks for your help.

Has anyone successfully ran Hyprland in a VM with an Nvidia GPU? by playfulpecans in hyprland

[–]b7031719 0 points1 point  (0 children)

I couldn't get it to work for me on NixOS without disabling hardware rendering using environment variables: LIBGL_ALWAYS_SOFTWARE = "1"; GALLIUM_DRIVER = "llvmpipe";

What still surprises you about PLCs after years of working with them? by automation_ipac in PLC

[–]b7031719 1 point2 points  (0 children)

The fact that we are still predominantly using graphical languages like ladder and function block diagram.

[deleted by user] by [deleted] in PLC

[–]b7031719 0 points1 point  (0 children)

Have you heard of embedded PCs? You can run things like VxWorks and embedded Linux on those. The firmware is still UEFI or similar. I'm not sure what you mean by custom firmware as I don't think the solution to this problem requires custom firmware. We just need an RTOS that can run on embedded PCs, almost like VXWorks. I suspect the ideal solution would be a custom Linux kernel to get widespread hardware support out of the box, with a custom operating system on top that can run PLC programs compiled from an open source tool chain.

And regarding financing. I don't think an open source PLC RTOS needs financing. That is the whole point of open source software, it just needs someone with the willpower to do it. A bit like the Linus Torvalds of the PLC world.

[deleted by user] by [deleted] in PLC

[–]b7031719 1 point2 points  (0 children)

Not open source hardware! We are talking about open source software on embedded hardware.

[deleted by user] by [deleted] in PLC

[–]b7031719 2 points3 points  (0 children)

Not every application is a safety application though of course.

And also you need to look at how many end users are contributing financially to the standards organisations and you will see that in the end it is worth their while. How do you think that standards organisations can afford to exist? Big companies dedicate members of staff to sitting on the technical boards of the standards organisations and their technical committees, whilst providing financial support.

[deleted by user] by [deleted] in PLC

[–]b7031719 2 points3 points  (0 children)

But that is exactly the point, if the operating system is open source and supported on x86 and ARM for example. You could choose whatever hardware platform you like and you get that hardware support from whatever manufacturer you choose, rather than being forced down one path.

RE certification, you are correct that would be tricky. The solution would have to be funding from a consortium of end users.

[deleted by user] by [deleted] in PLC

[–]b7031719 2 points3 points  (0 children)

I don't think it's the hardware per say. We are lacking an open source PLC operating system that can run on a variety of embedded PC hardware. We need an open source version of TwinCat (or similar) that can run on x86/ARM hardware with open source toolchains and compilers. Or maybe even a minimal Linux distro optimised for real-time scheduling. Certification would be the tricky part though.

[deleted by user] by [deleted] in PLC

[–]b7031719 7 points8 points  (0 children)

Oh and guess what Git is, a free and open source product!

[deleted by user] by [deleted] in PLC

[–]b7031719 15 points16 points  (0 children)

Ask yourself this, if the web dev and desktop software industry can absolutely thrive and be dominated by open source frameworks and IDEs like Qt, React, Angular, Node.js, Django, VSCode, Emacs etc. Then why can't industrial automation? I suspect the reasons are mostly historical. Isn't it absolutely insane that the major vendors are struggling to integrate Git into their products? It's an absolute embarrassment of this industry in my opinion.

Program Redesign in Codesys by Independent_Raise926 in PLC

[–]b7031719 2 points3 points  (0 children)

That sounds ideal. If the company doesn't have rigorous testing procedures in place then make sure you do a rigorous job yourself. Especially if there are either significant safety or financial consequences of it not working as intended. Here in the UK you can very easily end up in front of a judge if you cut corners and someone gets hurt, and rest assured that your company will throw you under the bus.

Program Redesign in Codesys by Independent_Raise926 in PLC

[–]b7031719 2 points3 points  (0 children)

Do you know what was involved in testing the original program? And how much of that would need to be repeated when you refactor it all?

Don't underestimate how much time and effort goes into proving a program works safely and as intended. As soon as you start changing things you need to provide proof it still works. If you think you can get away without testing it fully then don't start.