Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Talk

FAQ - Frequently asked Questions about CODESYS
FORUM LATEST POST # TOPICS
Engineering πŸ‡¬πŸ‡§

Discussions about the CODESYS Development System, IEC programming, CODESYS Professional Developer Edition

CSV Utility SL
by kuegerls
16 minutes ago
5066
Runtime πŸ‡¬πŸ‡§

Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms

Ethercat bus on Beckhoff CX with Codesys for Linux
by walkercope
4 minutes ago
2108
Visualization πŸ‡¬πŸ‡§

Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu

Change the Opening Position of the Dialog using VU.FbOpenDialog
by TimvH
4 days ago
889
Motion πŸ‡¬πŸ‡§

Realizing single or multi axis motion control, CAM, CNC and Robotic applications

Softmotion not working with simulation mode
by totorovic
4 hours ago
439
Codesys V2.3 πŸ‡¬πŸ‡§

Forum about V2.3

No gateway with the given settings could be found
by pasillalej
4 days ago
2158
Deutsch πŸ‡©πŸ‡ͺ

German forum

AG Abzug bei Codesys 3
by koehler
5 days ago
4440
Automation Server πŸ‡¬πŸ‡§

The Industry 4.0 administration platform for users and operators of CODESYS compatible controllers

File transfer via visu and codesys automation server
by eschwellinger
2024-03-11
30
Forge πŸ‡¬πŸ‡§

Discussions about CODESYS Forge projects and features of the CODESYS Forge website

Could not be resolved - Library error
by ademarvribeiro
2024-04-29
172

Recent Activities

    CODESYS Forge

  • walkercope posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Has anyone figured out a way to use the ethercat bus on a beckhoff CX using codesys running on linux? Using ethercat on the native NICs works fine but I get a "packet could not be sent" error when trying to scan the ethercat bus device. Errors and hardware in attached image.

  • kuegerls posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, I want to read a CSV file using the CSV Utility SL library, but I encounter an 'invalid_handle' error during initialization. What could be the cause? For my test program see the screenshot. I have purchased a license, and it is also installed on my PLC. Thank you in advance. Best regards, Stefan.

  • rajesh008 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    The β€œ_AB AT %IW0:word; ” if i called the value then im getting this error. like below "the declartion of the variable with an address assignment cannot be used in a PRG or GVL with the attribute 'subsequent'" This is happening when the GVL is selected in Redundancy Configuration. if i un-select the address declaration is working fine

  • wildcard posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi, does anyone has a solution for this issue. I've the same problem. I've implemented a very simple client based on the Modbus Examples and connected the soft PLC to a Modbus Simulator. PROGRAM ModbusClient VAR initDone : BOOL := FALSE; errorID : ModbusFB.Error; client : ModbusFB.ClientTCP; timeout : UDINT := 500000; replyTimeout : UDINT := 200000; aUINT : ARRAY [0..8] OF UINT; clientRequestReadHoldingRegisters : ModbusFB.ClientRequestReadHoldingRegisters; clientRequestsCnt : UINT := 0; clientRequestsProcessCnt...

  • totorovic posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Good morning, I think that the mode Simulation does not support the Softmotion functionnality because it runs the CODESYS process with normal priority wich is not a good thing for real-time behavior. If you want to test your PLC project, please use a Codesys Control Softmotion (and your computer must have the Ethercat driver installed) or much easier, download your code into the C6 Smart. BR

  • dalfaro21 posted a comment on discussion Motion πŸ‡¬πŸ‡§

    I have a KEB combivis studio software running codesys and I want to make some moves but softmotion is not working on my laptop I hope you can help me!

  • corriibme posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have been trying to set an array value to a JSON structure of this form: {"key": [1,2,3,4]} While I have been able to create the key and set its value to an empty array, I've not had any luck in putting any value in that array. objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindex); iValue2: ARRAY[0..3] OF INT:= [1,2,3,4]; The two lines of code above produce {"key6": []} . The second line essentially...

  • k2saki posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I'd like to use same code/project in different devices. (RPi, PLC) I change some lines in some POU before compiling. (array size, file path, etc ) My question is How to define pragma that effects all ST-POU in project. Is it possible ? I've read this. https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_pragma_conditional/

  • ioannis-a posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have the same issue. Is there any solution?

  • corriibme posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello @florian, Could you please help with how to set an array value? I've been trying to use the with the setKeyWithArray method which creates the key with an empty array value. But I have been unable to set items in this array? objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindexx); //iValue: array[0..n] of int; Best regards