Talk

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

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

Display minutes as hours & minutes
by nano
5 hours ago
5088
Runtime πŸ‡¬πŸ‡§

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

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

Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu

Table How to set row number from 1 ( not from 0)
by k2saki
10 seconds ago
892
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
5 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
2 days 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
1 day ago
174

Recent Activities

    CODESYS Forge

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

    In Codesys visu, Table row number always start from 0. How do I set row number from 1 ?

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

    hey time := INT_TO_TIME(minutes100060);

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

    Hello, I have a counter that increments an INT value once per minute I want to display this value in Minutes until 60, then Hours/Minutes thereafter on the HMI Codesys V3.5 SP16 I can divide the minutes by 60 to get hours, but then the minutes is still more than 60. Example: a process has run for 350 Minutes. I need to display "5 Hours 50 Minutes" But if it's only been 45 Minutes, I don't want "0 Hours 45 Minutes" , just "45 Minutes"

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

    Hello, I have a counter that increments an INT value once per minute I want to display this value in Minutes until 60, then Hours/Minutes thereafter I can divide the minutes by 60 to get hours, but then the minutes is still more than 60. Example: a process has run for 350 Minutes. I need to display "5 Hours 50 Minutes"

  • 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...