Search talk: WHILE END_WHILE

 
<< < 1 2 3 4 .. 10 > >> (Page 2 of 10)

Loading image while loading data from a file CODESYS Forge talk (Thread)
Loading image while loading data from a file
Last updated: 2011-04-18

variable is no valid assignment target error while compiling CODESYS Forge talk (Thread)
variable is no valid assignment target error while compiling
Last updated: 2023-06-23

Error while trying use python with arg '--scriptdebugger ' CODESYS Forge talk (Thread)
Error while trying use python with arg '--scriptdebugger '
Last updated: 2023-06-30

Error while using UpdateConfiguredIPSettings to change IP address CODESYS Forge talk (Thread)
Error while using UpdateConfiguredIPSettings to change IP address
Last updated: 2024-02-19

Problem while updating to new runtime 4.11.0.0 CODESYS Forge talk (Thread)
Problem while updating to new runtime 4.11.0.0
Last updated: 2024-03-18

Error while using Codesys SP19 Patch 4 on Windows 11 CODESYS Forge talk (Thread)
Error while using Codesys SP19 Patch 4 on Windows 11
Last updated: 2024-03-26

I have errors while building the project CODESYS Forge talk (Thread)
I have errors while building the project
Last updated: 2024-10-15

enabling OPC UA connectivity while using motion control SM3_basic library gives build error CODESYS Forge talk (Thread)
enabling OPC UA connectivity while using motion control SM3_basic library gives build error
Last updated: 2018-08-22

Getting SMC_ERROR 34 SMC_AXIS_NOT_READY_FOR_MOTION, while the axis should be ready for motion CODESYS Forge talk (Thread)
Getting SMC_ERROR 34 SMC_AXIS_NOT_READY_FOR_MOTION, while the axis should be ready for motion
Last updated: 2023-02-27

Codesys v3.5 SP4 Patch 1 pbF: Internal error while opening archive with projects.open_archive() CODESYS Forge talk (Thread)
Codesys v3.5 SP4 Patch 1 pbF: Internal error while opening archive with projects.open_archive()
Last updated: 2021-06-08

Visualizations in "POUs" throws exception, while under "Device/PLC Logic/Application" they do not CODESYS Forge talk (Thread)
Visualizations in "POUs" throws exception, while under "Device/PLC Logic/Application" they do not
Last updated: 2022-04-20

WAGO PLC GOES IN ERROR WHILE BOOTING BECAUSE OF PERSISTENT VARIABLE CODESYS Forge talk (Thread)
WAGO PLC GOES IN ERROR WHILE BOOTING BECAUSE OF PERSISTENT VARIABLE
Last updated: 2019-11-22

SERVIVE NUMBER-131,ERROR NUMBER -50 while creating Boot proj CODESYS Forge talk (Thread)
SERVIVE NUMBER-131,ERROR NUMBER -50 while creating Boot proj
Last updated: 2012-07-06

Can't link process data variables to IO from a positionsensor while using a demo soft PLC CODESYS Forge talk (Thread)
Can't link process data variables to IO from a positionsensor while using a demo soft PLC
Last updated: 2022-03-04

Error while processing the visualization: Client id not present or no longer valid CODESYS Forge talk (Thread)
Error while processing the visualization: Client id not present or no longer valid
Last updated: 2024-08-21

Post by jari-koivuluoma on JSON_Utilities_SL JSONFileWriter error NULL_POINTER CODESYS Forge talk (Post)
FB jsonFileWriter gives a NULL_POINTER error, why? JSONByteArrayWriter works fine so the JSONData FB should be fine. The device is CODESYS Control Win V3 x64 in simulation mode. Codesys version is V3.5 SP16 Patch 5 JSON_Utilities_SL version is 1.3.0.0 Src: ST_TestStruct1a; TXT: WSTRING(10000); MakeJSON : BOOL := TRUE; SrcJSONData: JSON.JSONData; jsonFileWriter : JSON.JSONFileWriter; IF MakeJSON THEN MakeJSON := FALSE; // Struct data to JSONData FB F_TestStructToJSON(ADR(Src),ADR(SrcJSONData)); // Writing to file jsonFileWriter( xExecute := TRUE, sFileName := 'c:\JSONTEST\JSON.txt', eEncoding := JSON.Encoding.UTF_16, xAsyncMode := TRUE, jsonData := SrcJSONData ); // Waiting to finish WHILE jsonFileWriter.xBusy DO ; END_WHILE // To text jsonArrayWriter( xExecute := TRUE, pwData := ADR(TXT), udiSize := SIZEOF(TXT), jsonData := SrcJSONData, xAsyncMode := FALSE, ); END_IF
Last updated: 2023-09-08

Post by dkugler on Webvisu client connection monitoring CODESYS Forge talk (Post)
you can give this code snippet a try. It's extracted and simplyfied from my code: Install VisuElemBase lib if not installed yet. Execute in visu task: VAR pClientData : ARRAY [-1..100] OF POINTER TO VisuElemBase.VisuStructClientData; END_VAR VisuElemBase.g_ClientManager.BeginIteration(); pClientData := VisuElemBase.g_ClientManager.GetNextClient(); WHILE pClientData <> 0 DO pClientData[pClientData^.GlobalData.GlobalClientID] := pClientData; END_WHILE You have to make shure every no longer updated pointers in the array have to be deleted and no longer used by your code! Usage of this pointer access at your own risk :-) Works with SP16. From SP17 and newer there will be warnigs etc. using this solution as I remember. It will be great, if Codesys publishes a example or give a hint how to accesse this client values with the VisuUtil lib or other future-proof way!
Last updated: 2024-09-09

Post by ballen on I have errors while building the project CODESYS Forge talk (Post)
Any luck at solving this issue?
Last updated: 2024-10-14

Is it possible to use debug functions such as Step Execution while the PLC ladder is in Running? CODESYS Forge talk (Thread)
Is it possible to use debug functions such as Step Execution while the PLC ladder is in Running?
Last updated: 2024-01-16

Post by wollvieh on Problem while updating to new runtime 4.11.0.0 CODESYS Forge talk (Post)
While trying to install a new runtime on a raspberry pi i get this error messages, what can i do ? Codesys Version 3.5.19.60 Runtime Version 4.11.0.0
Last updated: 2024-03-15

Post by eschwellinger on Error while using UpdateConfiguredIPSettings to change IP address CODESYS Forge talk (Post)
check the plclog for the error on doing this
Last updated: 2023-12-12

Post by jnoyau on Visualisaion while in simulation CODESYS Forge talk (Post)
For anyone reading this after the fact, it seems my issue was Alarm Task Manager. Deleting it from my program fixed the issue.
Last updated: 2024-08-02

Post by j-page on I have errors while building the project CODESYS Forge talk (Post)
I updated the Codesys version from β€œV3.5 SP20” to β€œV3.5 SP20 Patch1” and that solved the problem.
Last updated: 2024-10-15

Post by salvadegianluca on List files in a directory with SysDiropen And SysDirRead CODESYS Forge talk (Post)
Good morning; I'm facing an issue that seems being caused by the library itself. I'm trying to create the list of all the files that are stored inside a psecific directory. Unluckily the first file is allways hidden. VAR CONSTANT arysEmptyArray:ARRAY[iArrayMinDimension..iArrayMAXDimension] OF STRING := [(iArrayMAXDimension - iArrayMinDimension)('')]; iArrayMinDimension:INT := 1; iArrayMAXDimension:INT := 99; END_VAR VAR_INPUT sDirectoryToInspect:STRING; sSearchFilter:STRING; END_VAR VAR_IN_OUT xCheckFileInsideDirectory:BOOL; END_VAR VAR arysListOfFoundFiles:ARRAY[iArrayMinDimension..iArrayMAXDimension] OF STRING; sNullString:STRING; iNullIndex:INT := 0; libInfoAboutThePath:DirInfo; libResultOfThePathMonitoring:CmpErrors.RTS_IEC_RESULT; libInstanceToMonitorThePath:CmpErrors.RTS_IEC_HANDLE; sEntityToSearch:STRING; dMaxEntityDimension:DINT := SIZEOF(sEntityToSearch); libFileInfo:DirInfo; sFilteredFileName:STRING; iIndexToScrollArrays:INT; END_VAR IF xCheckFileInsideDirectory THEN arysListOfFoundFiles:=arysEmptyArray; iIndexToScrollArrays:=iArrayMinDimension; libInstanceToMonitorThePath:= SysDirOpen(szDir:= sDirectoryToInspect,szDirEntry:=sNullString,diMaxDirEntry:= iNullIndex,pDirInfo:= ADR(libInfoAboutThePath),pResult:= ADR(libResultOfThePathMonitoring)); WHILE libResultOfThePathMonitoring = Errors.ERR_OK AND iIndexToScrollArrays <= iArrayMAXDimension DO sEntityToSearch:= ''; libResultOfThePathMonitoring:=SysDirRead(hDir:=libInstanceToMonitorThePath,szDirEntry:=sEntityToSearch,diMaxDirEntry:=dMaxEntityDimension,pDirInfo:=ADR(libFileInfo)); sFilteredFileName:= FUN_06_00_FindItemInString_0(sFilter:=sSearchFilter,sSource:=sEntityToSearch); IF sFilteredFileName <> '' THEN arysListOfFoundFiles[iIndexToScrollArrays]:=sFilteredFileName; iIndexToScrollArrays:=iIndexToScrollArrays + 1; END_IF IF libResultOfThePathMonitoring <> Errors.ERR_OK THEN libResultOfThePathMonitoring:= Errors.ERR_OK; END_IF END_WHILE libResultOfThePathMonitoring:=SysDirClose(hDir:= libInstanceToMonitorThePath); xCheckFileInsideDirectory:=FALSE; END_IF How is possible to solve this issue? Any known work around?
Last updated: 2024-09-17

Post by salvadegianluca on List files in a directory with SysDiropen And SysDirRead CODESYS Forge talk (Post)
Good morning; I'm facing an issue that seems being caused by the library itself. I'm trying to create the list of all the files that are stored inside a psecific directory. Unluckily the first file is allways hidden. VAR CONSTANT arysEmptyArray:ARRAY[iArrayMinDimension..iArrayMAXDimension] OF STRING := [(iArrayMAXDimension - iArrayMinDimension)('')]; iArrayMinDimension:INT := 1; iArrayMAXDimension:INT := 99; END_VAR VAR_INPUT sDirectoryToInspect:STRING; sSearchFilter:STRING; END_VAR VAR_IN_OUT xCheckFileInsideDirectory:BOOL; END_VAR VAR arysListOfFoundFiles:ARRAY[iArrayMinDimension..iArrayMAXDimension] OF STRING; sNullString:STRING; iNullIndex:INT := 0; libInfoAboutThePath:DirInfo; libResultOfThePathMonitoring:CmpErrors.RTS_IEC_RESULT; libInstanceToMonitorThePath:CmpErrors.RTS_IEC_HANDLE; sEntityToSearch:STRING; dMaxEntityDimension:DINT := SIZEOF(sEntityToSearch); libFileInfo:DirInfo; sFilteredFileName:STRING; iIndexToScrollArrays:INT; END_VAR IF xCheckFileInsideDirectory THEN arysListOfFoundFiles:=arysEmptyArray; iIndexToScrollArrays:=iArrayMinDimension; libInstanceToMonitorThePath:= SysDirOpen(szDir:= sDirectoryToInspect,szDirEntry:=sNullString,diMaxDirEntry:= iNullIndex,pDirInfo:= ADR(libInfoAboutThePath),pResult:= ADR(libResultOfThePathMonitoring)); WHILE libResultOfThePathMonitoring = Errors.ERR_OK AND iIndexToScrollArrays <= iArrayMAXDimension DO sEntityToSearch:= ''; libResultOfThePathMonitoring:=SysDirRead(hDir:=libInstanceToMonitorThePath,szDirEntry:=sEntityToSearch,diMaxDirEntry:=dMaxEntityDimension,pDirInfo:=ADR(libFileInfo)); sFilteredFileName:= FUN_06_00_FindItemInString_0(sFilter:=sSearchFilter,sSource:=sEntityToSearch); IF sFilteredFileName <> '' THEN arysListOfFoundFiles[iIndexToScrollArrays]:=sFilteredFileName; iIndexToScrollArrays:=iIndexToScrollArrays + 1; END_IF IF libResultOfThePathMonitoring <> Errors.ERR_OK THEN libResultOfThePathMonitoring:= Errors.ERR_OK; END_IF END_WHILE libResultOfThePathMonitoring:=SysDirClose(hDir:= libInstanceToMonitorThePath); xCheckFileInsideDirectory:=FALSE; END_IF How is possible to solve this issue? Any known work around?
Last updated: 2024-09-17

<< < 1 2 3 4 .. 10 > >> (Page 2 of 10)

Showing results of 235

Sort by relevance or date