Personal Data

Username:
ton
Joined:
2020-01-17 12:33:24+00:00

Projects

  • No projects to display.

Skills

  • No skills entered.

User Activity

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    ulSize?

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    What is you're pbyBuffer and ulSize in SysComRead?

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    To convert this number to bytes you can use an Union. TYPE UN_Test : UNION dwValue: DWORD; arrValue: ARRAY[0..3] OF BYTE; END_UNION END_TYPE

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    How large is you're receive buffer? I quess it is an array of 16 bytes.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    If TCPRead2_MessageRX is a STRING you have to end it with a null terminator. Try: IF fbTcpRead2.xReady THEN //Add this line TCPRead2_MessageRX[fbTcpRead2.szCount]:= 0;//End terminator TCPRead2_loop:=TRUE; TCPRead2_MessageTemp:=TCPRead2_MessageRX; ....

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi, My solution: Create program: PROGRAM Ethercat_INode VAR pApp: POINTER TO CmpApp.APPLICATION; result: RTS_IEC_RESULT; xInit: BOOL:= TRUE; xRestartApp: BOOL; //Visu END_VAR VAR RETAIN xAutoRestart: BOOL; END_VAR IF xInit THEN pApp:= AppGetCurrent(pResult:= result); xInit:= FALSE; xAutoRestart:= FALSE; END_IF IF xRestartApp THEN xRestartApp:= FALSE; CmpApp.AppReset(pApp:= pApp, usResetOption:= CmpApp.RTS_RESET); xAutoRestart:= TRUE; END_IF Create function: FUNCTION SysEvent_StopDone : DWORD VAR_INPUT...

  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    I think you should change the token. There might be a problem with the string you send. Maybe you have to encode it with the FUNCTION URLDecoder. I use webclient sl now. Changes are: change: HTTPClient: HTTP.HttpClient; with webClient: WEB_CLIENT.WebClient:= (udiTimeOut:= 50000000, eRequestType:= WEB_CLIENT.REQUEST_TYPE.POST); and change: sTitle:= CONCAT(STR1:= '&title=', STR2:= title); with sTitle:= CONCAT(STR1:= '&title=', STR2:= WEB_CLIENT.URL_ENCODE_STRING(pbIn:= ADR(title))); and change: sMessage:=...

  • Posted a comment on discussion Engineering on CODESYS Forge

    I'm working on a Ethercat commissioning and diagnose program. Making good progress but i have one issue. I cannot get the name of the slave in the device tree. For now i manage it by a little python script who enumerates the devicetree names but this is not very reliable because the enumeration of the tree is not always sequentially. Any advice is welcome. Thanks, Ton.

View All