Post by jvfred on Reading a negative number
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I have a Codesys-based Eurotherm E+PLC400 connected to Codesys HMI SL for visualization. I am also bringing in several Pressure Indicators via the Ethernet. Everything works; however, the Pressure indicators sometimes read a negative value. When they do, the displayed value on the screen reads "65532." While I know what it represents, the customer freaks out and wants it to read "0" or a negative number. The value comes in as an integer, just in case that matters. Does anyone have any ideas?
    
    Last updated: 2025-05-22
    
    
      
        Post by lbouchard on CANOpen SIL2 error: UNSAFESTACK_NOT_OPERATIONAL
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Update: I still have no idea what was causing my issues, but it went away as soon as I identified that another device on the CAN was generating a Sync message at 16#7F. Changing this to be on 16#80 made the problem go away. I have no idea why this solves the problem and would love to hear from anyone who knows why these two things might be related.
    
    Last updated: 2025-05-26
    
    
      
        Post by ggis on Manage Gateways between different CODESYS IDE versions
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I'd like to share the list of gateways between different versions (and sandboxes) of Codesys IDE. I refer to the list that is managed in Device > Communication Settings (as described in https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_edt_device_communication_settings.html ) Can I export/import that list? Or is there a file that I can copy from one installation to another one? Thank you GG
    
    Last updated: 2025-05-28
    
    
      
        Post by josul on Web Client HTTPS Communication Issue
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Thank you for the suggestion. There is a certificate created in the quarantine directory relating to the URL used for the webclient FB. This certificate should have been valid as it was created only the week before this problem was encountered. I investigated a separate location using the same https URL and it has 2 certificates in the same quarantine directory, 1 is created almost 200 days ago, the other over 100 days ago. There have been no similar problems encountered with these certs or https at all.
    
    Last updated: 2025-06-09
    
    
      
        Post by timothyzalusky on Missing Device Descriptions in Repository
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      After updating my Codesys to later versions, it seems my device repository no longer lists the proper runtime devices, nor ethernet adapters, or other previously installed device descriptions. What needs to be done here? Do I need to uninstall and do a clean install? I am now updating to SP21.1 to see if that fixes it. Any tips what I am doing wrong here are much appreciated. I don't see codesys control win, or have the ability to add an ethernet adapter in my project.
    
    Last updated: 2025-06-12
    
    
      
        Post by imdatatas on The default ramp type selection in SoftMotion V4.18.0.0 is Quadratic
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Dear @gseidel, @tk096, I noticed that with SoftMotion V4.18.0.0, if a new axis is added to the project, the ramp type selection defaults to "Quadratic". In all previous versions, the velocity ramp type selection was "Trapezoidal". This causes some unexpected issues in projects with SoftMotion version V4.18.0.0 for newly created or newly added axes to existing projects. Is it possible to reconsider this situation in the next update and set the velocity ramp type to "Trapezoid" by default again? Best Regards, Imdat
    
    Last updated: 2025-07-22
    
    
      
        Post by gepert on GearInPos
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, Please give any tips regarding stopping Mc_GearInPos block. Please look at attached drawings. When fb MC_GearInPos is started, output "busy" is true - it is ok. But when i want to stop this funkction blok i deactive execute input and i use Mc_stop. Unfortunelly Mc_gearInPos is still busy. It lasts till to synchronize phase. Then i can stop it by Mc_stop. So I cannot stop fb before synchrnization. Can you give any tips how solve this problem. Sometimes I must to switch off before synchro. Best regards Lukasz
    
    Last updated: 2025-08-07
    
    
      
        Post by yann2021 on Execute a .py file with Codesys
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I have a Raspberry Pi 3 which has a printer connected to his USB port. I have a PiFace Board on the Raspberry. I have a python script file (.py) to print a logo + a text. The script is working because when I execute it from the Raspberry terminal it works. Now, when I push a button on the PiFace I would like to execute the python script file to print. How can I do that ? Many thanks for your help and advices!
    
    Last updated: 2025-08-26
    
    
      
        Post by eboyd on AOI's
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I'm currently working on transferring a project I recently created on Studio 5000 to CODESYS and unfortunately CODESYS isn't compatible with AOI's so I was wondering if there was anyone who could help me transfer these L5X AOI blocks to ST Function Blocks that I can import into CODESYS so I can use them for this project or if you know where I can find preexisting Function Blocks for these AOI's. Thank you so much!
    
    Last updated: 2025-09-02
    
    
      
        Post by eboyd on AOI's
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I'm currently working on transferring a project I recently created on Studio 5000 to CODESYS and unfortunately CODESYS isn't compatible with AOI's so I was wondering if there was anyone who could help me transfer these L5X AOI blocks to ST Function Blocks that I can import into CODESYS so I can use them for this project or if you know where I can find preexisting Function Blocks for these AOI's. Thank you so much!
    
    Last updated: 2025-09-02
    
    
      
        Post by kurtk on Screenshot with "Sys Process Execute Command"
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I am working on this same thing... I wonder if when you execute it in a "terminal" it is a graphical terminal window running under X whereas when it is run from a SysProcess, it is "headless" and hence X-less Does DISPLAY=:0 magically attach to the X session Wouldn't it make sense that scrot or imagemagick would automatically by default reference DISPLAY=:0 I'm just trying to figure out how this works or is supposed to work
    
    Last updated: 2025-09-12
    
    
      
        Post by astutoski on MCP23017: inputs OK, but outputs won’t switch (CODESYS on Raspberry Pi)
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi everyone, I’ve connected and configured an MCP23017 over I²C on a Raspberry Pi using the available CODESYS/RPi library. Input reading works fine (I can reliably read a digital input). However, I can’t get any output pin to change state. Example: when I try to drive PB0, the watch shows MCP23017.Out_B.0 = TRUE (1), but there is no actual output on the pin (no voltage change). Anyone solved this?
    
    Last updated: 2025-09-17
    
    
      
        Post by pernockham on Engineering IDE from linux?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      An update note. Still using linux/Qemu. Still happy, but sometimes some things are harder. I lost the "bridge" connection to my VM (meaning for instance I couldnt "scan network" and find local units. Have spent tons of hours to find out why. Finally it seems the traffic got blocked by the firewall/iptables so needed to set rules for that. So friendly note that rules must allow forward traffic to/from you configured host bridge device.
    
    Last updated: 2025-09-22
    
    
      
        Post by nchau on Requesting ESI Files for Estun Pronet Servo Drives (EtherCAT)
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi everyone, I'm currently working on a project using Estun Pronet servo drives with EtherCAT communication, and I need the appropriate ESI (EtherCAT Slave Information) files to set up the network. The specific models I'm using are: Pronet-04AEG-EC Pronet-02AEG-EC-R1 Pronet-10AEG-EC-R1 Pronet-20AEG-EC-R1 Pronet-50DEA-EC-R1 If anyone has the ESI files for these models or knows where I can download them, I would greatly appreciate your help. Thank you in advance!
    
    Last updated: 2025-09-26
    
    
      
        Post by nchau on Estun servo with codesys
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi everyone, I'm currently working on a project using Estun Pronet servo drives with EtherCAT communication, and I need the appropriate ESI (EtherCAT Slave Information) files to set up the network. The specific models I'm using are: Pronet-04AEG-EC Pronet-02AEG-EC-R1 Pronet-10AEG-EC-R1 Pronet-20AEG-EC-R1 Pronet-50DEA-EC-R1 If anyone has the ESI files for these models or knows where I can download them, I would greatly appreciate your help. Thank you in advance!
    
    Last updated: 2025-09-26
    
    
      
        Post by monteta on Automation without UI
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Problem solved, Once the perform_network_scan() is done, y just had to recover the address and using set_gateway_and_address(). Now i'm looking how to deploy all my device's applications on the PLC, I guess it will looks like : for app in allapplication: with online.create_online_application(app) as onlineapp onlinedevice = onlineapp.get_online_device() online.set_default_credentials(x,y) try: onlineapp.login(OnlineChangeOption.Keep, False) except Exception as e: msg = str(e).lower() if "rescan" in msg : print("PLC service might be off") elif "targetdo" in msg: print("Bad credentials") else print(msg) else: onlineapp.create_boot_application()
    
    Last updated: 2025-09-29
    
    
      
        Post by mputaggio on Recipe Manager - RecipeManCommands, load & write wrong values, Bug?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, We encountered the same issues on both recipe library versions 4.2.0.0 and the newest 4.3.0.0. The Arrays of structs get saved correctly but loading them restores only some indexes, while others get lost or completely wrong. We have been using the same recipes for the last two years on recipe manager vers. 3.5.17 withoud issues. There also seems to be a different behaviour in vers. 4.3.0.0 but it's still incorrectly loading the recipes. Did you find any workaround or solution? Codesys version used: 3.5.19.50
    
    Last updated: 2023-12-15
    
    
      
        Post by nathant on Some visualization objects disappear when user is logged in?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I am deploying a webvisu on Codesys 3.5 SP 19.2 with legacy user management. I noticed that when a user logs in, some text and a rectangle I have (for aesthetics) both disappear. I made sure that none of the objects in question are linked to a state variable. Anyone know the cause/solution to this? Nothing crucial to the machine's function is lost, but it is a little annoying.
    
    Last updated: 2023-12-15
    
    
      
        Post by simover on TCP/IP client
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I want to send a string to a tics TCP/IP server. I got i working with the Net Base lib. for communication good with this tcis i need to by array of byte I want to include a string in the third position of the array TCIS_Send[1] :=254; //this valus is fix for evry communication TCIS_Send[2] :=80; //this valus is fix for evry communication TCIS_Send[3] := ; here I put my and my string is lik this 5806509-DRAP10#AB#3452302073 TCIS_Send[4] :=252; //this valus is fix for evry communication
    
    Last updated: 2023-12-18
    
    
      
        Post by svn123 on Can V3.5.19 and V2.3.9 be installed on same Windows10 PC without affecting each other?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi All, Seasons Greetings! I have Codesys V3.5.19 patch 5 installed on a Windows 10 PC. I have received a program which is for Codesys V2.3.9. First I tried to convert it but had many conversion errors. I am wondering if it is possible to install Codesys V2.3.9 on same PC without affecting the V2.5.19 installations. Is this possible? SVN123
    
    Last updated: 2023-12-28
    
    
      
        Post by usacodesysuser on How to connect serial devices ?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      @eschwellinger do you have any examples of using a USB barcode scanner? I have read through the forums here and I am unable to find how to get the barcode data to populate in a text field without having to first click into the text field to activate it. Is there a library that allows you to access the barcode data? I am really new to this in general any help is greatly appreciated, hopefully you have a pretty clear example
    
    Last updated: 2024-01-06
    
    
      
        Post by wehling-h on PI Input value
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi geoweil, have you tried to save changed values to remanent area or using a VAR RETAIN? After restart you have to initialize Counter with last remanent value. Depending on changes per cycle and the possibilitiy of your control unit to write remanent storage. Otherwise you need a buffering system to ensure save backup of last PI_Counter value. May you could read this Thread to get further help: https://forge.codesys.com/forge/talk/Engineering/thread/31e1c8349e/#bf48
    
    Last updated: 2024-01-12
    
    
      
        Post by wiresplus on Cannot get INT_TO_TIME working
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I have a simple TON timer. It is watching prime loss for a pump. The operator can set the delay via the HMI, it is an integer (seconds) As the TON uses milliseconds, we then multiply the entry by 1000 to get seconds. Seems simple, but... VAR PrimeTimer : TON; primetime : INT; END_VAR PrimeTimer(in:=State>0 AND FlowRate<MinimumFlow,pt:=INT_TO_TIME(primetime *1000)); For an entered 15 seconds (VAR primetime:=15;) the timer reads 49d17h2m26s760ms !!!! What am I doing wrong?
    
    Last updated: 2024-01-26
    
    
      
        Post by rpostwvu on Shared Memory Access Issues
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I got the shared memory example. I'm pretty sure I'm successfully created a memory space, CreateResult returns 18. szName:='CodesysDataShare'; hShm := SysSharedMemoryCreate(szName, 0, ADR(uxiSize), ADR(CreateResult)); I'm trying to access this memory with a C# application, but I get "Unable to Find Specified File". I suspect that Codesys and/or Visual Studio code alters the name I choose? Being in Windows, I cant find a way to see the mapped memory list. ~~~ using (var mmfRead = MemoryMappedFile.OpenExisting("CodesysDataShare",MemoryMappedFileRights.ReadWrite)) ~~~
    
    Last updated: 2024-01-29
    
    
      
        Post by jinlee on Multiple WebVisu
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, thank you for replying. Basically, I have a main visu with frame selection. So, under some condition the frame will switch to a specific frame. It used to be controlled by variable using "Switch frame variable". However, I realise it will change all the HMI screen at one time. So I removed the variable, and still looking for a solution to do that. Do you have any idea?
    
    Last updated: 2024-02-06
    
To search for an exact phrase, put it in quotes.  Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it.  Example: docs -help
To search on specific fields, use these field names instead of a general text search.  You can group with AND or OR.