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 ahmed-abohelal on SysComRead Timeout Parameter
CODESYS Forge
talk
(Post)
Hello I was facing the same problem i have to increase the timeout since the unit looks like to be in us SysComread(hCom:=hCom,pbyBuffer := ADR(readBuffer[0]),ulSize:=128,ulTimeout:=3000000,pResult:= ADR(readRes));
Last updated: 2025-10-22
Post by gatto on Backtick identifiers
CODESYS Forge
talk
(Post)
Hello, I’m in Codesys 3.5.20.40 and I try to declare the variable ´var1´ but I get an error. here : https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_rules.html i read : Backtick identifiers By using backticks, characters can also be used in identifiers that are not normally permitted in identifiers, such as special characters. The acute accent character is used for backticks: ´ (Unicode: U+02CA) The use of backticks is recommended in order to be able to use the same identifiers in CODESYS as in other programming languages or documents, such as circuit diagrams. Any character may be used between two backticks, except line breaks and other backticks. Keywords are also allowed as identifiers between backticks. Examples: ´Variable+9´ ´INT´ The backticks are part of each identifier and therefore var1 and ´var1´ are two different identifiers. Example PROGRAM PLC_PRG VAR var1 : INT; ´var1´: INT; END_VAR var1 := var1 + 1; ´var1´ := 12; Are there any limitations or is something missing in my development environment?
Last updated: 2025-10-28
Post by kporter on SoftMotion, accessing PDO input data via object ref/pointer
CODESYS Forge
talk
(Post)
It looks like one can use the OutputData and InputData members of ETCSlaveStack: https://content.helpme-codesys.com/en/libs/EtherCATStack/4.2.0.0/EtherCATStack/ETCSlaveStack.html
Last updated: 2025-10-29
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 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
The element of type 'VisuFbElemImage' could not be updated. Reason: Index was outside the bounds of the array.
CODESYS Forge
talk
(Thread)
The element of type 'VisuFbElemImage' could not be updated. Reason: Index was outside the bounds of the array.
Last updated: 2025-11-03
Post by davidbo on How to stay in a method until something is finished.
CODESYS Forge
talk
(Post)
You never stay in a method. You need a block to do that. Something like: VAR button:BOOL:=FALSE; count:UINT:=0; END_VAR IF button THEN //read pressure count:=count+1; IF count>1 THEN button:=FALSE; count:=0; END_IF END_IF
Last updated: 2025-11-04
Post by davidbo on What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Post)
I have done: systemctl stop dhcpcd sudo ip addr flush dev eth0 sudo ip link set eth0 up but a call to SysSockSetIpAddressAndNetMask does not give the eth0 an IP address Why?
Last updated: 2025-11-04
Post by tobifenny on Modbus TLS Kommunikation
CODESYS Forge
talk
(Post)
Hier ist das handbuch: https://www.kostal-solar-electric.com/fileadmin/downloadcenter/kse/BA_KOSTAL_Interface_KSEM_DE.pdf Im Kapitel 1.3.2 ist das mit dem TLS beschrieben und in Kapitel 3.6.2 sind die Modbus-Register beschrieben.
Last updated: 2025-11-06
Post by kalmeyer on Stepper motor control with (SM_Drive_RaspStepper_direct)
CODESYS Forge
talk
(Post)
I have installed: SM_Drive_PosControl 4.18.0.0 and SM_Drive_RaspiStepper_Direct 0.0.0.7 and SM_Drive_RaspiStepper_PulsDir 0.0.0.7 And when I "Generate Code" I immediately get 6 errors (see attached file) What can I do?????
Last updated: 2025-11-09
Post by kalmeyer on Stepper motor control with (SM_Drive_RaspStepper_direct)
CODESYS Forge
talk
(Post)
Is there perhaps a place where I can see examples of programming with different instructions? This would be a great help. Maybe there are some places where ready-made programs are posted that can be downloaded and tested? /Klaus
Last updated: 2025-11-10
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 davidbo on What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Post)
I have now and it works. I had the idea that it had something to do with codesyscontrol.cfg, but where can I find a description of all the things you can set in codesyscontrol.cfg and its syntax?
Last updated: 2025-11-12
Post by jonasz on Deploy LicenseServer for Linux SL
CODESYS Forge
talk
(Post)
After carefully studying the documentation, I have a question: is a second hardware-independent time source required for the correct operation of the VirtualSafety system?
Last updated: 2025-11-17
Post by bruno-roth on 22kW Wallbox mit Modbus
CODESYS Forge
talk
(Post)
Hallo, das ist wohl das falsche Forum für Wallboxen :-) Aber ich empfehle dir Die GO-E-Charger die hat eine sehr offene Schnittstelle und API auch mit Modbus TCP https://github.com/goecharger/go-eCharger-API-v2/blob/main/modbus-de.md
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 jonasz on Deploy LicenseServer for Linux SL
CODESYS Forge
talk
(Post)
Thank you for your response. Is there documentation for the commands? I spent a lot of time trying to figure this out. I have a potato computer at home, so I'll have to test this later.
Last updated: 2025-11-21
Post by dinesh-vamtec on RETAIN PERSISTENT only stored at gracefully shutdown?
CODESYS Forge
talk
(Post)
I have an idea to save the persistent variable. Currently in testing processs. If testing completed I share the solution to you.
Last updated: 2025-11-26
Post by bertram on Installation IOT Libraries kann nicht installiert werden
CODESYS Forge
talk
(Post)
Ok, unter Administratives Ereignis gibt es viele (15)Einträge mit nahezu identischer Uhrzeit, sagen alles das selbe.. EreignisID=0, was Bedeutet das nun ?
Last updated: 2025-11-26
Post by bertram on Installation IOT Libraries kann nicht installiert werden
CODESYS Forge
talk
(Post)
Danke für den Hinweis. Neuer Versuch, anderer Rechner mit Windoew 10, das selbe Verhalten, keine Installation gefunden um das Package zu .... Im Eventlog hab ich nichts auffäliges Entdeckt, auf was genau muss ich Achten ??
Last updated: 2025-11-26
Post by timvh on Access Violation sherd memory
CODESYS Forge
talk
(Post)
Maybe it is better to use Interfaces to access the objects instead of pointers. But besides that, is "read_obj_ptr" a method? If yes, you need to call it, so add brackets behind the method call: read_obj_ptr();
Last updated: 2025-11-27
Post by gseidel on SMC_ERROR.SMC_AXIS_NOT_READY_FOR_MOTION when using Drive Virtual
CODESYS Forge
talk
(Post)
Hi ducng, you need to make sure that MC_Power.Status is TRUE before you give a rising edge to MC_MoveRelative.Execute. (This is the same for virtual and real axes). Best regards, Georg
Last updated: 2025-11-27
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.