Post by ahofer on ETHERCAT EK1100 und EL8601-8411
CODESYS Forge
talk
(Post)
Leider etwas verspätet erst mal danke für die Antwort und für die Info. Ich habe jetzt ein Upate vom EtherCAT Master gemacht. Die Klemme funktioniert in ihrer Standardeinstellung. Bei den PWM-Klemmen geht das Umstellen auf DO, aber den Zähler kann ich immer noch nicht einstecken.
Last updated: 2025-05-21
Post by avenue68 on REFERENCE TO in an array
CODESYS Forge
talk
(Post)
That's because the array only contains structures themselves, not references. It doesn't matter that what consists of each struectures unless they are not pointers.
Last updated: 2025-05-21
Post by abuckie on Edit library in project
CODESYS Forge
talk
(Post)
I am looking for the same thing, I am trying to edit a library I downloaded but I found that the functions are read only. The link above is broken, should I be looking somewhere like here? https://content.helpme-codesys.com/en/LibDevSummary/index.html
Last updated: 2025-05-22
Post by mariacugnier on Modbus TCP/IP having problems with global variables
CODESYS Forge
talk
(Post)
Are these variables already declared in the IO list? It looks like it's trying to create new variables instead of mapping them to the existing ones.
Last updated: 2025-05-22
Post by mondinmr on CIFX 50E-DP on Linux.
CODESYS Forge
talk
(Post)
We need to use two CIFX 50E-DP cards in two Linux PCs running CODESYS for Linux SL (the machines are x86). Has anyone experienced any issues? Do these cards work reliably under Linux?
Last updated: 2025-05-23
Post by bmatlove on Variable Length Array - Cannot mix variable and fixed length dimensions?
CODESYS Forge
talk
(Post)
Using Codesys 3.5.18.30 I am trying to work with an array of variable length in one dimension, but known in the other dimension. For example, using an array that represents a list of items, each with an attribute profile. I do not know how many items will be in the list, but I know that every item has 5 attributes, like size, weight, etc. Codesys does not seem to be able to accept this. I have referenced Data Type: ARRAY OF documentation page, which is not explicit if variable & fixed length array dimensions can be mixed. In the VAR_IN_OUT scope, I initially tried MY_ARRAY : ARRAY [*, *] OF REAL; which was no problem, of course. I then modified it to MY_ARRAY : ARRAY [*, 1..5] OF REAL; which throws C0006: ', or ]' expected instead of '..' among consequent downstream errors. I then used the Auto Declare -> Array Wizard, which accepted (asterisk)-(asterisk) and 1-5 for 2-dimensional lower and upper bounds. It output: MY_ARRAY: ARRAY[*..*, 1..6] OF INT; which throws the same error stream. What's the deal here? Is this possible?
Last updated: 2025-05-23
Post by shaunvdm on Canbus Slave SDO Read from Object
CODESYS Forge
talk
(Post)
Busy testing a solution to use Canbus Slave to replace a physical device and convert to Ethercat device but keep the Canbus Master in place. Master needs to Read SDO object 5FA2. In the Master PLC if i send the SDO with 8 bytes in message IE: 60B 40 A2 5F 00 00 00 00 00 i get my expected 58B 43 A2 5F 00 00 68 36 02 containing data back. Problem is if we issue a 4 byte command can send 60B 40 A2 5F. Surely the canbus slave should respond with a 58B 43 A2 5F 00 00 68 36 02 but it comes back as 80 A2 5F 00 00 00 00 08 - meaning this OBJECT does not exist. Is there a setting in the canbus slave driver for Canbus to allow the 4 byte command to read the SDO OBJECTS ?
Last updated: 2025-05-27
Post by laurits on Max lines of code, codesys CNC ?
CODESYS Forge
talk
(Post)
Hi, okay here's the project, it's a modified version of "CNC Example 10: Programming Dynamic CNC Paths", no need for G Code text file (i have also tried with G code text file, same problem) in "PROGRAM PLC_PRG" you can set bStart to true, and the program should start running, go to "PROGRAM CNC" and you can see axis moving. lrXpos := IoConfig_Globals.XAixs.fSetPosition; lrYpos := IoConfig_Globals.YAxis.fSetPosition; Now you can can change the number of movements in the the "PROGRAM PLC_PRG" From this number of movements in "program PLC_PRG" BUF : ARRAY[0..32010] OF SMC_GEOINFO; xp : ARRAY[1..32000] OF REAL; yp : ARRAY[1..32000] OF REAL; to this number to this number of movements BUF : ARRAY[0..132010] OF SMC_GEOINFO; xp : ARRAY[1..132000] OF REAL; yp : ARRAY[1..132000] OF REAL; Now if you start the program again you should see an error in the "sMC_Interpolator: SM3_CNC.SMC_Interpolator;" function block Let me know if you can not get it running.
Last updated: 2025-06-03
Post by durallymax on Making a Visu Element normally invisible and visible if variable is true
CODESYS Forge
talk
(Post)
You can write any expression that evaluates to TRUE/FALSE in that property, you can also call a method from the property.
Last updated: 2025-06-06
Post by ph0010421 on Codesys running in Docker on Linux OS
CODESYS Forge
talk
(Post)
Hello I need to make the Linux serial ports (ttymcx0, 1, 2 and 3) available to Codesys (Com1, 2...) Is there a guide? Is it something I do when I deploy the Codesys SL? thanks
Last updated: 2025-06-09
Post by eschwellinger on RaspberryPi 5 gateway problem
CODESYS Forge
talk
(Post)
Do you use the same type Raspberry PI64 SL in the device tree? Which version of the Pi package / Runtime do you use? 4.16.0.0?
Last updated: 2025-06-12
Post by timothyzalusky on Missing Device Descriptions in Repository
CODESYS Forge
talk
(Post)
For reference this is fixed by installing the new codesys install with a separate repository folder. Completely resolved. If anyone else sees this. I would like to know why the persistent devices repository folder does not properly retain between installs though.
Last updated: 2025-06-12
Post by timothyzalusky on Missing Device Descriptions in Repository
CODESYS Forge
talk
(Post)
For reference this is fixed by installing the new codesys install with a separate repository folder. Completely resolved. If anyone else sees this. I would like to know why the persistent devices repository folder does not properly retain between installs though.
Last updated: 2025-06-12
Post by timothyzalusky on Missing Device Descriptions in Repository
CODESYS Forge
talk
(Post)
For reference this is fixed by installing the new codesys install with a separate repository folder. Completely resolved. If anyone else sees this. I would like to know why the persistent devices repository folder does not properly retain between installs though.
Last updated: 2025-06-12
Post by tk096 on How to get the motor scaling value from code
CODESYS Forge
talk
(Post)
Hi, unfortunately, in Softmotion you have only access to the combined fraction - the scaling factor from user units to motor increments. It can be accessed using MC_ReadParameter with parameter number 1054. increments = user_unit_position * fScaleFactor
Last updated: 2025-06-13
Post by taoufikaoun on Profinet Simulator
CODESYS Forge
talk
(Post)
Hello, I am new to codesys i want to create 100% simulator profinet network only with virtual ethernet adapter it is possible. I want to use Codesys build in controller and device io for profinet. Thanks.
Last updated: 2025-06-20
Post by taoufikaoun on Profinet Simulator
CODESYS Forge
talk
(Post)
Hello, I am new to codesys i want to create 100% simulator profinet network only with virtual ethernet adapter it is possible. I want to use Codesys build in controller and device io for profinet. Thanks.
Last updated: 2025-06-20
Post by programmer on 3.5 P20 hangs - no response
CODESYS Forge
talk
(Post)
Hi, Is there a solution found for the problem described in first post? Any version above Codesys 3.5 P19 hangs during start up. It makes no difference whether I simply start Codesys or open a project directly. I'm using Windows 10 Home edition. Thanks!
Last updated: 2025-06-23
Post by eschwellinger on Deploying to raspberry pi 5 hangs
CODESYS Forge
talk
(Post)
..just use 'putty' ssh client on the virtual machine to login for a test to the pi. if this work it should work in CODESYS too.
Last updated: 2025-06-23
Post by tk096 on Cam Editor And Cam Problem
CODESYS Forge
talk
(Post)
Hi, in the XYVA compile format the editor is adding an additional point if the derivatives are jumping at this point. However, this should not change the path?
Last updated: 2025-06-30
Post by nielscho on Saving "Input/output names" in a DCF file
CODESYS Forge
talk
(Post)
Hello i have the same question but for Codesys 3.5. alternativley, could somebody name a Programm to create a DCF file out of an EDS? best regards
Last updated: 2025-07-02
Post by gabriela-g on Compiler errors not visible
CODESYS Forge
talk
(Post)
Hi, I have the same situation and I tried the advice from here, but didn't worked:my error messages are still not sowing up in the Messages window. Do you have any idea why?
Last updated: 2025-07-03
Post by canplum on StartTargetvisu failed with result: 12
CODESYS Forge
talk
(Post)
Does anybody know what this error means? StartTargetvisu failed with result: 12 My codesyscontrol is crashing always after 25 hours. I can't see why. The trace of too many files opened I already followed but couldn't find any error in my program. Cheers, CanBohr
Last updated: 2025-07-07
Post by blitz on SMC_CNC_INTERNAL_ERROR - SMC_ReadNCFromStream
CODESYS Forge
talk
(Post)
Hi. Has anyone managed to implement the MDI (Manual Data Input) functionality in CODESYS CNC? I'm using SMC_StringStream2 and SMC_ReadNCFromStream, but I'm getting the error: SMC_CNC_INTERNAL_ERROR. I'd really appreciate any suggestions beyond what's already available online.
Last updated: 2025-07-09
Post by ben1 on Login to Visu optional
CODESYS Forge
talk
(Post)
It sounds like you are trying to use the device user management, but you can use the visu user management found in the Visu Manager for this.
Last updated: 2025-07-10
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.