<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code Exchange</title><link>https://community.element14.com/technologies/code_exchange/</link><description>As embedded electronics continues to transform our lives, engineers around the globe are looking for ways to increase their coding chops. To help engineers meet this need, element14 has unveiled Code Exchange-- a place where engineers can help each other.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=30f8c90e-d25c-4213-b266-c213f637490b</link><pubDate>Tue, 14 Apr 2026 07:09:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:30f8c90e-d25c-4213-b266-c213f637490b</guid><dc:creator>Jan Cumps</dc:creator><description>giving it a same name as a built-in type wasn&amp;#39;t my brightest moment</description></item><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=91d6b321-ac4c-4603-a9ce-2a056e5bcdba</link><pubDate>Mon, 13 Apr 2026 17:14:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:91d6b321-ac4c-4603-a9ce-2a056e5bcdba</guid><dc:creator>vmate</dc:creator><description>Ah, sorry then, all the times I&amp;#39;ve encountered time_t, it has been just a typedef to a 32/64bit int.</description></item><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=d4038b6f-c0fd-40f6-8aea-9fdd5d82a751</link><pubDate>Mon, 13 Apr 2026 12:10:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:d4038b6f-c0fd-40f6-8aea-9fdd5d82a751</guid><dc:creator>Jan Cumps</dc:creator><description>... that sits in the nmea namespace: namespace nmea { using time_t = std::chrono::hh_mm_ss &amp;gt;&amp;gt;;</description></item><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=22e338e8-c441-42ac-9d32-9f588c5199e5</link><pubDate>Mon, 13 Apr 2026 11:20:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:22e338e8-c441-42ac-9d32-9f588c5199e5</guid><dc:creator>Jan Cumps</dc:creator><description>the time_t example doesn&amp;#39;t apply here at all, since it&amp;#39;s a fundamental type, so there is no ctor/dtor or any performance penalty. Not obvious from the snippet I posted, but it&amp;#39;s a class (with a constructor) in this case: using time_t = std::chrono::hh_mm_ss &amp;gt;&amp;gt;;</description></item><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=1aed308a-320e-4ce4-8b68-0549127a3c3b</link><pubDate>Mon, 13 Apr 2026 08:52:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1aed308a-320e-4ce4-8b68-0549127a3c3b</guid><dc:creator>Jan Cumps</dc:creator><description>&amp;gt; Also, Return Value Optimization has been part of the spec (although optional) for like 30 years at this point if I recall correctly, &amp;gt; so C++17&amp;#39;s guaranteed copy elision is not even needed for small and relatively simple types. Yes, it exists since c++11. Enforced by compiler (regardless of what command line switches are passed during build) since c++17.</description></item><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=f9d12367-ee31-4210-9c03-e64aa7634d3a</link><pubDate>Sun, 12 Apr 2026 16:30:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f9d12367-ee31-4210-9c03-e64aa7634d3a</guid><dc:creator>vmate</dc:creator><description>It&amp;#39;s almost always better to do it the new way, and actually the time_t example doesn&amp;#39;t apply here at all, since it&amp;#39;s a fundamental type, so there is no ctor/dtor or any performance penalty. For small objects, even a full constructor call is probably just as fast if not faster than passing in by reference and having the code mess with pointers and stuff. Also, Return Value Optimization has been part of the spec (although optional) for like 30 years at this point if I recall correctly, so C++17&amp;#39;s guaranteed copy elision is not even needed for small and relatively simple types.</description></item><item><title /><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-initialise-a-static-array-inside-a-class?CommentId=a371a781-eb91-48b3-9afe-226f0a275856</link><pubDate>Sun, 12 Apr 2026 15:36:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a371a781-eb91-48b3-9afe-226f0a275856</guid><dc:creator>Jan Cumps</dc:creator><description>I&amp;#39;m making a few changes to the nmea lib API and code: let the library return objects, instead of passing them via output parameters Since C++17, the compiler can directly use the object that receives the return value. So no constructors or copies are called in this mechanism. Old version: void nmea::time(const std::string_view&amp;amp; sv, time_t&amp;amp; t) { std::string s(sv); t = time_t{ std::chrono::hours(std::stoi(s.substr(0, 2))) + std::chrono::minutes(std::stoi(s.substr(2, 2))) + std::chrono::seconds(std::stoi(s.substr(4, 2))) + std::chrono::milliseconds(std::stoi(s.substr(7))) }; } New version (uses exactly same amount of resources): time_t nmea::time(const std::string_view&amp;amp; sv) { std::string s(sv); return time_t{ std::chrono::hours(std::stoi(s.substr(0, 2))) + std::chrono::minutes(std::stoi(s.substr(2, 2))) + std::chrono::seconds(std::stoi(s.substr(4, 2))) + std::chrono::milliseconds(std::stoi(s.substr(7))) }; } All API functions that use an output parameter have been adapted. I&amp;#39;m running tests to see if any regression happened...</description></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234546</link><pubDate>Fri, 20 Mar 2026 18:37:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:72cbb11a-e022-4fb4-9344-038a52f34b1e</guid><dc:creator>kmikemoo</dc:creator><description>There is so much old equipment control equipment in the world, it&amp;#39;s crazy. I&amp;#39;ve run into manufacturers that run the gamut. Some simply disavow that they ever made the item. Some admit that they have no one that knows anything about the product anymore. A few will give you what little they have and wish you luck. None of them are able to provide any real support - unless you run into the unicorn (the old technician that still remembers a bit OR... the person that sees the pattern). I&amp;#39;ve worked on systems without manuals or prints but that used a similar wire numbering convention dating back to a small regional company in the 1960&amp;#39;s. There are still elements of this numbering system in equipment produced today. ANYWAY... I think a sure-fire way to get the equipment upgraded is to figure out how to fix it. It&amp;#39;s one of the Murphy&amp;#39;s Laws kind of things. Once you know how to get past that road block, you&amp;#39;ll never need to do it again - because you can make it past the road block. Instant obsolescence - since you know what to do. This is especially true if you document what you did and leave a copy in the machine. On a particular brand of controllers, I figured out how to determine the user selected unlock code from the reset code. A disgruntled, now former employee had changed the passcode and left the company. Now, no one could operate the equipment. The controller manufacturer was very unhelpful. I cracked the code. Made a spreadsheet to do the conversion. Put it all in a shared folder on a shared drive. How many times after that did we need to use that decode? ... None that I know of. Still... it kept Murphy from using that particular road block for the rest of my time at that company. What is impressive in all this is seeing the pattern or seeing the evolution. THAT is cool. As to some of the &amp;quot;intellectual property&amp;quot;, many of the machines do the same thing that they did decades ago - they just do it with more modern variants of the same stuff they had when the machine was first created. Or they have additional &amp;quot;features&amp;quot; that may help in manufacturing but are ancillary to the core function of the machine. If you can make an old system work... that is engineering.</description></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234525</link><pubDate>Thu, 19 Mar 2026 21:36:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a15c6e13-2e92-407a-a688-e42ac8488e26</guid><dc:creator>dang74</dc:creator><description>Nice post. I haven&amp;#39;t used a PLC before but I&amp;#39;ve looked into them here and there... anyway I guess I have enough familiarity to get excited about what you are trying to accomplish... and I am not exaggerating when I say it&amp;#39;s like reading the tech version of the DaVinci code. Good luck with this endeavor.</description></item><item><title>Forum Post: commanding my PLC from my phone.</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56782/commanding-my-plc-from-my-phone</link><pubDate>Thu, 19 Mar 2026 16:10:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:440915fe-f2ee-4551-8e40-3a404c86d87b</guid><dc:creator>SensoredHacker0</dc:creator><description>ITs a proof of concept, that instructions may be sent from a phone to control a PLC. The larger goal is to write debugging apps which make process control and analysis easier and more available, to technicians. Android app dev wanted? www.youtube.com/watch</description><category domain="https://community.element14.com/technologies/code_exchange/tags/android">android</category><category domain="https://community.element14.com/technologies/code_exchange/tags/plc">plc</category><category domain="https://community.element14.com/technologies/code_exchange/tags/industrial">industrial</category><category domain="https://community.element14.com/technologies/code_exchange/tags/programming">programming</category><category domain="https://community.element14.com/technologies/code_exchange/tags/idec">idec</category><category domain="https://community.element14.com/technologies/code_exchange/tags/development">development</category><category domain="https://community.element14.com/technologies/code_exchange/tags/automation">automation</category><category domain="https://community.element14.com/technologies/code_exchange/tags/kotlin">kotlin</category></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234521</link><pubDate>Thu, 19 Mar 2026 14:13:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4d2e60d6-7a80-436f-8c14-180d3135551c</guid><dc:creator>geralds</dc:creator><description>Hi, What is your intention? A lot of intellectual knowledge leads to a lot of headaches. Who are you doing all this for? A hobbyist has no chance of achieving anything. Especially in areas where everything is very sensitive, -&amp;gt; &amp;quot;protocols&amp;quot; for data transmission. Well, back in the day, people played around with this in their garages; today, you&amp;#39;d be charged with intellectual property theft. Licenses are very expensive, and some decisions are made with a hammer. Especially in these areas, contracts need to be watertight. Another problem: time. Technological progress will surely overtake you. By the time you&amp;#39;ve finished solving one problem, the major global players will have already solved many more. And you&amp;#39;ll have to chase after them again, researching these new developments so you can incorporate them into your tinkering. Ugh... nobody can keep that up. Almost 50 years of experience, both employed and privately as a hobby, and with my own companies in technology, electronics, electrical engineering, and physics have taught me a lot. I wish you all the best! Gerald ---</description></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234520</link><pubDate>Thu, 19 Mar 2026 13:22:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:dcd679b6-6330-47ec-a078-459385b5a929</guid><dc:creator>robogary</dc:creator><description>Ah-ha. You&amp;#39;ve discovered big business ! .......OEM owning multiple brands, brand label agreements, business and technology acquisition, joint ventures, buying and selling of intellectual properties.......and creative marketing.</description></item><item><title>File: Controlling an IDEC PLC From an Android Phone</title><link>https://community.element14.com/technologies/code_exchange/m/managed-videos/151053</link><pubDate>Thu, 19 Mar 2026 12:11:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f3314537-3759-4cce-9574-5af209dfd15d</guid><dc:creator>SensoredHacker0</dc:creator><description>I am stupid excited to get this working, if only for the reprieve to my sanity. The app: https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal&amp;amp;hl=en_US What I really want to make is debugging tools for PLC systems, where ...</description><category domain="https://community.element14.com/technologies/code_exchange/tags/maker">maker</category><category domain="https://community.element14.com/technologies/code_exchange/tags/plc">plc</category><category domain="https://community.element14.com/technologies/code_exchange/tags/Hey%2bBangor">Hey Bangor</category><category domain="https://community.element14.com/technologies/code_exchange/tags/element%2b14">element 14</category><category domain="https://community.element14.com/technologies/code_exchange/tags/idec">idec</category><category domain="https://community.element14.com/technologies/code_exchange/tags/Bangor%2bMakerspace">Bangor Makerspace</category></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234517</link><pubDate>Thu, 19 Mar 2026 11:01:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:cd1eba07-94b2-4633-8a53-8e22ed25c7b8</guid><dc:creator>shabaz</dc:creator><description>At least in Europe, it&amp;#39;s generally considered to be valid to reverse-engineer a protocol at a device interface, for the purposes of interworking their own products. That was also part of EU legislation in the early 2000&amp;#39;s, although now I believe it&amp;#39;s changed to an extent, presumably at the pressure of manufacturers unfortunately, but I&amp;#39;m not sure. Some manufacturers didn&amp;#39;t like the legislation because it exposed their proprietary stuff (not just the protocol, but anything else that got revealed through the process of reverse-engineering). The ones who thought about it more, simply offered the protocol for free or for a fee, since that eliminated the justification to reverse-engineer and the proprietary stuff exposure risk. Telecoms firms were interesting, every country wanted to protect their manufacturing base, so they all slightly tweaked the international standards. I had a job once re-tweaking things back, in a system that would attach to their equipment. Say if a telecom customer came along from any random small country or large, I&amp;#39;d have to look through their documentation to try to find the closest matching variant that I already had, and then tweak that one to create the new one. I wish I&amp;#39;d thought of drawing a tree diagram of them at the time.. would have been interesting from a history perspective, to see how they evolved.</description></item><item><title>Forum Post: Android app dev wanted?</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56778/android-app-dev-wanted</link><pubDate>Wed, 18 Mar 2026 21:43:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:aab691a9-a995-458a-9c42-0206c624e6dc</guid><dc:creator>SensoredHacker0</dc:creator><description>Trapped at work! wouldn&amp;#39;t even care, but I need an adapter to go from USB-C to usb-a and I only know of one at my local makerspace. Ive been struggling with creating my own Andriod app. I dont know how folks put up with it, I wrote 3 files, built the thing and ended up with 1877+ files, and meaningless directory structures. /... and my app doesn&amp;#39;t work. :( well anyway, the app I want to write would send my PLC IO control commands to a PLC via USB. which commands formatted in hex? The commands below for IDEC series PLCs. This app: https://play.google.com/store/search?q=usb%20serial&amp;amp;c=apps&amp;amp;hl=en_US has macros, and I am really ansy to test it. I wrote an arduino echo back program: void setup() { Serial.begin(115200); while (!Serial) { } // wait for a connection Serial.println(&amp;quot;READY&amp;quot;); } void loop() { // connect phone and see if you get transmission interactions if (Serial.available()) { String input = Serial.readStringUntil(&amp;#39;\n&amp;#39;); Serial.print(&amp;quot;ECHO: &amp;quot;); Serial.println(input); } } which works great! but I want to talk to the PLC now! 05 FF 30 57 79 30 30 30 30 31 2F 0D 05 FF 30 57 79 30 30 30 31 31 2E 0D 05 FF 30 57 79 30 30 30 32 31 2D 0D 05 FF 30 57 79 30 30 30 33 31 2C 0D 05 FF 30 57 79 30 30 30 34 31 2B 0D 05 FF 30 57 79 30 30 30 35 31 2A 0D 05 FF 30 57 79 30 30 30 36 31 29 0D 05 FF 30 57 79 30 30 30 37 31 28 0D 05 FF 30 57 79 30 30 30 30 30 2E 0D 05 FF 30 57 79 30 30 30 31 30 2F 0D 05 FF 30 57 79 30 30 30 32 30 2C 0D 05 FF 30 57 79 30 30 30 33 30 2D 0D 05 FF 30 57 79 30 30 30 34 30 2A 0D 05 FF 30 57 79 30 30 30 35 30 2B 0D 05 FF 30 57 79 30 30 30 36 30 28 0D 05 FF 30 57 79 30 30 30 37 30 29 0D So i wrote some macros to send commands. but I&amp;#39;m stuck until 5 because I don&amp;#39;t have some adapter. implication of functional test: I can write code to conduct system debugging from a cell phone... the thing every service tech has. no more climbing on ladders with a laptop, only to connect and data collect, and still not have a network to dial out on. this is an every day problem for many technicians. There&amp;#39;s no internet in the building, no place to plug in, no cellular, no way to get the data off the laptop on to a phone, the tech has a laptop, but can&amp;#39;t install programs (ok i have solved most of that) but, its the same issue, the service reps aren&amp;#39;t computer programmers, or IT specialist, and the sites they go to might not have reliable network connectivity. you&amp;#39;re in a dense industrial building, that acts like shielding from every service signal, then you want to link out, but your laptop needed to run some proprietary BS software still has to connect to your phone ... its stupid, and unnecessary, and I&amp;#39;ll Fkn fix it myself if I can ever figure out how to write a GD Android App. in the meantime, i want to test this program for functionality. it should work.</description><category domain="https://community.element14.com/technologies/code_exchange/tags/technichian">technichian</category><category domain="https://community.element14.com/technologies/code_exchange/tags/plcs">plcs</category><category domain="https://community.element14.com/technologies/code_exchange/tags/programming">programming</category><category domain="https://community.element14.com/technologies/code_exchange/tags/usb">usb</category><category domain="https://community.element14.com/technologies/code_exchange/tags/phone">phone</category><category domain="https://community.element14.com/technologies/code_exchange/tags/apps">apps</category><category domain="https://community.element14.com/technologies/code_exchange/tags/service">service</category><category domain="https://community.element14.com/technologies/code_exchange/tags/cellular">cellular</category></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234486</link><pubDate>Fri, 06 Mar 2026 17:27:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e8111210-8045-4735-b2a3-6d50557bc0ab</guid><dc:creator>kmikemoo</dc:creator><description>@SensoredHacker0 When it comes to the video... give yourself some grace. I used to have to do a monthly Safety video for work and I wasted a TON of emotional energy chasing perfection - which I never achieved. Along the way, I learned that it&amp;#39;s okay to be human. It makes you more relatable - and therefore trustworthy. ☺ We&amp;#39;re all here for the nerdy stuff anyway.</description></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234485</link><pubDate>Fri, 06 Mar 2026 13:13:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:0ee6060e-2e9a-4911-b785-fa7fec4ee2b3</guid><dc:creator>SensoredHacker0</dc:creator><description>yeah, Ive read a lot of manuals. My &amp;quot;&amp;quot;code base is a whole bunch of fragments. Im trying to organize into a usable API. in all the tinkering, Ive made arduinos program PLCs, and projects in 10 languages. Some of those languages have caveates, and this is influencing my choices in making an API. it might go: plc = API(vendor.interface) well then anyways, Ill make proper videos, which isnt a skill Ive developed. This plc isnt programed. I run the app on my phone. The plc is now programed. seems conceptually simple, but how to make the video is confusing. Well Ive managed to convince a few folks, and have a brand new pile of PLCs to perform confirmations and proofs on.</description></item><item><title>Forum Post: RE: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same/234484</link><pubDate>Sat, 28 Feb 2026 16:20:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5163dcbe-c915-4eb2-bbdc-99b96974050d</guid><dc:creator>kmikemoo</dc:creator><description>Very cool. That&amp;#39;s a lot of manual to review. I&amp;#39;ll just have to trust you.</description></item><item><title>Forum Post: "Its all the same"</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56776/its-all-the-same</link><pubDate>Sat, 28 Feb 2026 09:27:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f7030a8b-cfc7-485f-a3db-cdc70b986b14</guid><dc:creator>SensoredHacker0</dc:creator><description>Some internet jerk made a snide comment today about someone else’s light-hearted Linux install project. It shouldn’t have stuck with me, but it did. It woke me up hours later with a thought I couldn’t shake: They’re all the same. For the past few years I’ve been building my own PLC communication libraries — serial, USB, TCP — in Python, C/C++, JavaScript, PHP. In the last 24 hours I’ve been writing Kotlin because I want a field tech to be able to debug a PLC from their phone, even if the PLC doesn’t have Bluetooth. No PhD. No formal CS background. Just me, a hex editor, and the habit of staring at binaries until the patterns start to move. I’ve got a small collection of PLCs to experiment with — mostly IDEC, plus a few Siemens, Keyence, Mitsubishi. When I want to understand something, I don’t wait for permission. I open the firmware, trace frames, XOR checksums by hand, and squint until the Matrix resolves. That’s how I dug into IDEC’s Maintenance Protocol. I’ve mapped most of it. I still haven’t fully cracked firmware writing or compiled bytecode translation, but I’m close. Then something weird happened. I was experimenting with a Keyence KV series PLC my employer provided. By accident, I ran some IDEC code against it. The LEDs toggled. That shouldn’t be possible. So I ran it again. There it was: IDEC’s Maintenance Protocol responding on a Keyence KV-1000. That sent me digging. I looked for documentation. Nothing useful. Every OEM wants you locked into their bloated, feature-starved software. So I asked ChatGPT what PLC communication protocols are linguistically similar to “Maintenance Protocol.” The answer? All of them. Mitsubishi MELSEC. IDEC Maintenance. Keyence KV. Siemens S7. Schneider Electric. And probably the rest. I haven’t tested the GE units yet — the ones I have are temperamental — but I’m not expecting surprises anymore. The structures match. The framing matches. The checksums match. Even the command semantics echo each other. And here’s the funniest part: there’s a typo. A small framing typo that has survived for roughly forty years. It appears in every document from every vendor. Same sentence. Same mistake. Never corrected. It’s like a fossil record of copying. Near as I can tell, someone named Petr John, defined a protocol that was likely meant to be open. Over time, industrial OEMs cloned it, rebranded it, redistributed it, and quietly erased source attribution. Every one of them claimed it as thier own uniqe protocol. The memory mappings might differ, but the language is the same. What’s fascinating is that nobody fixed the typos. Four decades. Dozens of manufacturers. Identical typologcal error. They’re all the same. I started this because I wanted to build tools that help techs in the field. I don’t want to drive out for service calls just to flip a bit. I want clean, simple, useful software anyone can use. I didn’t set out to reverse engineer the entire industrial controls ecosystem. But once you see it, you can’t unsee it. n The protocols are the same. The framing is the same. The semantics are the same. Even the typos are the same. When I finally finish mapping byte-code to instructions and build an open instruction compiler, It’ll just be the same thing running everywhere else. Find the TYPO! dl.mitsubishielectric.com/.../sh080008ab.pdf docs.galco.com/.../fc4a_protocol_im.pdf ### Good docs are hard to come by, but when i find the other again Ill post them.</description><category domain="https://community.element14.com/technologies/code_exchange/tags/plcs">plcs</category></item><item><title>Forum Post: Help wanted: Native IDEC PLC Compiler wanted.</title><link>https://community.element14.com/technologies/code_exchange/f/forum/56717/help-wanted-native-idec-plc-compiler-wanted</link><pubDate>Wed, 25 Feb 2026 20:10:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c4263d68-2ec6-47c6-886f-a7a66b1089c3</guid><dc:creator>SensoredHacker0</dc:creator><description>I work with IDEC PLCs, and from a hardware perspective I think they are pretty good. from a software perspective I think they could do better.. I think I could do better. and so I am working on it. I would love to be able to write node-red, and run native IDEC PLC code. (my current method involves writing code that doen&amp;#39;t execute natively) Ive run this in Bash, C, C++, JS,PHP, Python... any language is feasible. The final piece Is a means to convert instructions into their raw compiled instructions. I haven&amp;#39;t figured that part out yet, and want help figuring it out. i asked IDEC for support doing this. Ill write all the language support if I can just get an API to do the language conversion from instruction to binary instruction. Loathsome alternatives: I guess all the mnemonics, and figure out how to run the ladder compiler dll in wine.</description><category domain="https://community.element14.com/technologies/code_exchange/tags/plc">plc</category><category domain="https://community.element14.com/technologies/code_exchange/tags/compilers">compilers</category><category domain="https://community.element14.com/technologies/code_exchange/tags/programming">programming</category><category domain="https://community.element14.com/technologies/code_exchange/tags/idec">idec</category><category domain="https://community.element14.com/technologies/code_exchange/tags/embedded">embedded</category><category domain="https://community.element14.com/technologies/code_exchange/tags/linux">linux</category></item></channel></rss>