Post by attarzade on Servo motor as an slave and AC motor as an Mster
CODESYS Forge
talk
(Post)
Hello, I would like to control a servo motor via EtherCAT as a slave axis, and have it follow a master axis that is driven by a Control Techniques C200 AC drive (ethercat communication).Could anyone help me with how to achieve this setup? I use codesys version 3.5.20 and crevis Ethercat cards. AC drive is master axis and Servo drive is slave axis Thanks in advance
Last updated: 2025-07-14
Post by jeroenaero on Autostart Targetvisualization 4.16.0.0 doesn't work on Linux device
CODESYS Forge
talk
(Post)
Hi, How can we configure autostart of TargetVisualization on the remote device? The device is a Raspberry PI CM4 with PIXEL Desktop on display. I installed Targetvisu for Linux SL 4.16.0.0 on it. After each restart of the Raspberry PI CM4, we have to start Targetvisu fot Linux SL manually. i tried the step on this page: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_target_visu_for_linux.html but i don't get it working
Last updated: 2025-07-24
Post by ivan-g on MODBUS
CODESYS Forge
talk
(Post)
Hi There, I took over a project from a colleague (in GTB) who left the company. When I took over his project, it wouldn't compile because some libraries were missing. I managed to recover quite a few libraries, but I can't find the library that contains the block functions shown in the image. Here are a few examples: Fb_RegMel_ISO Fb_DefModbus FbDecalConsSalSO Fb_Autor_FreeCool_CTA_C I'm a little stuck at the moment, so if you see a Facebook post that speaks to you, don't hesitate to get in touch! Thank you in advance for your help.
Last updated: 2025-08-05
Post by ivan-g on MODBUS
CODESYS Forge
talk
(Post)
Hi There, I took over a project from a colleague (in GTB) who left the company. When I took over his project, it wouldn't compile because some libraries were missing. I managed to recover quite a few libraries, but I can't find the library that contains the block functions shown in the image. Here are a few examples: Fb_RegMel_ISO Fb_DefModbus FbDecalConsSalSO Fb_Autor_FreeCool_CTA_C I'm a little stuck at the moment, so if you see a FB that speaks to you, don't hesitate to get in touch! Thank you in advance for your help.
Last updated: 2025-08-05
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 davidbo on All the things needed for anonymous login to OPC UA
CODESYS Forge
talk
(Post)
When you have a deep object structure where not all values are not exposed to OPC UA, the top object will not have a V check mark but be filled fully out. In that case CODESYS do not always registrate changes to inner object. Solution set a V in the checkbox of the top object, build, download. Now you can browse, but all values in the top object will be selected, then you can deselect the ones you don't want, build, download and it works
Last updated: 2025-09-10
Post by nha451 on EIP Scanner not receiving data from adapter
CODESYS Forge
talk
(Post)
Hello, I have an EtherNet IP adapter (GoPxL) running with a virtual PLC. I have successfully connected the adapter with green icons next to it. On WireShark I can see the data coming from GoPxL but on CODESYS it shows up as all 0. My firewall is turned off and I have enabled the device to always update variables. I tested my set up with Profinet and I can receive the data. Please let me know if you have any suggestions!
Last updated: 2025-09-12
Post by gunstr on CODESYS control on RPi starts, shortly runs, then exits
CODESYS Forge
talk
(Post)
The problem has been resolved. Two findings are described below for future reference. The new RPi hw delivered during August 2025 has a MAC address from a new vendor series that is not supported by old runtimes. 4.17.0.0 or above is required. 4.17.0.0 does not pick up the correct architecture during installation and aarch64 has to be manually configured either in the GUI under operations or in /etc/codesyscontrol/CODESYSControl_User.cfg under the [CmpRasPi] section.
Last updated: 2025-09-16
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 esther on subdevicesCollapsed attribute in deviceDescriptor
CODESYS Forge
talk
(Post)
I was trying to use subdevicesCollapsed attribute in device descriptor in order to not expand the subdevices when a new device with subdevices is inserted in the device tree. I use this as follows:<fixed subdevicescollapsed="true">. But it seems it doesn`t work. I am ussing Codesys v3.5 SP16 Patch4. Is anything wrong with this? Or am I mistaken with the use of this attirbute?</fixed>
Last updated: 2025-10-01
Post by gseidel on MC_MoveAbsolute: C0138: No matching 'FB_Init' method found for instantiation of SMC_MoveAbsRelPerformerImpl [ERROR]
CODESYS Forge
talk
(Post)
Hi imdatatas, sorry to hear this issue caused so much overhead for you. Frankly, I'd expect a project created with an older version to compile without errors after opening > it with the latest Codesys version and updating all libraries. Yes, that is a reasonable expectation. I tried a few times but could not reproduce the problem. In case you run into the problem again, we can investigate the issue if you send a project archive. Best regards, Georg
Last updated: 2025-10-02
Post by arvindkumar on Wago plc not going back to RUN Mode after Power failure
CODESYS Forge
talk
(Post)
Hi im using wago pfc750-8207 plc and my programming software was codesys v2.3, im facing some issue in my plc after power failure my plc not going back to run mode sometimes, i did sourecode download, boot application created and still facing this issue, out of 10 power failure 8 times its going to run mode some time its missing to go run mode and only sys indication is in on condition Kindly please help me.
Last updated: 2023-12-15
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 spiessli on Softmotion axis to CANopen Maxon IDX drive
CODESYS Forge
talk
(Post)
Hi, I want to use Maxon IDX drives for some simple robotic applications. I have used Maxon's Epos for generating a DCF file to import in Codesys (attached). Then I can add the IDX motors under a CANopen manager in the device tree. Unfortunately, I cannot add a "softmotion axis" to the IDX motors. Now I am wondering, why? Without being able to attach a softmotion axis to the device in the device tree, the use of the motor is greatly reduced... spiessli
Last updated: 2024-01-05
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 timvh on Minimum system requirements for codesys control standard S
CODESYS Forge
talk
(Post)
It depends on your application which CPU speed and RAM size you need. If you think the Control Standard S license is sufficient then my guess is that your selected PC has no problem running your application. There are no more "hardware" based single licenses available anymore, only application based licenses. So this "Raspberry Pi" restriction for home automation is not applicable anymore. For more information see: https://store.codesys.com/en/howto_applicationbasedlicenses
Last updated: 2024-01-14
Post by andrax on Stop Programm geladen Ausnahmefehler
CODESYS Forge
talk
(Post)
Hallo, ich habe seid neustem ebenfalls dieses Problem auf den Raspberry. Codesys 3.5.18 Nach dem Download geht die SPS in STOP und es blinkt schwerer Ausnahmefehler. Der Fehler kommt sporadisch und ist nicht reproduzierbar. Es passiert beim kompletten Download, aber auch bei Änderungen. Wie kann ich den Fehler eingrenzen? Nachtrag: Wenn der Fehler kommt, ist die Runtime auf dem Raspberry nicht mehr ansprechbar. Der Raspberry selbst schon. Für einen neuen Download muss ich den Raspberry neu starten. Das selbe ist auch in der Programmierumgebung, die Software hängt sich auf.
Last updated: 2024-01-15
Post by sturmghost on Find visualization elements that require a lot of computing time
CODESYS Forge
talk
(Post)
I found out that the Codesys simulation mode is not good to measure performance. As soon as I upload the code onto the hardware PLC I can see that my visu-task needs around 60 ms to complete. I'm wondering if there is a possibility to find out which visualization/visualization element takes a lot of computing time? Then I would look for ways to decrease the long computing time.
Last updated: 2024-01-22
Post by mejak on Raspberry Pi USB HID RFID Reader - read ID in plc program
CODESYS Forge
talk
(Post)
Hello, I have an RFID reader that is detected as a keyboard. While looking for information, I came across examples using visualization. I would like to read the ID without visualization or external code in python, only in PLC. I found on the forum that you can try reading directly from potru /dev/... https://forge.codesys.com/forge/talk/Runtime/thread/24b3527036/ How to read values directly in codesys? Or maybe there is another solution? Best Regards
Last updated: 2024-01-25
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 thomas-moba on "sudo"-Befehle über die Funktion "SysProcessExecuteCommand2"
CODESYS Forge
talk
(Post)
Hello, I need to execute "sudo" commands via CoDeSys 3.5 SP 19 P5 using the "SysProcessExecuteCommand2" function. Commands without sudo are no problem, but as soon as sudo is used in a .sh or a single command, it does not work. Command=AllowAll is entered under "SysProcess" in CODESYSControl.cfg. Nevertheless it does not work. Does anyone know what the problem could be? Greetings, Thomas
Last updated: 2024-02-01
Post by thomas-moba on "sudo"-Befehle über die Funktion "SysProcessExecuteCommand2"
CODESYS Forge
talk
(Post)
Hallo Herr Schwellinger, vielen Dank für die Antwort. Leider hat auch das weglassen des "sudo"-Befehls kein Erfolg. Folgendes passiert: Bild 1: Befehl in der Konsole eingegeben ohne sudo; Uhrzeit wird nicht gestellt (keine Berechtigung). Bild 2: Befehl mit sudo ausgeführt, Uhrzeit wird gestellt. Bild 3: Befehl ohne sudo von CoDeSys aus ausgeführt; Rückgabewert gibt die Uhrzeit an, die eingestellt werden sollte, Uhrzeit wird jedoch NICHT eingestellt. Haben Sie noch eine Idee was es sein könnte?
Last updated: 2024-02-02
Post by elektron785 on CAN-Bus in Demo-Version
CODESYS Forge
talk
(Post)
Hallo, wie verhält es sich mit der Demo-Version und Datenübertragung z.B. via CAN-Bus. Der Bus läuft, das Device befindet sich im Zustand "Operational" aber es werden keine Daten von der Soft-SPS empfangen. Ich benutze aktuell eine nicht lizenzierte Version von CoDeSys Control for Linux ARM64SL. Normalerweise sollte die Demo-Version uneingeschränkt laufen - also kann ich davon ausgehen, dass es sich um einen Programmierfehler handelt oder ist die Feldbusfunktion ohne Lizenz doch in irgendeiner Form eingeschränkt verfügbar (außer dem 30 Minuten Limit nach Reboot)?
Last updated: 2024-02-06
Post by suthesan on Error when I go online on Simulation or PLC
CODESYS Forge
talk
(Post)
Hello I not sure if I made this topic under the right category. But I have a error, when I try to run a simple code on simulation or PLC. I have also tried to make a fresh project. I am testing the PLC and want to see if there is some way I can make an actuator run. Please help by looking at the picture, Iam stuckd and I don't know how to fix it.
Last updated: 2024-02-07
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.