Forge 🇬🇧
CODESYS Forge
talk
(Discussion)
Discussions about CODESYS Forge projects and features of the CODESYS Forge website
Last updated: 2026-06-15
Engineering 🇬🇧
CODESYS Forge
talk
(Discussion)
Discussions about the CODESYS Development System, IEC programming, CODESYS Professional Developer Edition
Last updated: 7 days ago
Request a dark mode for CODESYS
CODESYS Forge
talk
(Thread)
Request a dark mode for CODESYS
Last updated: 2026-01-21
Codesys ControlWinV3x64 with EtherCat Slave
CODESYS Forge
talk
(Thread)
Codesys ControlWinV3x64 with EtherCat Slave
Last updated: 2026-02-27
Post by jampid on Struct Literal
CODESYS Forge
talk
(Post)
Bonjour Davidmic, Il n'est pas possible d'associer une méthode à une fonction. Cela est possible sur les Blocs fonctions. En utilisant ta DUT MyStruct, je créé une fonction avec en entrée un tableau de structure :** FUNCTION F_F3 : REAL VAR_IN_OUT // bien définir un type IN_OUT IN_ptrINT: ARRAY[*] OF MyStruct; // la taille sera définie ultérieurement/ END_VAR VAR _di: DINT; // Index de parcours du tableau pour l'écriture dans les cases ENDVAR ============== //Programme F_F3: FOR _di := LOWER_BOUND(IN_ptrINT,1) TO UPPER_BOUND(IN_ptrINT,1) DO IN_ptrINT[_di].som:=IN_ptrINT[_di].a + IN_ptrINT[_di].b; END_FOR J'utilise ensuite cette fonction dans un POU Programme : PROGRAM Test_F_Fx VAR _aiTAB9:ARRAY[0..3] OF MyStruct := [(a := 1, b := 1.2), (a := 2, b := 2.2), (a := 3, b := 3.3), (a := 4, b := 4.4)]; END_VAR ** ==========** F_F3(IN_ptrINT:=_aiTAB9 ); Voilà l'idée pour avancer. Une autre idée, est d'utiliser les pointeurs ou les références. Bon développement!
Last updated: 2025-04-07
Post by kareem-pt on Velocity is too low even though correct value is reported
CODESYS Forge
talk
(Post)
Hello, I'm playing around with a single axis. I've setup scaling and set the drive to move 360 degrees in the commissioning tab. The axis does move 360 degrees, but it moves much slower than the 360 degrees per second that I set for the velocity. It seems to be about 3 times slower (taking about 3 seconds instead of 1). This is despite the set and actual velocity both being displayed as 360. The acceleration, deceleration and jerk are all set to very high values. I'm just running this on my PC, using demo mode (no license purchased yet). I've attached a video showing the problem. Does anyone know what the problem could be? Thanks
Last updated: 2025-06-06
Post by paro on Modbus Client Request Not Processed
CODESYS Forge
talk
(Post)
Hi, works in my case if I increase the timeout! to_udint(t#100ms) -> 100 -> 100us.. FUNCTION_BLOCK MODBUS_master_example_ST VAR initDone : BOOL := FALSE; aIPAddress : ARRAY [0..3] OF BYTE := [127,0,0,1]; clientTcp: ModbusFB.ClientTcp; // buffer to read input registers aDataInputRegisters : ARRAY[0..9] OF UINT; // some client requests clientRequestReadInputRegisters: ModbusFB.ClientRequestReadInputRegisters; xExecute: BOOL; uistart: UINT := 100; udiTimeout1: UDINT; END_VAR IF NOT initDone THEN initDone := TRUE; // configure clientTcp clientTcp(aIPaddr:=aIPAddress, uiPort:=502, udiLogOptions := ModbusFB.LoggingOptions.All); // configure clientRequestReadInputRegisters clientRequestReadInputRegisters(rClient:=clientTcp, uiUnitId:=1, udiTimeout:=1000000); // 1sec END_IF // call the client FB's clientTcp(); clientRequestReadInputRegisters(rClient:=clientTcp,xExecute := xExecute AND NOT clientRequestReadInputRegisters.xBusy ,uiStartItem:=uistart, uiQuantity:=3, pData:=ADR(aDataInputRegisters[0]));
Last updated: 2024-05-30
Connect Client Codesys With Server Java
CODESYS Forge
talk
(Thread)
Connect Client Codesys With Server Java
Last updated: 2023-08-17
How to integrate CoDeSys into another system?
CODESYS Forge
talk
(Thread)
How to integrate CoDeSys into another system?
Last updated: 2009-09-02
What touch panel for Codesys 2.3
CODESYS Forge
talk
(Thread)
What touch panel for Codesys 2.3
Last updated: 2012-02-09
CoDeSys SP Win V3 - Soft PLC Does not start.
CODESYS Forge
talk
(Thread)
CoDeSys SP Win V3 - Soft PLC Does not start.
Last updated: 2010-11-17
Download Codesys Program by external device
CODESYS Forge
talk
(Thread)
Download Codesys Program by external device
Last updated: 2016-12-29
Sudden Font size change in IDE, unusable CodeSys
CODESYS Forge
talk
(Thread)
Sudden Font size change in IDE, unusable CodeSys
Last updated: 2021-03-31
CANopen PDO Issue with Pressure Sensor in Codesys
CODESYS Forge
talk
(Thread)
CANopen PDO Issue with Pressure Sensor in Codesys
Last updated: 2024-10-22
Noob in Codesys and IFM CR7506...Output stay active
CODESYS Forge
talk
(Thread)
Noob in Codesys and IFM CR7506...Output stay active
Last updated: 2024-10-22
German word button on the codesys WebVisualization...
CODESYS Forge
talk
(Thread)
German word button on the codesys WebVisualization...
Last updated: 2012-04-03
data exchange at the end of each CoDeSys cycle
CODESYS Forge
talk
(Thread)
data exchange at the end of each CoDeSys cycle
Last updated: 2010-07-12
Codesys 2.3 versus 3.3 - need help
CODESYS Forge
talk
(Thread)
Codesys 2.3 versus 3.3 - need help
Last updated: 2009-06-18
Opening an Excel sheet using CoDeSys
CODESYS Forge
talk
(Thread)
Opening an Excel sheet using CoDeSys
Last updated: 2010-07-06
Codesys and smartphone (read and write)
CODESYS Forge
talk
(Thread)
Codesys and smartphone (read and write)
Last updated: 2012-01-14
Loading a project into PLC block without CoDeSys software.
CODESYS Forge
talk
(Thread)
Loading a project into PLC block without CoDeSys software.
Last updated: 2021-12-03
Detect CoDeSys runs in simulation mode
CODESYS Forge
talk
(Thread)
Detect CoDeSys runs in simulation mode
Last updated: 2021-12-30
CodeSys SP RTE and Moeller PS4-341MM1
CODESYS Forge
talk
(Thread)
CodeSys SP RTE and Moeller PS4-341MM1
Last updated: 2010-01-28
Exporting Array from Codesys to Text or Excel
CODESYS Forge
talk
(Thread)
Exporting Array from Codesys to Text or Excel
Last updated: 2018-10-10
Endless FOR Loop with CoDeSys 2.3.9.x
CODESYS Forge
talk
(Thread)
Endless FOR Loop with CoDeSys 2.3.9.x
Last updated: 2010-05-20
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.