Post by alexgooi on Codesys KNX implementation
CODESYS Forge
talk
(Post)
Dear Forum, For anyone interested we have solved this problem. Before we were using a KNX TP/IP interface, now we are using a KNX TP/IP router, and it works like a charm now.
Last updated: 2026-03-04
Codesys KNX implementation
CODESYS Forge
talk
(Thread)
Codesys KNX implementation
Last updated: 2026-03-04
Post by gseidel on Absolute movement controlled by an external encoder.
CODESYS Forge
talk
(Post)
Hi polyautomacao, basically, there are two ways to approach this. My first choice would be to check whether your servo drives supports an external encoder, connect the encoder to the servo and configure the servo accordingly. In this case, you would not need to change anything in the CODESYS application. If that is not an option, you could use SM_DrivePosControl, a drive that closes the position loop in the PLC, and feed it with the external encoder positions. See (0). You can switch your servo drive to velocity control mode (SMC_SetControllerMode) and use SMC_FollowVelocity to apply the fSetVelocity of the SM_DrivePosControl to your servo. The MC_MoveAbsolute can then be performed on the SC_DrivePosControl Hope that helps. (0) https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_example_poscontrol.html Best regards, Georg
Last updated: 2026-03-04
Version management
CODESYS Forge
talk
(Thread)
Version management
Last updated: 2026-03-04
Post by oemcba on Editor FIND highlight color
CODESYS Forge
talk
(Post)
Today is 2026, and we still have the same issue since 2017, anyone have the answer? i'm using V3.5 SP18 P4+ from festo, thanks in advance... @rudolsto @r.evbatyrov @cole @mahmutonx @root @codesys-com
Last updated: 2026-03-06
Issue calling methods in CFC
CODESYS Forge
talk
(Thread)
Issue calling methods in CFC
Last updated: 2026-03-06
Reliable HIV Viral Control with Efavir 600 mg Tablets
CODESYS Forge
talk
(Thread)
Reliable HIV Viral Control with Efavir 600 mg Tablets
Last updated: 2026-03-07
Ultrasonic sensor HC SR04
CODESYS Forge
talk
(Thread)
Ultrasonic sensor HC SR04
Last updated: 2026-03-08
Control Omron G5 servo drive in Torque mode
CODESYS Forge
talk
(Thread)
Control Omron G5 servo drive in Torque mode
Last updated: 2026-03-08
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
"Invalid Value" for Variables at Runtime
CODESYS Forge
talk
(Thread)
"Invalid Value" for Variables at Runtime
Last updated: 2026-03-09
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
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.