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

Internal error:System.NullReferenceException: The object reference was ...
by mogam
3 hours ago
5087
Runtime πŸ‡¬πŸ‡§

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

KNX SL on stock PFC200 firmware
by eschwellinger
23 hours ago
2110
Visualization πŸ‡¬πŸ‡§

Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu

New License not working.
by eschwellinger
10 hours ago
891
Motion πŸ‡¬πŸ‡§

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

Automation Builder V2.5 EtherCAT CM579 Master Scan for devices - >No gat...
by fugtwad
4 days ago
441
Codesys V2.3 πŸ‡¬πŸ‡§

Forum about V2.3

The current baud rate could not be determined in CR0020 IFM with mainten...
by engrahman
3 days ago
2162
Deutsch πŸ‡©πŸ‡ͺ

German forum

Bacnet-Properties werden nicht aktualisiert
by jozef
1 day ago
4448
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

Safety
by lzml
7 hours ago
174

Recent Activities

    CODESYS Forge

  • ndzied2 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Ignore, was duplicate post. Can't find a way to delete it.

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

    Hi everyone, I have a my App that reads values from a shared memory than 2 variables x,y were calculated. here as you can see in my code: PROGRAM PLC_PRG VAR szName : STRING := '/SM'; ( Name of the shared memory.) uxiSize : __UXINT := 646 * 2 * SIZEOF(REAL); ( Size of the shared memory. ) hShm : RTS_IEC_HANDLE; ( Handle to the shared memory ) pStart : POINTER TO REAL; ( Pointer to the first element in the memory ) pData : POINTER TO REAL; ( Pointer, which is incremented until the last sign in the...

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

    Hi everyone, I have a my App that reads values from a shared memory than 2 variables x,y were calculated. here as you can see in my code: PROGRAM PLC_PRG VAR szName : STRING := '/SM'; ( Name of the shared memory.) uxiSize : __UXINT := 646 * 2 * SIZEOF(REAL); ( Size of the shared memory. ) hShm : RTS_IEC_HANDLE; ( Handle to the shared memory ) pStart : POINTER TO REAL; ( Pointer to the first element in the memory ) pData : POINTER TO REAL; ( Pointer, which is incremented until the last sign in the...

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

    This is a consequence of how computers store floating point numbers. 0.1 cannot be exactly represented in a computer. This is not a CoDeSys thing. Here is a link to a converter to show you the exact value that is represented when you use a REAL data type (which is a 32 bit float). https://baseconvert.com/ieee-754-floating-point If you really need to keep track of 0.1 increments. use INT OR DINT and then add 1 each time and assume that there is one decimal place.

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

    This is a consequence of how computers store floating point numbers. 0.1 cannot be exactly represented in a computer. This is not a CoDeSys thing. Here is a link to a converter to show you the exact value that is represented when you use a REAL data type (which is a 32 bit float). https://baseconvert.com/ieee-754-floating-point If you really need to keep track of 0.1 increments. use INT OR DINT and then add 1 each time and assume that there is one decimal place.

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

    Hello everybody I have two of these EtherCat CiA402 stepper driver from Leadshine: https://www.leadshine.com/product-detail/EM3E-556E.html I want to controll them. I already have implemented them in Codesys with Softmotion. I see the position, the velocity and the status word so I can read everything. See picture 1. But when I want to write something like MC_Power or MC_MoveAbsolut with the SM3_Basic library it wont work and with the MC_Reset POU it shows: "SMC_R_DRIVE_DOESNT_ANSWER". See picture...

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

    Thanks Edwin. I have reviewed the example and I'm doing basically the same when calling the methods. The recipe files are in the right directory. Everything looks okay but simply it doesn't work. May migrating to Codesys 3.5.20 will solve this?

  • lzml posted a comment on discussion Forge πŸ‡¬πŸ‡§

    I have a problem with a project that uses EtherCAT Safety. The project is developed with CODESYS version 3.5.19.20, runtime 3.5.18.30, safety CPU EL6900 4.3.1.0, TCEL6900FBS 3.5.1.10, IODrvEL6900 4.3.1.0, IODrvEtherCAT 4.1.0.0. The safety project works correctly, but when I download the PLC project for modifications, the ESM objects are no longer aligned with the states inside the safety program. Specifically, inside the safety program, they are seen as true, while outside the safety program, the...

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

    does this recipe example help you here? https://forge.codesys.com/prj/codesys-example/home/Home/ https://forge.codesys.com/prj/codesys-example/recipe-manageme/home/Home/ and additional keep in mind that all files which are generated / or read should be exist in the iecfilepath this means: for Windows (Control Win as example) c:\ProgramData\CODESYS\CODESYSControlWinV3x64\268E8ADF\PlcLogic for Linux /var/opt/codesys/PlcLogic

  • eschwellinger eschwellinger posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    please use 'my question' in the CODESYS Store to ask for support