Error result in simple ST 'IF Else' result
CODESYS Forge
talk
(Thread)
Error result in simple ST 'IF Else' result
Last updated: 2021-08-01
Invalid Result Package
CODESYS Forge
talk
(Thread)
Invalid Result Package
Last updated: 2023-01-25
_ -> Result 25? ERR_MEMORY_LOCK_FAILED
CODESYS Forge
talk
(Thread)
_ -> Result 25? ERR_MEMORY_LOCK_FAILED
Last updated: 2017-08-16
system command result
CODESYS Forge
talk
(Thread)
system command result
Last updated: 2014-11-03
Invalid result package
CODESYS Forge
talk
(Thread)
Invalid result package
Last updated: 2019-02-25
Dialog result
CODESYS Forge
talk
(Thread)
Dialog result
Last updated: 2022-08-26
StartTargetvisu failed with result: 12
CODESYS Forge
talk
(Thread)
StartTargetvisu failed with result: 12
Last updated: 2025-07-07
SINT / SINT into REAL - incorrect result
CODESYS Forge
talk
(Thread)
SINT / SINT into REAL - incorrect result
Last updated: 2018-10-10
Simulation mode - Invalid result package
CODESYS Forge
talk
(Thread)
Simulation mode - Invalid result package
Last updated: 2016-05-24
OPC UA Method - How to wait for result?
CODESYS Forge
talk
(Thread)
OPC UA Method - How to wait for result?
Last updated: 2025-04-02
Download/Changes to Raspberry Pi Codesys 4.4.0.0 invalid Packet result
CODESYS Forge
talk
(Thread)
Download/Changes to Raspberry Pi Codesys 4.4.0.0 invalid Packet result
Last updated: 2022-12-28
Am I crazy? A-B [REAL] give wrong result?
CODESYS Forge
talk
(Thread)
Am I crazy? A-B [REAL] give wrong result?
Last updated: 2017-09-28
Result of multiplication always 16 bits?
CODESYS Forge
talk
(Thread)
Result of multiplication always 16 bits?
Last updated: 2012-08-05
Raspberry Pi, cannot login, invalid result package
CODESYS Forge
talk
(Thread)
Raspberry Pi, cannot login, invalid result package
Last updated: 2022-11-03
Result of built-in MessageBox opened from a button
CODESYS Forge
talk
(Thread)
Result of built-in MessageBox opened from a button
Last updated: 2020-06-15
VisuDialogs, Numpad: Get result in IEC-code
CODESYS Forge
talk
(Thread)
VisuDialogs, Numpad: Get result in IEC-code
Last updated: 2021-05-31
Post by davidbo on Why does SysTimeRtcSet not set the clock on a Pi 4
CODESYS Forge
talk
(Post)
temp:=DT_TO_DWORD(newTD); result:=SysTimeRtcSet(ulTimestamp:=DWORD_TO_WORD(temp)); the result=0 which mean ok but the clock is not set
Last updated: 2025-06-27
Post by canplum on StartTargetvisu failed with result: 12
CODESYS Forge
talk
(Post)
Does anybody know what this error means? StartTargetvisu failed with result: 12 My codesyscontrol is crashing always after 25 hours. I can't see why. The trace of too many files opened I already followed but couldn't find any error in my program. Cheers, CanBohr
Last updated: 2025-07-07
Post by danwoodlock on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
Thank you for the recommendation! attached result of 'usname -a'
Last updated: 2023-09-13
Post by kumareasu on Start *.exe through PLC progem
CODESYS Forge
talk
(Post)
SysProcessExecuteCommand(pszComand:='start C:\Program Files\SharedMemory\SharedMemory.exe',pResult := ADR(Result)); the above statement hangs the PLC until I do cold reset
Last updated: 2024-04-17
Post by kumareasu on Start *.exe through PLC progem
CODESYS Forge
talk
(Post)
SysProcessExecuteCommand(pszComand:='start C:\Program Files\SharedMemory\SharedMemory.exe',pResult := ADR(Result)); the above statement hangs the PLC until I do cold reset
Last updated: 2024-04-17
Post by scarter on Import/Export PLCOpen xml Task Configuration
CODESYS Forge
talk
(Post)
I'm Having the same issue. If I highlight PLC Logic and import it erases everything else and replaces the Task config. If I highlight the Application I get the same result. Simple manual fix is click and drag the task config onto the origional Application, and delete the second one. Easy fix but not the expected result of importing task config.
Last updated: 2024-01-17
Post by timvh on Detect "Cancel" Press in FileOpenSave Dialog
CODESYS Forge
talk
(Post)
Maybe there is a better way, but a long time ago I created a test application that worked like this: With a button I opened the dialog and I added a "Input configuration - OnDialogClosed" "Execute ST-Code" action to this same button which called the following Function when the dialog was closed: F_OnFileDialogClosed(pClientData); Below this Function which handled the result: // This function is called from the visualization when the dialog is closed. FUNCTION F_OnFileDialogClosed : BOOL VAR_INPUT pClientData : POINTER TO VisuElems.VisuStructClientData; END_VAR VAR dialogMan : VisuElems.IDialogManager; FileOpenCloseDialog : VisuElems.IVisualisationDialog; result : VisuElems.Visu_DialogResult; _sFileName : STRING(255); END_VAR // the DialogManager is provided via the implicitly available VisuManager dialogMan := VisuElems.g_VisuManager.GetDialogManager(); IF dialogMan <> 0 AND pClientData <> 0 THEN FileOpenCloseDialog := dialogMan.GetDialog('VisuDialogs.FileOpenSave'); // gets the FileOpenSave dialog IF FileOpenCloseDialog <> 0 THEN result := FileOpenCloseDialog.GetResult(); // gets the result (OK, Cancel) of the dialog IF result = VisuElems.Visu_DialogResult.OK THEN // Original code gvlFile.FileListProvider(); _sFileName := CONCAT(gvlFile.FileListProvider._stDirectory, gvlFile.FileListProvider.stFile); // do something with this file name... END_IF END_IF END_IF
Last updated: 2023-09-19
Post by vipul on Multicast udp
CODESYS Forge
talk
(Post)
Hi, Good afternoon can anybody help me with UDP Multicast code. I am not able to send or recieve data when code is dumped on linux device. Below is my code. Declaration: PROGRAM udp_multicast VAR oneTimeFlag :UINT :=0; state: INT:=0; driver: UDP.UDPDriver; //port : UDP.Port;//moved to GVL src_ipAddr_ud: UDINT; src_ipAddr_st:STRING := '192.168.127.155';//'192.168.1.155';//ipms ip address dst_ipAddr_ud:UDINT; group_ipAddr_st:STRING := '239.1.5.10'; //group_ipAddr_ud:UDINT; result: SysTypes.RTS_IEC_RESULT; //result of recieve function. bind: UDINT; //result of binding. resultCreate:SysTypes.RTS_IEC_RESULT;//result of port creation. timer:BLINK; temFlag :INT:= 0; post:INT :=0; checksumFunc:checksumXor; localStringBuf:STRING[500]; chksum:BYTE; dataBuffer:POINTER TO BYTE; checksumString:ARRAY[0..5] OF BYTE; recvSize:__XINT; errorCode:UDINT; joinGroupErrorCode:UDINT; END_VAR ************8 Implementation: IF oneTimeFlag <> 1 THEN oneTimeFlag:=1; resultCreate := driver.CreatePort(ADR(GVL.port)); src_ipAddr_ud := UDP.IPSTRING_TO_UDINT(sIPAddress:= src_ipAddr_st); GVL.group_ipAddr_ud := UDP.IPSTRING_TO_UDINT(sIpAddress:= group_ipAddr_st); GVL.port.IPAddress := src_ipAddr_ud; GVl.port.ReceivePort:= GVL.src_port;//port on which messages are expected. GVl.port.SendPort := GVL.dest_port; GVl.port.OperatingSystem := 0; //0- any system GVL.port.Socket :=3; //3- socket type is multicast bind := GVL.port.Bind(udiIPAddress:=src_ipAddr_ud,); GVl.port.JoinGroup(udiGroupAddress:= GVL.group_ipAddr_ud,udiInterfaceAddress:= src_ipAddr_ud,eLogCode=>joinGroupErrorCode); END_IF timer(ENABLE:=TRUE,TIMELOW:=T#100MS,TIMEHIGH:=T#100MS); IF timer.OUT = TRUE THEN GVL.port.Send(udiIPTo:=GVL.group_ipAddr_ud,GVL.dest_port,pbyData:=ADR(GVL.writeData),diDataSize:=SIZEOF(GVL.writeData)); ELSE SysMemSet(ADR(GVL.readData[0]),0,SIZEOF(GVL.readData)); result := GVl.port.Receive(ADR(GVL.readData),diDataSize:=SIZEOF(GVL.readData),udiIPFrom=>dst_ipAddr_ud,diRecvSize=>recvSize,eLogCode=>errorCode); SysMemMove(ADR(GVL.readDataBuf[0]),ADR(GVL.readData[0]),SIZEOF(GVL.readData)); END_IF post:=LEN(GVL.readDataBuf);
Last updated: 2024-01-14
Post by nicopolux on Profinet RPC-call error
CODESYS Forge
talk
(Post)
Hello everyone Since I have installed Codesys 3.5.20sp2 I cannot get the profinet features working again. Now I get RPC Blocked during device scan (see attached file) and when online I get RPC-call error (see attached file). I run Codesys on the last version of Windows 11, Profinet ports have been added to Firewall rules, and even with disabled Firewall I get same result I really never seen that before Same result using another PC I already spent 2 days to find the issu without any success, I would appreciate some help, thank you! Nico
Last updated: 2024-08-22
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.