Skip to content
Radio Logo
PodcastsEducationHacker Public Radio

Hacker Public Radio

Hacker Public Radio
Latest episode

10 episodes

  • Hacker Public Radio

    HPR4782: Doctor Who Episodes Found

    2026/12/01
    This show has been flagged as Clean by the host.

    Recently two missing episodes of Doctor Who were found and returned to the BBC. How did this happen? What are the implications? And will there be more?







    Links:







    https://en.wikipedia.org/wiki/The_Daleks%27_Master_Plan






    https://filmisfabulous.org.uk/








    Provide feedback on this episode.
  • Hacker Public Radio

    HPR4781: Open Source, Games and Driving

    2026/11/30
    This show has been flagged as Explicit by the host.


    A conversation between Elsbeth and Lee ranging across open source software and culture, offline/self-hosted tech, gaming (Second Life, Moonlight Peaks, Animal Crossing), and the joys of driving in the UK vs. the US.





    Note: audio was cleaned up to remove fan noise; voices (especially Lee's) sound a little metallic as a result.






    Open Source & Big Tech








    GitHub

    —

    https://github.com/

    — Microsoft-owned platform for sharing and collaborating on code, built on Git.





    Git

    —

    https://git-scm.com/

    — version control system created by Linus Torvalds.





    Linus Torvalds

    —

    https://en.wikipedia.org/wiki/Linus_Torvalds

    — creator of Git and the Linux kernel.





    Linux kernel

    —

    https://www.kernel.org/






    GNU Project

    —

    https://www.gnu.org/

    — the "GNU" in "GNU/Linux"; pronounced "guh-NEW" (perhaps?).





    Linux distributions mentioned

    :

    Ubuntu

    (

    https://ubuntu.com/

    ) and

    Red Hat

    (

    https://www.redhat.com/

    ).







    Offline / Self-Hosted Archives








    Kiwix

    —

    https://www.kiwix.org/

    — lets you download and browse a full offline copy of Wikipedia (and other wikis) without an internet connection.





    Internet Archive

    —

    https://archive.org/

    — mentioned in the context of having a local/offline copy accessible without relying on live internet access.





    Jackery

    Portable battery power packs and solar panels for off-grid power —

    https://www.jackery.com/

    .







    Internet Culture & Communities








    4chan

    —

    https://www.4chan.org/

    — referenced as an early internet meme/bulletin-board-style community.





    Reddit

    —

    https://www.reddit.com/

    — discussed as a more mainstream descendant of early bulletin board culture, and its perceived decline (partly attributed to AI-generated content) over the last couple of years.





    Wikipedia

    /

    Wikimedia Foundation

    —

    https://www.wikipedia.org/

    /

    https://wikimediafoundation.org/

    — run as a non-profit, funded primarily through donations rather than advertising; discussed as a model other open projects might learn from.







    Open Source / Free Tools Mentioned








    LibreOffice

    —

    https://www.libreoffice.org/

    — free office suite, used in particular for its Calc spreadsheet app.





    OpenOffice

    —

    https://www.openoffice.org/






    GIMP

    (GNU Image Manipulation Program) —

    https://www.gimp.org/






    Blender

    —

    https://www.blender.org/

    — open-source 3D creation suite.





    OpenDyslexic

    —

    https://opendyslexic.org/

    — free/open font designed to improve readability for dyslexic readers, raised in the discussion about UX/accessibility in open-source software.





    ChromeOS Flex

    —

    https://chromeos.google/chromeos-flex/

    — lets you install a Chrome OS-based system on existing PC/Mac hardware; mentioned as a way to revive an old iMac for a family member.





    Raspberry Pi

    —

    https://www.raspberrypi.com/

    — used to repurpose old hardware (monitor/keyboard) into something still useful (web browsing, LibreOffice).







    Second Life & Virtual Worlds








    Second Life

    —

    https://secondlife.com/

    — the virtual world platform referenced as "SL"





    Cool VL Viewer

    —

    https://sldev.free.fr/

    — Lee's third-party Second Life viewer; one of the oldest maintained third-party viewers (TPVs), focused on performance and stability.





    Firestorm Viewer

    —

    https://www.firestormviewer.org/

    — Elsbeth's third-party Second Life viewer, based on Linden Lab's open-source V3 code with extensive customisation options.







    Games








    Moonlight Peaks

    — a life-sim/adventure game with a supernatural (vampires, werewolves, mermaids, witches) theme, played on Nintendo Switch; compared to

    Animal Crossing: New Horizons

    but without multiplayer. Also "Red Light, Green Light" mini-game (à la

    Squid Game

    ).





    Animal Crossing: New Horizons

    —

    https://www.nintendo.com/store/products/animal-crossing-new-horizons-switch/

    — referenced for comparison, including its real-time-clock-based seasons/"time travelling" mechanic.





    EarthBound

    —

    https://en.wikipedia.org/wiki/EarthBound

    — referenced as an early favourite game with a similar "wandering the world" structure.





    Final Fantasy 14

    —

    https://finalfantasyxiv.com/

    referenced in passing when discussing exploration mechanics (climbing/swimming to normally inaccessible areas).





    Choose Your Own Adventure

    book series —

    https://en.wikipedia.org/wiki/Choose_Your_Own_Adventure

    — referenced in discussing branching-narrative games; Steve Jackson and Ian Livingstone books used a dice/stat-sheet combat system similar to tabletop RPGs.





    Dungeons & Dragons alignment system

    (the 3×3 "lawful/neutral/chaotic" × "good/neutral/evil" grid, including "True Neutral") —

    https://en.wikipedia.org/wiki/Alignment_(Dungeons_%26_Dragons)

    — discussed as an analogy for balancing open-source idealism against pragmatism/self-interest.







    Driving in the UK vs. the US







    General discussion of adjusting to UK suburban/residential street driving after driving in the US: narrower roads not laid out on a grid, driving on the left, judging car width relative to parked cars, and the prevalence of manual transmission ("stick shift") cars in the UK vs. automatics being the norm in the US.




    Mention of folding in wing mirrors on parked cars — a common UK practice to avoid them being knocked off by passing traffic on narrow streets.





    Toyota Prius

    —

    https://www.toyota.com/prius/

    — the car being driven, praised for its reversing camera when parallel parking.







    Provide feedback on this episode.
  • Hacker Public Radio

    HPR4780: Robert A. Heinlein: Other Short Works

    2026/11/27
    This show has been flagged as Clean by the host.

    While Heinlein's fame to the general public is built on his novels, he had a number of shorter works that are are quite worthy of mention. These are all separate from the sotries found in the Future History, but are really good on their own terms.

    Heinlein’s Other Short Works

    Outside of the Future History lies a large number of shorter works by Heinlein, which are nearly all from the 1940s and 1950s, before he made his primary focus the writing of novels. I will only cover a few of them that I consider to be particularly good, so you can consider these as recommendations.

    Magic, Inc. (1940) – This novella is a charming fantasy about a world where magic is simply normal and taken for granted. But there is company called Magic, Inc. that is trying to corner the market with a protection racket, and they are doing very well. It turns out the being behind this is actually a demon from the underworld. A couple of businessmen who are trying to hold out against this protection racket find a white witch to help them, and they travel to the underworld to find and confront the demon responsible, and the witch proves to be more powerful than the demon. You will most likely find this in book form combined with Waldo. This novella was nominated for a retro Hugo.

    They (1941) – This short fantasy story combines paranoia with solipsism. It is about a man confined to mental hospital because he is delusional. But you may have heard the saying that you aren’t paranoid if they are really out to get you. This is similar in some respect to The Truman Show.

    And He Built A Crooked House (1941) – What happens when you combine architecture with extra-dimensional topology? Well, maybe it is what happens in this story. An architect has an idea to create a house modeled on an unfolded tesseract, a four dimensional cube. If two dimensions gives you a square, and three dimensions gives you a cube, then four dimensions give you a tesseract. And they do build it, but they built it in California, so of course an earthquake comes along, and causes the house to collapse into the fourth dimension, with interesting results.

    By His Bootstraps (1941) – This is one of two Heinlein stories to explore the paradoxes of time travel. A fellow named Bob is writing a dissertation in the field of metaphysics to explain how time travel is simply impossible, when he is interrupted by a time traveler who tells him not to bother, it is all rubbish anyway. If you understand the bootstrap paradox you already know where this is going: the time traveler, and other people Bob interact with, are all Bob. But it is very well done.

    The Unpleasant Profession of Jonathan Hoag (1942) – This novella is a fantasy as well as a horror story. A husband and wife team of detectives is consulted by a man named Jonathan Hoag who says he has no idea what he does during the day. He has found a reddish-brown substance under his nails which could be blood, but he doesn’t know. They try following him, but experience some problems. In one case he turns on them nastily, in another they trace him to the thirteenth floor of a building that doesn’t have a thirteenth floor. Then other beings called The Sons of the Bird get involved. In the end it turns out that Jonathan Hoag’s profession is art critic, and the art he is judging is Earth. It was created by a promising student, but is it worthy of keeping? This novella was nominated for a retro Hugo.

    Waldo (1942) – This novella concerns a man called Waldo Farthingwaite-Jones, who was born with myasthenia gravis and as a result is congenital weakling who could not even hold his head up to drink or hold a spoon to feed himself. But it seems to have focused his intellect while also giving him a repellent personality. He is arrogant and considers himself superior. But in part due to his condition he invents what come to be known as “waldos”, devices which can multiply his strength, or conversely give him minute control. He put his hands into a device, and whatever action he does is duplicated on a larger or smaller scale in another device. These devices exist now, and are called waldos as result of this story, even by NASA. So this is the second time Heinlein gave a new word to the English language (the other being “grok”).

    He is brilliant, and as a result is consulted when major technical problem with power receptors that are failing. And at this point what had been a straightforward science fiction story becomes a fantasy. The solution lies in another adjacent dimension. Apparently you can pull power from this dimension all you want, and not just for the power receptors that power automobiles, but also for people. Waldo eventually heals himself this way and becomes a famous ballet dancer. This novella is usually found in book form paired with Magic, Inc. This novella won a retro Hugo.

    Goldfish Bowl (1942) – Two massive pillars of water mysteriously appear in the Pacific Ocean. Is this a natural phenomenon or the work of aliens? It looks like one sucks water up into a cloud which no one can enter, and the other seems to return the water. Scientists investigate, and it turns out to be aliens. The Earth is essentially their goldfish bowl.

    Jerry Was A Man (1947) – This is a very interesting story about a genetically modified chimpanzee that has had his intelligence increased so that he can be put to work in agriculture, and he has to go to court to claim rights. His lawyer presents evidence that he shares the essential traits of humans and wins the case.

    Gulf (1949) – This starts off as a James Bond type of story about an agent who we don’t know anything about. It is a good example of being dropped into the middle of a story, since he is being tracked by other forces we know nothing about. They eventually capture him, and he is confined with “Kettle Belly” Baldwin. This is the same Baldwin we see later on in the novel Friday, and he runs an organization of people who are of superior intelligence and devoted to protecting humanity. This is of course the same organization that Friday was a part of before Baldwin’s death put an end to it. The agent he rescued ends up joining the organization, there he receives advanced training. Here Heinlein brings in two of his enthusiasms. The first is the General Semantics of Alfred Korzybski, concerning which we may say more when we get to A.E. van Vogt. The other is the work of Samuel Renshaw, which also featured in Citizen of the Galaxy. The point of these two ideas is that people can be trained to think more rapidly and accurately. And the title in part refers to the gulf between people who have been so trained and ordinary untrained people.

    The Year Of The Jackpot (1952) – A statistician who works for insurance companies has a hobby of tracking cycles, and has noted that when a certain number of cycles peak together it can mean serious consequences for society. As an example, he saw that three of the cycles he tracks all peaked in 1929 when the stock market crashed. And now he is seeing a bunch of cycles lining up. And he notes odd behavior in society, like people suddenly taking off all of their clothes in public places for no reason. What can it all mean?

    The Man Who Traveled In Elephants (1957) – This is in my mind a very charming example of magic realism, which of course places it in the fantasy category. A salesman and his wife traveled the country looking for locations to sell elephants, accompanied by imaginary elephants. Now he is a widower, and still traveling. The attraction here is not the plot, but the atmosphere. This was one of Heinlein’s favorites of the stories he wrote.

    “—All You Zombies—” (1959) – This is Heinlein’s other classic time travel story. A man who was intersex goes back in time, and impregnates his younger female self, and she duly delivers a baby before getting sex assignment surgery to become the man who impregnated her. But the baby she delivers also turns out to be the same person, so in effect we have a person who is his/her own mother and father. This is the kind of thing that could conceivably happen if time travel is possible, which is why most physicists think it has to be impossible.

    There are other Heinlein short works that a completist would want to look up, but I don’t consider them to be particularly significant And with that I am wrapping up the discussion of Heinlein, the last, but not least, of the Big Three of the Golden Age. He was given the unofficial title of the Dean of Science Fiction, which certainly testifies to the esteem he was held in by the science fiction community. But next I want to look at the origin of Space Opera, in the person of E. E. “Doc” Smith.

    Links

    https://en.wikipedia.org/wiki/Magic,_Inc.

    https://en.wikipedia.org/wiki/They_(Heinlein)

    https://en.wikipedia.org/wiki/And_He_Built_a_Crooked_House

    https://en.wikipedia.org/wiki/By_His_Bootstraps

    https://en.wikipedia.org/wiki/The_Unpleasant_Profession_of_Jonathan_Hoag

    https://en.wikipedia.org/wiki/Waldo_(short_story)

    https://en.wikipedia.org/wiki/Myasthenia_gravis

    https://en.wikipedia.org/wiki/Goldfish_Bowl

    https://en.wikipedia.org/wiki/Jerry_Was_a_Man

    https://en.wikipedia.org/wiki/Gulf_(novella)

    https://en.wikipedia.org/wiki/General_Semantics

    https://en.wikipedia.org/wiki/Alfred_Korzybski

    https://en.wikipedia.org/wiki/Samuel_Renshaw

    https://en.wikipedia.org/wiki/The_Year_of_the_Jackpot

    https://en.wikipedia.org/wiki/The_Man_Who_Traveled_in_Elephants

    https://en.wikipedia.org/wiki/%27%E2%80%94All_You_Zombies%E2%80%94%27

    https://www.palain.com/science-fiction/the-golden-age/robert-a-heinlein/heinleins-other-short-works/

    Provide feedback on this episode.
  • Hacker Public Radio

    HPR4779: Clarification on the use of neural networks on HPR

    2026/11/26
    This show has been flagged as Clean by the host.

    Clarification on the use of neural networks on HPR



    A contributor asked me to provide a show on my post "
    Clarification on the use of neural networks on HPR
    "



    Which was prompted by the feedback to the post
    Community News Clone Voices




    Use of some ones voice should be considered a copyrighted work.



    The recent discussion was clear that while many people had no problem with the use of their voice to generate a clone, many did.
    https://lists.hackerpublicradio.com/pipermail/hpr/2026-October/005059.html




    One aspect brought up is the legality of this. As an example Denmark has now amended its copyright legislation to protect people's face and voice etc.



    Therefore I would like to suggest that we should not accept shows where the voice has been cloned without permission for that specific work. That would still allow someone's own voice to be used, and also allow those that have given explicit permission for the show.



    We would treat it in the same way as copyright music. We have had to reject shows playing out of of copyright music, because the orchestra that gave the performance also held copyright. So it's discouraged but allowed if the permission is in order.



    Speech to Text



    We have been using whisper for some time to convert audio to text.



    Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multitasking model that can perform multilingual speech recognition, speech translation, and language identification.




    MIT license

    https://github.com/openai/whisper




    While whisper is released under a MIT license, the training data has not been released.
    https://github.com/openai/whisper/discussions/430

    https://en.wikipedia.org/wiki/Whisper_%28speech_recognition_system%29#Training_data




    Despite this HPR uses the model as it allows us to make our content accessible. for example to people for whom English is not their native language, or who are hearing impaired.



    Any host can choose to not use it by submitting subtitles along with their show. Just call it the same eg
    foo
    .
    flac
    ,
    foo
    .
    srt




    If there are other engines that are more open then please tell us about them and we will evaluate moving.



    Text to Speech



    We also use Text to Speech, among other things, for the introductions which contains all the necessary information on an episode.



    We did use espeak for this, and for reading out scripts from people who for one reason or another could not or would not speak their show. While there are many who love espeak (myself and Mike ;-), we have a had a lot of complaints about the harshness of the voices. So much so that it sent children running away crying from the computer. Therefore we have been using piper to read the voices in a natural way.



    Here all the tools and all the training data is Open Source.



    The eSpeak NG is a compact open source software text-to-speech synthesizer for Linux, Windows, Android and other operating systems. eSpeak NG converts written text into phonemes (speech sounds).




    Licenses GPL-3.0, Apache-2.0, BSD-2-Clause

    https://github.com/espeak-ng/espeak-ng




    Piper's neural network converts is trained from recorded human speech, and converts the phonemes into audio waveforms.




    GPL-3.0 license

    https://github.com/OHF-Voice/piper1-gpl




    LJSpeech (high) US English female voice. Single speaker. Trained from scratch for 2000 epochs on high quality settings using the LJ Speech dataset.




    License: public domain

    https://brycebeattie.com/files/tts/




    LJ Speech dataset: This is a public domain speech dataset consisting of 13,100 short audio clips of a single speaker reading passages from 7 non-fiction books. A transcription is provided for each clip. Clips vary in length from 1 to 10 seconds and have a total length of approximately 24 hours. The texts were published between 1884 and 1964, and are in the public domain. The audio was recorded in 2016-17 by the LibriVox project and is also in the public domain.




    License: public domain






    https://keithito.com/LJ-Speech-Dataset/




    We also have a pool of volunteers that will narrate your show on your behalf.



    The site
    Bryce's Piper TTS Voices
    was the source of this information



    My goal is to create several voice models for use with the Piper text-to-speech software. I want there to be more voices available without restrictive licenses. Many of the widely available datasets and thus the voices created from them have "for research and learning purposes only"-style licenses.


    Requested topics.



    What is it about that people do not like when it comes to cloning their voices ? This has not been reflected in the feedback nor in the shows.



    Given the strong opinion on the topic, I'm surprised that more people haven't submitted shows.



    I for one would very much like to know where this is coming from.



    So can I ask people to submit topics



    Environment



    Energy consumption of AI models and data centers. How does AI compare with conventional search engines? Think water consumption, cooling, environmental impact, electricity and infrastructure.



    Finance



    Explanation of the Circular financing and investment between AI companies. Are current AI investments financially sustainable ? There seem to be comparisons with the dot-com bubble and subprime mortgage crisis.



    Copyright



    Ethically, is AI training fundamentally different from search engine indexing? What is the current state AI training using publicly available material. How is this in relation to Copyright and Creative Commons licensing. What is the current state of AI law with regard to court cases etc.



    How we failed to provide a viable FLOSS search solution.



    Privacy, security and social engineering



    Now that AI-generated voice cloning and impersonation is so easy, what are the laws regarding consent and ownership of personal voices.



    What attack vectors do we need to be aware of with AI-assisted phishing and fraud. How we can show the weaknesses in voice-based authentication, so that we can protect our families and communities from impersonation.



    FLOSS community and Ethical AI



    Can there even be a such a thing as open-source AI. What are the comparisons of open models versus proprietary AI services. How can we counter vendor lock-in and dependence on large technology companies.



    What can we use



    Are there locally hosted, smaller models available and what can the do ? Can we have them generating summaries for shows without show notes ?

    Provide feedback on this episode.
  • Hacker Public Radio

    HPR4778: Programmable Logic Controls - Episode 8

    2026/11/25
    This show has been flagged as Clean by the host.

    01 Introduction



    This is the last episode in an 8 part series.







    02



    In the previous episode we looked at



    * Personal computers in industry,



    * SCADA systems,



    * HMI systems,



    * Test and measurement systems







    03



    In this episode we will look at the following.



    * The IEC-61131 standard,



    * Soft logic systems,



    * A free and open source soft logic system and its shortcomings.



    * What a hypothetical free and open source soft logic system suited to industrial use may look like.







    --------------------







    04 IEC-61131







    In 1993 the International Electrotechnical Commission published a set of standards under the name IEC-1131.



    This was later renamed IEC-61131 due to a change in the standards naming process.







    05



    This standard covers many aspects of PLC hardware and programming languages.



    However, it has had very little impact in practice.



    This is for several reasons.



    One is that to get vendor acceptance the standard was treated as a participation trophy.



    Vendors need only make token efforts to comply with the standard, provided they issue a compliance document that states what, if anything, they comply with.







    06



    Let me give you a few quotes from one vendor's compliance document.







    Quote



    The instruction set specified by IEC61131-3 is entirely optional.



    End of quote







    07



    Here is another example.



    Quote



    In IEC61131-3, the programmable controller OS can contain zero or more tasks, that can execute one or more programs each containing one or more functions or routines. According to IEC61131-3, the number of each of these components is implementation dependent.



    End of quote







    08



    As you can see, compliance requirements are not exactly very rigorous.







    The result is that the major vendors have standards washed their existing proprietary product lines, and only a small number of minor vendors have made more than a token effort.







    09



    In my opinion, what IEC-61131 has proven is that attempts at written standards for PLCs are a waste of time.



    What I believe the industry needs is a Free Software soft logic system that runs on a Free Software operating system that runs on a wide range of hardware.



    I will go into what I think is needed in more detail later.







    However, I believe the existing state of affairs is due to the following factors.







    10 Market structure



    The first is market structure.



    The major vendors offer a complete and comprehensive product line of which PLCs are only a part.



    Distribution channels are tightly controlled to prevent competition.



    Training is organized around learning vendor products, not on general principles.







    11 Unsophisticated customers



    The next is unsophisticated customers.



    PLCs are ready to use right out of the box.



    You do not need much in the way of general computer skills to learn how to program and use one.



    Most users are not ready to push very far outside of their comfort zone.







    12 Lack of suitable hardware until very recently



    Still another reason is lack of suitable hardware until very recently.



    Early attempts were made to use personal computer hardware, but large size, lack of ruggedness, and problems connecting IO made this impractical in most applications.



    Furthermore, early efforts were in most cases based on using a Microsoft operating system, and customers viewed these as too unreliable.



    There were single board computers, but there was no standardization, making sourcing replacements over the long term problematic.







    13



    The end result was that vendors enjoyed a degree of vendor lock in very similar to mainframe computer companies in the 1960s.







    14



    However, this standard was to have an influence on players from outside of the traditional big PLC vendors.







    --------------------







    15 Soft Logic Systems







    At some point in this series you may have asked yourself a question along the lines of "would it not be possible to emulate a PLC in software running on a desktop PC?"



    If so, then you are correct, it is possible to emulate PLCs on a PC, and it is something that is done.



    This sort of thing is called a "Soft Logic System".



    A number of vendors have come out with them.







    16



    However, they haven't been big sellers.



    One reason is that the software alone tended to be more expensive than a conventional PLC that could do the same job.







    17



    Yet another is that most PLC vendors chose to target running the software on Microsoft Windows on standard PC hardware.



    To industrial automation customers, Windows had a poor reputation for reliability as did standard PC hardware.







    18



    Furthermore, the software was still proprietary and closely modelled on their conventional PLCs, so soft logic systems did nothing to break vendor lock in.







    Also, they weren't generally any cheaper than a small conventional PLC that was ready to use out of the box.







    19



    All these taken together meant that interest in soft logic systems was limited.



    There are certain minor vendors who sell them.







    This isn't the full story however, and I will turn to this next.







    --------------------







    20 OpenPLC / Beremiz







    This does not mean there were no attempts at open source or Free Software soft logic systems.



    One such Free Software soft logic system is called OpenPLC.



    There is also a fork of OpenPLC called Beremiz.



    This is spelled B E R E M I Z



    It is available under GPL-2.0+ or LGPL-2.1 or later.







    21 OpenPLC - Installation on Linux



    OpenPLC offers three different installation options on Linux.



    These are from an AppImage package,



    cloning their git repository,



    and downloading a tarball and running an installation script.







    22



    I could not however get any of these to actually work with the current version, which is 4.2.7.



    There was always some library version conflict with fuse or npm or some other reason.



    As a point of interest, poking around in the tarball shows that this is an Electron app, and they used Claude Code AI to create it.







    23 Beremiz - Installation on Linux



    Beremiz appears to be a fork of OpenPLC with additional features.



    In this case I installed the Snap package version on Ubuntu 24.04.



    The snap package does indeed run.







    24



    However, the Snap integration with the file system is very poor.



    The permissions are not set up to allow saving project files outside of the snap, which is a bit of a problem.







    25



    I was able to create a new project directory by selecting "New", and then selecting an existing directory within the snap, then right clicking and selecting "open with file manager" and then navigating around with the file manager to where I wanted the directory to be, keeping mind that this is still inside the snap.







    26 Editing with Beremiz



    I won't provide a proper review of Beremiz, as this whole category of software is going to be so unfamiliar to most listeners that it would be difficult to describe in a manner which they can relate to.



    Instead I will describe a brief experience of working with it.







    27



    I created a new program, and selected ladder as the language.



    I was able to create a basic stop-start push button circuit.



    However, the ladder editor is a bit rubbish.







    28



    You drag and drop instructions onto a canvas in the editor pane and move them to wherever you want, lining them up manually.



    This is like having a text editor where you manually drag and drop each letter onto a canvas and arrange them into words and lines manually with your mouse.







    29 Building a Project



    I was then able to build the project.



    What this does is to translate the project into C source code and to then compile the C to an .so file.



    The next step would be to combine this with the Beremiz or OpenPLC runtime on the target hardware.



    I did not test this, as going any further than this would be at least a full episode in itself, if not its own series.







    30 Project Files



    By using the file manager trick mentioned above, I was able to find the project and source files which were generated and copy them to another location, so it is possible to get the files out of the snap with some effort.



    The files appear to be a combination of C, Python, XML, and CSV.







    31 Other Languages



    The editor supports ladder, instruction list, sequential function chart, function block, and structured text programming languages.



    I tried ladder and instruction list and got about half way through creating a sequential function chart sample before deciding to stop as I didn't know enough about how it worked to finish it.







    32 Overall Impression



    I haven't completed a full project with OpenPLC or Beremiz, but overall I would say that it is good enough to use for a hobby, but it's not good enough to run a factory.



    It is more suited to being a development system for writing programs for something like an Arduino than it is for replacing typical PLCs in a factory.







    33



    The cumbersome ladder editing and the steep learning curve do not make them viable for typical factory use.



    If you want to gain some experience writing programs for a PLC however, then it's pretty much the only thing out there that I am aware of that is Free Software.







    --------------------







    34 Web Based Training Demos







    If you are looking for something very easy to use to learn some basic PLC programming techniques, there are a couple of web sites which offer web based ladder editors and simulators at no charge at this time.







    35



    These are



    https://www.plcfiddle.com/



    and



    https://plcsimulator.online/







    I will leave their links in the show notes.







    36



    If you go to PLC Fiddle, the home page shows a basic start - stop circuit in ladder.



    There is a normally open contact for a start button.



    In series with this is a normally closed contact for a stop button.







    37



    On the far right is a solenoid coil for a motor relay or contactor.



    One of the contacts of the relay is wired in parallel such that when enabled, the relay "seals in" around the start button, so that when the start button is released the motor relay remains on.



    When the stop button is pressed, logic continuity to the relay is interrupted and it turns off again.







    38



    On the left, the variables for the two buttons and the relay are defined, along with web page elements which you can click to turn them on and off.



    The ladder elements change colour when energized.







    39



    If you click beside the variable definition for "Start Button", the relay is energized.



    If you click again, the relay remains energized.



    If you click beside the variable definition for "Stop Button", the relay is de-energized.







    40



    You can add more rungs and more variables.



    Only the basic contacts and coils seem to work at this time, but that should give you plenty to play with for a start.







    41



    Plcsimulator is similar, but appears to have more functions which work, such as timers.







    I can recommend playing around with these two sites in order to get a feel for what programming a PLC is like, at least for the PLC equivalent of a "hello world" type program.











    --------------------







    42 A Hypothetical Ideal Free Software Soft Logic System







    At this point it should become evident that the essence of a PLC is an abstract machine which executes a machine control program, and hardware which can be installed in an industrial environment to run this software.







    If you make the software independent of specific hardware, it is known as a soft logic system.







    43



    I have described OpenPLC and Beremiz above, but if I were to describe what the ideal Free Software soft logic system would be like what would it look like?



    I think this is an interesting question not because I intend to create this, but rather because it provides a good way of talking about the essentials of how PLCs work and what features they actually need as opposed to what features they currently have due to historical accretion.







    44 Essential Characteristics



    Let's lay out some essential characteristics and criteria.







    First, forget about IEC-61131 compliance.



    It really doesn't matter, and ignoring it allows us to make a lot of simplifying design decisions.







    45



    For example, we will specify that standard integers are arbitrary precision numbers.



    An arbitrary precision integer has no specified limit on its size and can grow as large as there is memory to hold it.







    46



    An example of a programming language that has arbitrary precision integers is Python.



    At a stroke these does away with issues such as how to handle integer and counter overflow.



    Integers and counters simply can't overflow.







    47



    Data types would be



    Boolean,



    integer,



    floating point,



    time, which is also used in timers,



    byte and word, which are used when interfacing with external hardware,



    string, as UTF-8,







    48



    Lists, queues, and FIFOs would be provided as basic features.







    Variables are addressed by name only, there are no numeric addresses and no guarantees about where variables are stored in memory.







    Programs using the above features are more focused on logical abstractions than on bit and byte twiddling.







    49 The Data Table



    The heart of any PLC is the data table.



    Virtually all features in a PLC do something by interacting with the data table.



    In our hypothetical PLC, the data table would be implemented as a high speed low overhead key value store.



    Local variables inside an individual function would be locally defined and transient, but all IO and all persistent global variables would stored in the data table.



    This relates to the modular design of the system.







    50 Modular Design



    All other features would be implemented as modules which attach to or plug into the data table.



    Some examples of these are as follows.







    51 Logic Engine



    The module that executes the PLC program would be the logic engine.



    This would attach to the data table and all its inputs and outputs would go through the data table.







    52 IO Connectors



    IO would be connected to the data table via protocol modules.



    These would handle things such as Modbus TCP networks or any other protocol for which a protocol module is written.







    53 Web Based HMI



    An HTTP server would handle a web based HMI.



    Graphical elements would be based on SVG and Javascript.







    54 Specialized Functions



    As well as the regular logic engine, additional specialized modules which handle fixed tasks such as closed loop control of heating processes could be included.







    55 Management and System Control Functions



    Other functions would include



    Alarm and event management.



    Recipe management.



    Start, stop, and system diagnostics.



    ERP interface.



    Etc.







    56 Logic Engine Implementation



    This would probably be an interpreter that would execute a defined Instruction List.



    Programs would be compiled from text to executable format when loaded.



    Programs are saved only as source, never as compiled object files.







    57 Program Editors



    The program editors would all be web based, not a desktop GUI.



    See the examples of web based ladder editors above which show that this is feasible.



    Editing off line, that is, without a connection to the running PLC, would be done by simply running a copy of the soft logic system in a VM on your PC and interacting with it via a standard web browser.







    58



    The high cost of the programming software for PLCs is one of the major problems that people working in the field face.



    For example, I just googled a price for Rockwell Studio 5000 Logix Designer Professional for a perpetual license, and I am seeing figures on the order of $5,000 to $8,000.







    59



    Just so you understand, this is the cost of one license for the programming IDE, not for the PLC hardware.



    You cannot do anything with the hardware without this software.



    This is a bit of a sore point for people working in the automation field.











    60 Operating Platform



    This system would run on a standard Linux or BSD operating system.



    It should run on a PC, Raspberry Pi, or other common commodity hardware.



    It should be portable between x86, ARM, and RISC-V.



    IO would typically interface via Ethernet.



    These days there is plenty of hardware which would accommodate such a system, something that was not always true in the past.







    61 Free Software Soft Logic Summary



    I am not proposing to start a project to create such a Free Software soft logic system.



    This was purely an intellectual exercise to give you an idea of what the scope of such a project would be if someone were to attempt it.



    It is straightforward and not even that technically challenging.







    62



    What you can see though is that it is a very different approach to what OpenPLC and Beremiz took.



    I think their design choices, which no doubt made sense in the context in which they were created 20 years ago, have contributed to their limited adoption.







    However, we also have to face the fact that this is an industry that is oriented around maximizing vendor lock in, so I don't hold out much hope for seeing such a system being widely adopted any time soon.







    --------------------











    63 Episode Conclusion







    In this episode we looked at the following.



    * The IEC-61131 standard,



    * Soft logic systems,



    * A free and open source PLC



    * What a hypothetical ideal free and open source soft logic system may look like.











    --------------------











    64 Series conclusions







    I this series we have looked at the following







    * What preceded PLCs.



    * The background of hard wired relay logic.



    * Early use of computers in industry.



    * The first PLCs.



    * What a simple PLC looks like.



    * Basic PLC concepts.







    65



    * Common PLC programming languages.



    * An overview of some of the common early PLCs, including the Allen Bradley PLC 2 and the Siemens S5 series.



    * PLC IO.



    * Safety systems.



    * Safety and cyber security and some of the fallacies surrounding this.



    * PLC networks.



    * A brief overview of the Modbus protocol.



    * SCADA



    * HMI







    66



    * Test and measurement systems



    * The IEC-61131 standard.



    * Soft logic



    * OpenPLC and Beremiz.



    * What a hypothetical free and open source soft logic system suited to industrial use may look like.







    67



    This has been the briefest of brief overviews of the industrial automation field.



    I hope that I have been clear that I have barely scratched the surface of the field.



    I have probably over simplified some of these topics in an effort to be as brief as possible, so I hope that you will forgive me if some unintended mistakes have crept in as a result of this.







    68



    This has been the last episode in an 8 part series.







    69



    I hope that this has been informative and entertaining.



    I hope to see you all again later in another episode of HPR.







    --------------------





    Provide feedback on this episode.
More Education podcasts
About Hacker Public Radio
Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists.
Podcast website

Listen to Hacker Public Radio, Motivation Daily by Motiversity and many other podcasts from around the world with the radio.net app

Get the free radio.net app

  • Stations and podcasts to bookmark
  • Stream via Wi-Fi or Bluetooth
  • Supports Carplay & Android Auto
  • Many other app features