Post by trusty-squire on STRING conversions to DWORD
CODESYS Forge
talk
(Post)
I don't fully understand the issue, but if the encoding is a problem you can try testing with WSTRING datatype instead of STRING. https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_wstring.html
Last updated: 2025-01-30
Post by runtimevictor on virtual plc vPLC configure nics
CODESYS Forge
talk
(Post)
Hello, When I add 2 nics in vPLC this happens to me..., why is it? If I just put one of the two NICs, the vPLC runtime instance starts running correctly...
Last updated: 2025-02-02
Post by timvh on Device diagnosis ( EtherCAT IO card )
CODESYS Forge
talk
(Post)
You can get the state by just using the name of your node (same name as in device tree): VAR etcState: IoDrvEthercatDriverLib.ETC_SLAVE_STATE; END_VAR etcState := EJ1100.wState; Alternatively, you can iterate through the device tree to get the status of all (Ethercat) nodes. See here an example (no guarantee it works, just give as suggestion): PROGRAM P_IO_State VAR CONSTANT uiMAX_NR_OF_TERMINALS : UINT := 100; END_VAR VAR // general device diagnosis // can only be used when the Device - PLC Settings - Advanced settings - enable diagnosis for devices is enabled // this will add the DED library coupler: DED.INode; terminal: DED.INode; aDeviceState: ARRAY[0..uiMAX_NR_OF_TERMINALS - 1] OF DED.DEVICE_STATE; uiTerminalCount : UINT; uiIndex : UINT; // for each terminal check if it implements device diagnostics xQueryResult: BOOL; itfDevice : DED.IDevice2; xDiagAvailable: BOOL; eError: DED.ERROR; xEverythingOK: BOOL; END_VAR uiTerminalCount := 0; // start at the top of the device tree with the first EtherCAT coupler coupler := EtherCAT_Master.FirstChildNode; WHILE coupler <> 0 DO // for each coupler that is found start at the first terminal terminal := coupler.FirstChildNode; WHILE terminal <> 0 AND uiTerminalCount < uiMAX_NR_OF_TERMINALS - 1 DO // for each terminal that is found get the status through the device diagnosis interface xQueryResult := __QUERYINTERFACE(terminal, itfDevice); IF xQueryResult THEN aDeviceState[uiTerminalCount] := itfDevice.GetDeviceState(xDiagnosisInfoAvailable => xDiagAvailable, eError => eError); uiTerminalCount := uiTerminalCount + 1; END_IF terminal := terminal.NextSiblingNode; END_WHILE coupler := coupler.NextSiblingNode; END_WHILE uiIndex := 0; xEverythingOK := TRUE; WHILE uiIndex < uiTerminalCount DO IF aDeviceState[uiIndex] <> DED.DEVICE_STATE.RUNNING THEN xEverythingOK := FALSE; EXIT; END_IF uiIndex := uiIndex + 1; END_WHILE
Last updated: 2025-02-06
Post by mubeta on Profibus DP master with EL6731 and automatic restart of slaves
CODESYS Forge
talk
(Post)
Solved. The scanner don't like the default DP address 0. It wok properly with PB address different than 0.
Last updated: 2025-02-09
Post by timvh on "Do you really want to perform" dialog boxes
CODESYS Forge
talk
(Post)
Double click on the device (communication settings). At the top of this Window, go to Device -Options. Disable the option "Confirmed online mode".
Last updated: 2025-02-15
Post by eschwellinger on Virtual Control SL Profinet connection
CODESYS Forge
talk
(Post)
means not licensed demo mode.. use the Licenserver on the host and apply a license and add the Ip of the license server then it will be green.
Last updated: 2025-02-28
Post by fabiodasilveira on PLC Shell commands via ST Code
CODESYS Forge
talk
(Post)
Thank you, Bingo. Your idea of adding the change to the start up process works. However, I am still intrigued with the fact that SysSockSetIPAddress(strEthernetPort:= '0', strIPAddress:= '192.168.2.12') is different from PLC Shell (setipaddr 0 192.168.2.12).:-(
Last updated: 2025-03-04
Post by felipemsgarcia on DELTA PLC AS228T
CODESYS Forge
talk
(Post)
Hello, You can create a program in ST for AS228T using either DELTA ISPSoft or DELTA DIADesigner. The only DELTA PLCs/Controllers I know of compatible with CODESYS are AX-3 and AX-8 series. You will need to install the proper packages, though. Cheers!
Last updated: 2025-03-07
Post by julian123 on CodeSysControlWinV3x64
CODESYS Forge
talk
(Post)
Hello mos89p, I had the same problem. There is a lot of threads about this, but not one up to date. Your solution worked and I was finally able to use my software again. Thank you!
Last updated: 2025-03-12
Post by xlfll on How to use libdoc to implement libraries in multiple languages
CODESYS Forge
talk
(Post)
po file to generate translation file mo, how to mo file into lmd file into the compilation library? This is not clearly described in the codesys help. Does anyone know? codesys help:https://content.helpme-codesys.com/en/LibDevSummary/localization.html#deployment-of-translated-documents
Last updated: 2025-03-13
Post by libichj on Raspberry Pi: List of available drivers / libraries
CODESYS Forge
talk
(Post)
Is it possible to renew the urls in your post? Especially fo "Arduino UNO IO Device Description and Library"? Thank you for reply.
Last updated: 2025-03-15
Post by timvh on SysProcessCreate2 on Linux runtime
CODESYS Forge
talk
(Post)
Maybe it is better to use the functionality of the Extension Package: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_extension.html https://content.helpme-codesys.com/en/CODESYS%20Examples/_ex_extension_package.html
Last updated: 2025-03-17
Post by eschwellinger on Codesys Network driver install for Codesys Control RTE x64
CODESYS Forge
talk
(Post)
is this latest Control RTE Version? Strange is that the component does not occure in the list of component to add.
Last updated: 2025-03-18
Post by vnlgomez5 on Toolbox missing item
CODESYS Forge
talk
(Post)
Wow, spent a lot of time trying to figure out what my problem was, I was seeing the same limited Toolbox. Thank you so much.
Last updated: 2025-03-25
Post by dkugler on Statusabfrage EtherCAT Device
CODESYS Forge
talk
(Post)
das könnte noch eine Möglichkeit sein, siehe Codesys Hilfe: https://content.helpme-codesys.com/en/libs/IODrvEtherCATDriver/Current/IoDrvEtherCAT.html#chained-list-for-checking-of-all-slaves
Last updated: 2025-04-17
Post by altus22 on Type SM3_Drive is not equal to type SM3_Drive
CODESYS Forge
talk
(Post)
Another way to resolve this is to set Codesys to use a specific version of the offending library under Placeholders in the Library Manager.
Last updated: 2025-04-17
Post by jschu on Switch visualization style at runtime
CODESYS Forge
talk
(Post)
Hello , will this be changed in an upcooming version? The current method is to use all the color Variables for buttons and object as changeable variables but the amount of work for this results in a bad cost-benefi ratio.
Last updated: 2025-05-15
Post by avenue68 on REFERENCE TO in an array
CODESYS Forge
talk
(Post)
That's because the array only contains structures themselves, not references. It doesn't matter that what consists of each struectures unless they are not pointers.
Last updated: 2025-05-21
Post by mariacugnier on Modbus TCP/IP having problems with global variables
CODESYS Forge
talk
(Post)
Are these variables already declared in the IO list? It looks like it's trying to create new variables instead of mapping them to the existing ones.
Last updated: 2025-05-22
Post by mariacugnier on Reading Devices ComState
CODESYS Forge
talk
(Post)
Does anyone know how to access the ModbusTCPSlave_Diag.ComState without declaring each one by the device name? I attached them to an array but since I may have dozens of devices this is still a bad solution.
Last updated: 2025-05-22
Post by mariacugnier on Reading Devices ComState
CODESYS Forge
talk
(Post)
Does anyone know how to access the ModbusTCPSlave_Diag.ComState without declaring each one by the device name? I attached them to an array but since I may have dozens of devices this is still a bad solution.
Last updated: 2025-05-22
Post by canplum on Codesys 3.5.21 fails to copy file to USB
CODESYS Forge
talk
(Post)
Hello Dave_t, thank you for your reply but the modifications of the config files are already done. Unfortunatealy with no success until now. Cheers, canplum
Last updated: 2025-05-26
Post by testyhalftime on Version management
CODESYS Forge
talk
(Post)
Hi Suyash! Stick to the IDE version used to create the project, and use Library Manager to fix version mismatches. Disable auto library updates and keep a record of working versions for stability. https://forge.codesys.com/forge/talk/Engineering/thread/0a4c242ab9/Italian Brainrot Clicker
Last updated: 2025-05-28
Post by josul on Web Client HTTPS Communication Issue
CODESYS Forge
talk
(Post)
Web Client Library Documentation Company: 3S - Smart Software Solutions GmbH Title: Web Client Version: 1.0.1.7 Categories: Application|Utils Namespace: WEB_CLIENT Author: 3S - Smart Software Solutions GmbH Placeholder: WebClient I encountered an issue using this library above. Note it is now part of Codesys IIoT Libraries SL in the form of Web Client SL, but I am not using this version. I was sending Content-Type: application/json, HTTP POST using a HTTPS URL. No issue observed initially, successful operation. At some point operation stopped and the codesyscontrol.log file started to accumulate errors: ERROR: TlsCreateContext2: Failed to save context. An application reset failed to resume operation and I was unable observe any TCP connection forming to a destination port 443. The error appeared as a TCP_INIT error. I can find no details as to what may have happened or why a reset of the PLC application did not resume operation. Testing with a curl operation proved to be successful, so I am confident there was no fundamental networking issue preventing a TCP connection forming. The solution was to reboot the hardware itself, but this is not satisfactory in the long term. Is there any description of the TLS error I received? Is there any suggestion here that there might be an issue with certificates? Any advice or information is appreciated.
Last updated: 2025-06-05
Post by onstage on Update Raspberry Pi option is missing under Tools menu
CODESYS Forge
talk
(Post)
The logger at the bottom of the deprecated RPi tool was quite useful, where can it be found now?
Last updated: 2025-06-11
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.