Post by eschwellinger on Two OneWireMaster on one Raspberry PI 5
CODESYS Forge
talk
(Post)
the project has only one OneWire Master - so if you add the setting "PlaceholderFilePath.2=/sys/devices/w1_bus_master2, $OneWire2$ to the config file it will fail and the Ethercat task will be blocked by the OneWire Master readings?
Last updated: 2025-10-21
Post by eschwellinger on Two OneWireMaster on one Raspberry PI 5
CODESYS Forge
talk
(Post)
Could you check the taskcycle time in the taskmonitor (online monitor) - do you really see this 1s on Ethercat Task? Need to check this on my hardware but will take some time...
Last updated: 2025-10-21
Post by alimans on Unrecoverable SoftMotion state after switch to PreOp
CODESYS Forge
talk
(Post)
Hi Kim, Hi eschwellinger, how you could solve the problem? I am using Codesys V3.5.19.60 and I still have the same problem. It will work only after a warm/cold restart. Thank you in advance for your kind help.
Last updated: 2025-10-22
Post by eschwellinger on License Reset Request β CODESYS Control Win V3 Standard L
CODESYS Forge
talk
(Post)
Please write these kind of request to 'my question' in the CODESYS Store. please do not use ticket and softcontainer numbers here.
Last updated: 2025-10-23
Post by kporter on Exception with ReadNbrSlaves function
CODESYS Forge
talk
(Post)
I've been playing with the code using the Windows soft master and the ReadNbrSlaves function block seems to work here: https://content.helpme-codesys.com/en/libs/EtherCATStack/4.8.0.0/EtherCATStack/pou-ETCMasterStack/DynamicConfig/fld-DynamicConfig.html
Last updated: 2025-10-31
Post by farren on How to stay in a method until something is finished.
CODESYS Forge
talk
(Post)
I know I'm thinking about this wrong -- too many decades of procedural and event-driven programming and only a few months of PLC ST programming...... I've created a visualization with a button that when pushed calls a method. I want the method to take a pressure reading, wait one minute and then take another pressure reading. I'm looking for leaks. I'm using TON for the delay. It seems like what is happening is that the method gets called once and it takes the first reading and starts the TON. But then execution continues, leaves that method call, and the second reading never happens. I can force the method to keep running until the whole thing is done with a While loop, but I understand that is considered BAD in PLC programming. If it push the button again to call the method again, it picks up where it left off and if the timer is complete then it runs the remaining code. How do I keep that method running until it is complete with just one call without using a while loop that ties up the PLC for a minute? Thanks! -Farren
Last updated: 2025-10-31
Post by gseidel on SMC_FB_WASNT_CALLED_DURING_MOTION when enable MC_MoveRelative
CODESYS Forge
talk
(Post)
Hi ducng, please make sure to call all Motion-FBs in the EtherCAT task. In your case, the PLC_PRG should be below the EtherCAT task, not the MainTask. Best regards, Georg
Last updated: 2025-11-03
Post by gcodejedi on The element of type 'VisuFbElemImage' could not be updated. Reason: Index was outside the bounds of the array.
CODESYS Forge
talk
(Post)
Hello, I am experiencing this exact same issue. Were you able to get yours resolved? If so, would you mind sharing the solution you discovered? Thanks!
Last updated: 2025-11-03
Post by nano on What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Post)
have u turned on the Ip-Setter in codesyscontrol.cfg? [SysSocket] Adapter.0.Name="eth0" Adapter.0.EnableSetIpAndMask=1
Last updated: 2025-11-11
Post by eschwellinger on Stepper motor control with (SM_Drive_RaspStepper_direct)
CODESYS Forge
talk
(Post)
.. try to use this projectarchive for the Stepper. In case you search for SoftMotion Examples: "c:\Program Files\CODESYS 3.5.21.X\CODESYS\CODESYS SoftMotion\Examples\Tutorial\"
Last updated: 2025-11-11
Post by shaunvdm on OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
CODESYS Forge
talk
(Post)
Hi All, We downgraded Codesys LAD/FB in the IDE to version 4.5 and it works. Codesys Version 4.6 lad/fb not working. Was the way we fixed this. Kind Regards Shaun
Last updated: 2025-11-17
Post by tristan on Textfield display problem
CODESYS Forge
talk
(Post)
Hello everyone, I have a little problem with textfield display. When I put a solid backgroud, no problem. But when I put it to invisible, some strange things appears with the text. Do you have this kind of issues ? Thanks a lot, Tristan
Last updated: 2025-11-20
Post by timvh on Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
CODESYS Forge
talk
(Post)
Maybe check: - The library manager, are you maybe missing some libraries - Tools - CODESYS installer: update the CODESYS Visualization and Visualization support - Project - Project environment: maybe you need to update the visualization profile
Last updated: 2025-11-27
Post by gseidel on STEPPER CODESYS SOFTMOTION_DRIVE
CODESYS Forge
talk
(Post)
Hi kalmeyer, I would recommend to have a look at these examples. They come with a project and a description: https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_basic_examples_single_axis.html. Best regards, Georg
Last updated: 2025-11-28
Post by eschwellinger on Accessing parameters from a structure or function block with the web interface
CODESYS Forge
talk
(Post)
yes, but you could use a demo project in the analyzer to check other types: https://analyzer-eu.automation-server.com/help/en/tags this should work.
Last updated: 2025-12-02
Post by mbart on VAR_INFO from inside of a FB to get info on the instance.
CODESYS Forge
talk
(Post)
I experienced the same problem: using __VARINFO is working only in PRG context, while it crashes if used inside Function Blocks. I would really appreciate if they would fix this issue
Last updated: 2025-12-04
Post by kenth1973 on MC_Phasing state explenation
CODESYS Forge
talk
(Post)
Hi George - ok thanks - but who created this FB in the first place? Could you lead me to the creator company? Is CODESYS not the old S3 that created this FB? :-)
Last updated: 19 hours ago
Post by davidbo on *EXCEPTION* [ProsessorLoadWatchdog] codesys 3.5.11.40
CODESYS Forge
talk
(Post)
Under Application->"Task Configuration" you can find your task double click on that and you will see a fane to the right. You find the watchdog enable switch it off or increase the time
Last updated: 2025-11-17
Post by tjacks on Opc UA Data Source Client Browse Error in Codesys HMI
CODESYS Forge
talk
(Post)
Codesys V3.5 SP21 Patch 3 Codesys HMI 3.5.21.30 I'm trying to connect to an OPC UA server on a Kuka robot controller using Codesys HMI's data source manager. I get through the login phase and the client browses most of the data structure on the server but errors out toward the end with a generic: Error while browsing the client, Failed with service result: BadUnexpectedError. If I complete the data source setup and try to update variables, I get the attached stack trace for the error. I've tried several different endpoint and security options. Most get me through the login but all error out while browsing. UA Expert happily connects and browses with the same configuration. I've connected this same version of Codesys to TwinCAT OPC UA servers and Siemens PLC OPC UA servers. Any ideas on what may be causing the generic BadUnexpectedError during OPC UA server browse?
Last updated: 2025-11-17
Post by grepoo on DataSource CodesysApp V3
CODESYS Forge
talk
(Post)
Hi, trying to create a datasource in appV3 but it returns error code 259 (not nearer specified) everytime, no matter the device i am using. Any idea of what it might signify ?
Last updated: 2025-11-19
Post by jv-certhon on Io driver Scan functionality
CODESYS Forge
talk
(Post)
Hello, Codesys IDE is 3.5.21.30 IoDrvBase is: 3.5.17.8 I am working on implementing Codesys on our I/O product line, using the IO driver examples, and the Linux UDS socket approach. I have sucessfully created an implemetation where I have a Device with mutiple slots, on which I can plug modules. These modules represent our IO modules, and communication is successful. (For this question the assumtion can be made that Codesys commucates with 1 'master' device, which handles further communcation with the IO modules. For the next part of the question it can be assumed that the Master device has a list of which modules are attached/available) I'm now trying to implement the 'Scan for Devices...' feature, but I'm completetly lost on what to do once the IoDrvScanModules method is called in my IoDrvFB. I'm guessing that the ppConnectorList has to be filled with the found devices, but I have no idea if that is the correct approach. And Codesys is not triggering my breakpoints in the method, which makes things more difficult. I hope someone could provide some examples or guidance on what steps I should take to implement the scan feature. Thanks in advance.
Last updated: 2025-11-26
Post by sb879 on Non-formal invocation of function blocks in CODESYS
CODESYS Forge
talk
(Post)
Is it possible to do non-formal invocation of function blocks in CODESYS? I get an error when I try, see the attached pic. Also attached a pic from IEC 61131-3 describing non-formal invocations.
Last updated: 2025-12-04
Post by sb879 on Non-formal invocation of function blocks in CODESYS
CODESYS Forge
talk
(Post)
Is it possible to do non-formal invocation of function blocks in CODESYS? I get an error when I try, see the attached pic. Also attached a pic from IEC 61131-3 describing non-formal invocations.
Last updated: 2025-12-04
Post by somlioy on Non-formal invocation of function blocks in CODESYS
CODESYS Forge
talk
(Post)
No that is not possible for function blocks, although it is possible to that with methods and functions as you see in your second pic.
Last updated: 2025-12-05
Post by unusual-data on C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
CODESYS Forge
talk
(Post)
you can try to disable "Visualization Manager - Settings - Support client animations and overlay of native elements " selection" It worked for me, thank you.
Last updated: 8 hours ago
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.