plcsean
Wow just found you guys, this is promising work.
 
Questions from a guy who has used most PLC's and teaches them for a living:
  1. Will we eventually be able to type in literal constants on things like timers?
  2. Will timers show there .ET Time in ladder without the debug menu?
  3. When i tried to debug a global variable it did not show up in the debug window, is this intended?
  4. Forcing bool in the simulator and Runtime V4 was fine but i could not force a TIME variable at all, tired T#5s, 5s, 5000 etc. just stuck to its "Initial Value"
  5. I haven't tried it on my own yet but could you run multiple vPLC's on a server and have multiple people "online" with them
Feedback:
  1. ladder editor was pretty easy to use vs some other "IEC" software out there... cough *codesys*
  2. Cant wait to try python blocks.
  3. Loved the no install just run it .exe download for windows!!
  4. Keep up the good work!
Reply 0 0
thiagoralves
  1. You already can. Just type T#500ms for example
  2. No, only through the debug panel. This may be added in the future
  3. This is a bug that was fixed on the latest v4.1.3
  4. This is a bug. Please add it to the issues list so it can get tracked to be fixed: https://github.com/Autonomy-Logic/openplc-editor/issues
  5. Yes. Check Autonomy Edge getting started guide: https://edge.autonomylogic.com/docs/getting-started/quick-start
Feedback
  1. Thanks! That's exactly what we wanted to build. A new IDE from 2026, instead of one from 1998
  2. They work like magic
  3. The .exe IS an installer. It just happens that the installation is very quick (clean IDE vs bloated ... cough *codesys* ) and the installer opens the application at the end. You don't have to click on the .exe every time. Opening the installed IDE from the windows menu will be way faster
  4. Thanks, we will!
Reply 0 0
plcsean
Ah ok tried it again and yes literal is possible. It was a bit confusing because an error box appears and says not a valid variable, its a literal... thought it was complaining. I would remove that message.
 
Tried python block, left it default and now it wont compile.
There is defiantly work to be done but I do like it (coming from a "rockwell guy")
 
I would love to use it to "teach" plc's with, small, fast and easy to use.
Reply 0 0
thiagoralves
What is the error you're getting with the python block?
Reply 0 0
plcsean
[27-02-26 09:20:28]: Compilation failed with code 1

[27-02-226 09:20:28]: In file included from C:\Users\seanc\Documents\TestAuto\build\OpenPLC Simulator\src\glueVars.c:182:0:

[27-02-26 09:20:28]: C:\Users\seanc\Documents\TestAuto\build\OpenPLC Simulator\src\POUS.inc: In function 'TEST_body__':

[27-02-26 09:20:28]: C:\Users\seanc\Documents\TestAuto\build\OpenPLC Simulator\src\POUS.inc:69:11: error: unknown type name 'pid_t'; did you mean 'div_t'?

[27-02-26 09:20:28]: pid_t pid = getpid();

[27-02-26 09:20:28]: ^~~~~

[27-02-26 09:20:28]: div_t

[27-02-26 09:20:28]: Error during build: exit status 1

Literally new function block, name test language python, hit run got this

Reply 0 0
thiagoralves
Python blocks do not run on the simulator, only on real hardware. However, programs with Python blocks can be simulated (python blocks are transformed into no-ops). I believe you got a bad batch on the v4.1.3 editor (there was a bad build that lasted online for a couple hours). Try downloading and installing v4.1.3 again. It should be able to run your program with python blocks on the simulator, but the python code won't do anything unless you upload the program to a hardware running runtime v3 or v4.
Reply 0 0
plcsean
That did the trick it compiles, i don't see the "print statements" in the terminal / or console. Where do they end up?
Def need to work on the documentation. not clear on how this all works....
can variables go plc -> python, python -> plc directly or just via in/out
Can you "debug" python variables?
 
Block code:
 
from multiprocessing import shared_memory
import struct
import time
import os
from typing import Mapping
def block_init():
    global bob
    bob = 0
    print('Block was initialized')
def block_loop():
    global bob
    bob = bob + 1
    print('Block has run the loop function')
    print(bob)
    Frank = 7 #Output paramater
 
Can't see print, cant debug bob, frank outputs Zero not 7.
 
i did see this in the runtime
 
[2026-02-27 16:12:02] [INFO] [Python loader] Random shared memory location: /shmAkJnRoowTmyR
[2026-02-27 16:12:02] [INFO] [Python loader] Started Python function block: test.py (PID 706)
127.0.0.1 - - [27/Feb/2026 11:12:02] "GET /api/runtime-logs?id=89 HTTP/1.1" 200 -
127.0.0.1 - - [27/Feb/2026 11:12:02] "GET /api/status HTTP/1.1" 200 -
[2026-02-27 16:12:02] [INFO] [Python] Error on shared memory: [Errno 13] Permission denied: '//shmAkJnRoowTmyR_in'
 
PS. Your response in the forum is awesome
Again, lots of work to do but I like it
 
PPS. You guys need a part time bug tester? 😉
 
PPS. Curious why you use Upload, when the industry standard is download?
Reply 0 0
thiagoralves
Update your runtime to v4.0.7. The error you're facing is related to a bug affecting only Windows, which was fixed on v4.0.7. Declared variables in the block variable table are shared between the PLC side and Python side (just like any other block). You can't debug python code as that runs asynchronously, but you can debug the in and out variables from the block just like any other block. Also, on Frank = 7, since the variable is coming from the PLC side, you must declare it with global statement the same way you did with bob. Otherwise Python will create a new Frank variable inside the def block_loop() function. This is a Python specific behavior and there is nothing we can do about it.
Reply 0 0
thiagoralves
About the print statements, they show up on the PLC Logs next to Console when you are connected to a runtime.
Reply 0 0
plcsean
i downloaded everything literally yesterday, so i have runtime v4.0.7 according to the file name, i re-downloaded / re-installed it for giggles. Same error / issue.
Makes sense on the variable i wasn't sure if it needed to be global or fully qualified ie. test.Frank to access output variables.
 
I figured that's where the print's should be but its having issues running.
Reply 0 0
thiagoralves
Turns out the fix never reached the v4.0.7 build as it was still on the development branch. Kicked a new build for v4.0.8 which has the Python fix. Remove runtime v4.0.7 and install v4.0.8 and you should be good with Python blocks
Reply 0 0
Reply