Personal Data

Username:
lmdejong
Joined:
2020-05-25 10:16:11
Location:
Wateringen / Netherlands / CET
Gender:
Male

Projects

  • No projects to display.

User Activity

  • Posted a comment on discussion Runtime on CODESYS Forge

    Sure, no problem

  • Posted a comment on discussion Runtime on CODESYS Forge

    The error is in step 42, writing step. I circle it back to step 42 and try to write again without resetting the write function. There is the error. Below is the final code. I had to add some extra steps to reset the write function because when u start a file it writes two lines, one to create the table header. PROGRAM LogManager VAR POU_ERROR: BOOL; ManagerState: INT:=0; ErrorAtState: INT:=0; State_eError: FILE.ERROR; hFile: FILE.CAA.HANDLE; filop: FILE.Open; filcl: FILE.Close; filwr: FILE.Write;...

  • Posted a comment on discussion Runtime on CODESYS Forge

    SOLVED: Been working on this too long, didn't see a typo. The errorcode remains unfound though!

  • Posted a comment on discussion Runtime on CODESYS Forge

    The actual problem could be in here: 42: // New file created - Write header //Creation of table header string sData := ''; FOR j := 0 TO SIZEOF(HeaderNames) DO sData := CONCAT(sData, HeaderNames[j]); sData := CONCAT(sData, ';'); END_FOR filwr.hFile := hFile; filwr.pBuffer := ADR(sTestString); szFileSize1:= SIZEOF(sTestString); filwr.szSize := szFileSize1; filwr.udiTimeOut := 100000; // 100ms TimeOut filwr (xExecute := TRUE); IF filwr.xDone THEN ManagerState := 42; filwr (xExecute := FALSE); END_IF...

  • Modified a comment on discussion Runtime on CODESYS Forge

    [Snippet of code in first response which throws the error] Hi, I'm creating a program for a machine that should test our products. The testing sequence is complete but I am unable to log the data. I'm able to create a folder and a file to write to. But I'm unable to write to the file. The filwr FB gives me an error on eError of value 1. At the moment I'm at a loss, any help would be appreciated. The code below ends up at ManagerState 90 with POU_ERROR = TRUE and ErrorAtState = 42 with State_eError...

  • Modified a comment on discussion Runtime on CODESYS Forge

    Hi, I'm creating a program for a machine that should test our products. The testing sequence is complete but I am unable to log the data. I'm able to create a folder and a file to write to. But I'm unable to write to the file. The filwr FB gives me an error on eError of value 1. At the moment I'm at a loss, any help would be appreciated. The code below ends up at ManagerState 90 with POU_ERROR = TRUE and ErrorAtState = 42 with State_eError = 1. 1 is not present in the Error ENUM of the CAA_File library...

  • Modified a comment on discussion Runtime on CODESYS Forge

    Hi, I'm creating a program for a machine that should test our products. The testing sequence is complete but I am unable to log the data. I'm able to create a folder and a file to write to. But I'm unable to write to the file. The filwr FB gives me an error on eError of value 1. At the moment I'm at a loss, any help would be appreciated. The code below ends up at ManagerState 90 with POU_ERROR = TRUE and ErrorAtState = 42 with State_eError = 1. 1 is not present in the Error ENUM of the CAA_File library...

  • Posted a comment on discussion Runtime on CODESYS Forge

    Hi, I'm creating a program for a machine that should test our products. The testing sequence is complete but I am unable to log the data. I'm able to create a folder and a file to write to. But I'm unable to write to the file. The filwr FB gives me an error on eError of value 1. At the moment I'm at a loss, any help would be appreciated. The code below ends up at ManagerState 90 with POU_ERROR = TRUE and ErrorAtState = 42 with State_eError = 1. 1 is not present in the Error ENUM of the CAA_File library...

View All