Post by noah on "Invalid Value" for Variables at Runtime
CODESYS Forge
talk
(Post)
Hello, I also have the problem that suddenly all variables in my project were invalid and shown as "???" during runtime. Could you manage to fix the problem in the last 4,5 years ;) ? Because I tried everythin to fix it but nothing worked. I feel like maybe this is a bug. Thank you.
Last updated: 2026-03-09
Escape character behavior for hex values in string -- what gives?
CODESYS Forge
talk
(Thread)
Escape character behavior for hex values in string -- what gives?
Last updated: 2026-03-09
Post by gordonkeller360 on Escape character behavior for hex values in string -- what gives?
CODESYS Forge
talk
(Post)
I have a program which sequentially places byte representations of characters from a string into an array. FUNCTION_BLOCK MoveBytesFromString VAR_IN_OUT abRxBuf: ARRAY [0..79] OF BYTE; END_VAR VAR testString : STRING := '$0A$R$L$TTesting,123...$94$86$0A'; iCount: DINT; END_VAR ---------------------------------------------------------------------------------------- // clear the buffer MEM.MemFill(ADR(abRxBuf), 80, 0); FOR iCount := 0 TO LEN(testString) - 1 DO // account for undesired null terminator of string abRxBuf[iCount] := testString[iCount]; END_FOR Escaped characters, like $T, $N, etc. work just fine, and so do their hex representation counterparts ($09, $0A, etc). However, when I put something like $94, I get a set of nonsense values... see image attached after one spin of the program. Could someone explain to me what is happening here? I'll continue to investigate...
Last updated: 2026-03-09
Post by yannickasselin on CloseTargetVisu
CODESYS Forge
talk
(Post)
To shutdown the TargetVisu: Add the VisuElemBase library to your project then call VisuElemBase.Visu_PRG.RemoveAllTargetVisuClients(); Exemple: PROGRAM PLC_PRG VAR xShutdownTargetVisu: BOOL; END_VAR ---------------------------------- IF xShutdownTargetVisu THEN xShutdownTargetVisu := FALSE; VisuElemBase.Visu_PRG.RemoveAllTargetVisuClients(); END_IF I tried calling RemoveAllTargetVisuClients() directly from a button mouse click event but it makes the Visu crash. So better using the code above and just set xShutdownTargetVisu to TRUE from the button. Works fine for me. To start the TargetVisu: From a cmd prompt. This will start the TargetVisu C:\Program Files\CODESYS\CODESYS Control RTE3>VisualClientController.exe --application=Application --flags=1 You can then place a .bat file on the desktop and put this inside: CD "C:\Program Files\CODESYS\CODESYS Control RTE3" VisualClientController.exe --application=Application --flags=1 exit Double clicking the .bat file will start the TargetVisu. You may need to replace the Application name by your own application name. Good to know: In the cmd above, if you replace --flags=1 by --flags=2, it will shutdown the TargetVisu.
Last updated: 2026-03-11
Post by mascara on CloseTargetVisu
CODESYS Forge
talk
(Post)
Thank you, it worked perfectly.
Last updated: 2026-03-11
Fail communication between CODESYS and Fuxa SCADA via OPC UA
CODESYS Forge
talk
(Thread)
Fail communication between CODESYS and Fuxa SCADA via OPC UA
Last updated: 2026-03-12
CloseTargetVisu
CODESYS Forge
talk
(Thread)
CloseTargetVisu
Last updated: 2026-03-11
Post by eschwellinger on Editor FIND highlight color
CODESYS Forge
talk
(Post)
To change the color of search result markings (the "find color") in the CODESYS Text Editor using Themes, follow these steps: Go to the menu: Tools → Options. In the Options dialog, select the Text editor category. Switch to the Theme tab. Here, you can select your desired color theme for the text editor. The available color schemes (themes) are stored in the installation directory in the Themes folder. To specifically adjust the color for search result markings, go to the Text Area tab within the Text editor options. Here, you can customize the Selection color – Inactive parameter, which determines the color used to highlight search results. Changing the theme will apply a new set of color settings, including those for selections and search highlights. If you want further customization, you can manually edit or create your own theme files in the Themes folder of your installation directory Example "c:\Program Files\CODESYS 3.5.21.50\CODESYS\Themes\myDefault.editortheme" https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_dlg_options_text_editor.html
Last updated: 2026-03-12
Editor FIND highlight color
CODESYS Forge
talk
(Thread)
Editor FIND highlight color
Last updated: 2026-03-12
Post by fpawlak on How to register own component - CMAddComponent() or CMAddComponent2()
CODESYS Forge
talk
(Post)
Hi, so really oneone has no idea which way is correct one? Or maybe both are okey if they work for me?
Last updated: 2026-03-13
How to register own component - CMAddComponent() or CMAddComponent2()
CODESYS Forge
talk
(Thread)
How to register own component - CMAddComponent() or CMAddComponent2()
Last updated: 2026-03-13
Post by mjam04 on AM243 LaunchPad as PROFINET Device with CODESYS – RPC Aborted error when scanning devices
CODESYS Forge
talk
(Post)
Attachment
Last updated: 2026-03-13
AM243 LaunchPad as PROFINET Device with CODESYS – RPC Aborted error when scanning devices
CODESYS Forge
talk
(Thread)
AM243 LaunchPad as PROFINET Device with CODESYS – RPC Aborted error when scanning devices
Last updated: 2026-03-13
Post by gordonkeller360 on RS232 Communication in CODESYS Control RTE V3
CODESYS Forge
talk
(Post)
Hi -- Did you have any luck porting this over to RTE? I have a similar situation, where I am using CAA SerialCom and it works fine with Control Win, but I can't open the port when using in RTE. Any advice helps. Thanks!
Last updated: 2026-03-14
RS232 Communication in CODESYS Control RTE V3
CODESYS Forge
talk
(Thread)
RS232 Communication in CODESYS Control RTE V3
Last updated: 2026-03-14
Unable to compare projects containing alarm manager 4.5.0.0
CODESYS Forge
talk
(Thread)
Unable to compare projects containing alarm manager 4.5.0.0
Last updated: 2026-03-15
Post by jeffersonhui on Buttons with rounded corners in flat style
CODESYS Forge
talk
(Post)
Hi, I am also having this problem. I want to check that buttons with rounded corners is still not possible?
Last updated: 2026-03-16
Buttons with rounded corners in flat style
CODESYS Forge
talk
(Thread)
Buttons with rounded corners in flat style
Last updated: 2026-03-16
Software for 6DOF robot with gcode.
CODESYS Forge
talk
(Thread)
Software for 6DOF robot with gcode.
Last updated: 2026-03-17
Post by sahin6033 on DSE M840-001-02: DSEServiceTool transfers CodesysApp.pkg successfully, but device shows “No application loaded
CODESYS Forge
talk
(Post)
Hi, I am trying to load a test application into a DSE M840-001-02 display, but after reboot the device still shows: “No application loaded” I would like to understand whether the problem is in my project, the package creation process, or firmware/runtime compatibility. Hardware Device: DSE M840-001-02 Firmware used: M840 MKII Firmware File v4.1.2 Software CODESYS V3.5 SP12 (32-bit) DSE CODESYS Package v1.5.44 DSEServiceTool What I did Created a new empty Standard Project Selected target/template: M840-02 V4.1 Used a minimal ST program only: PROGRAM PLC_PRG VAR xAlive : BOOL := TRUE; END_VAR Confirmed: project builds PLC_PRG is assigned to MainTask created Boot Application Generated CodesysApp.pkg Put the M840 into bootloader mode Sent the package using DSEServiceTool DSEServiceTool result Transfer completes successfully and I get: connection accepted 100% download package ACK <status>OK</status> ** Example log:** Searching for controllers.... sendPackageToController: waiting for incoming data connection... sendPackageToController: connection accepted... <status>Downloading</status> <percent>20</percent> <percent>40</percent> <percent>90</percent> <percent>100</percent> sendPackageToController: sent 112cb8 bytes OK Package ...\CodesysApp.pkg transferred to controller c0a80101 OK sendPackageToController: package ACK <status>OK</status> Actual result After reboot, the display still shows: “No application loaded” Additional issue I also saw earlier At one stage I also had these fatal errors in CODESYS: [FATAL ERROR] Unresolved reference: 'IOMGRLOCKENTER' [FATAL ERROR] Unresolved reference: 'IOMGRLOCKLEAVE' I checked library versions and adjusted them to: IoDrvBase = 3.5.5.0 IoStandard = 3.5.10.0 Also, I am using CODESYS SP12, which I understand is the correct version for DSE M840. My questions If DSEServiceTool shows Status OK and package ACK, but the device still says “No application loaded”, does that mean: the .pkg was transferred but not accepted as a valid application? the package was built incorrectly? the boot application / runtime / firmware versions are still mismatched? What is the correct procedure to generate CodesysApp.pkg for M840-02 V4.1? Is there any known compatibility issue between: DSE CODESYS Package 1.5.44 M840 MKII Firmware 4.1.2 CODESYS 3.5 SP12 Has anyone successfully loaded even a minimal empty test project into M840-001-02, and if so, what exact versions/process did you use? Any help would be appreciated.
Last updated: 2026-03-17
Forge 🇬🇧
CODESYS Forge
talk
(Discussion)
Discussions about CODESYS Forge projects and features of the CODESYS Forge website
Last updated: 2026-03-17
DSE M840-001-02: DSEServiceTool transfers CodesysApp.pkg successfully, but device shows “No application loaded
CODESYS Forge
talk
(Thread)
DSE M840-001-02: DSEServiceTool transfers CodesysApp.pkg successfully, but device shows “No application loaded
Last updated: 2026-03-17
Automation Server 🇬🇧
CODESYS Forge
talk
(Discussion)
The Industry 4.0 administration platform for users and operators of CODESYS compatible controllers
Last updated: 2026-03-18
Post by pernockham on Gateway in China - "Gateway not connected"
CODESYS Forge
talk
(Post)
Finally sorted (unit in China). The problem was related to dns-setting of the gateway/host. Connection (also inside china) tested/works.
Last updated: 2026-03-18
Gateway in China - "Gateway not connected"
CODESYS Forge
talk
(Thread)
Gateway in China - "Gateway not connected"
Last updated: 2026-03-18
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.