<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Activity for Ton</title><link href="https://forge.codesys.com/u/ton/activity/" rel="alternate"/><id>https://forge.codesys.com/u/ton/activity/</id><updated>2025-04-01T17:28:58.374000Z</updated><subtitle>Recent activity for Ton</subtitle><entry><title>Ton posted a comment on discussion Codesys V2.3 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/?limit=25#b8d8" rel="alternate"/><published>2025-04-01T17:28:58.374000Z</published><updated>2025-04-01T17:28:58.374000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/?limit=25#b8d8</id><summary type="html">When you use a string value 0 will be the end terminator. Everything after this will not be in the string. I guess byte 2394 has a value 0.</summary></entry><entry><title>Ton posted a comment on discussion Deutsch 🇩🇪</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/4694a11061/?limit=25#09a8" rel="alternate"/><published>2025-01-20T22:16:12.740000Z</published><updated>2025-01-20T22:16:12.740000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Deutsch/thread/4694a11061/?limit=25#09a8</id><summary type="html">Hi Timo, FUNCTION Sonderzeichen_Check : bool VAR_INPUT sInputString : STRING; // Zu prüfender String END_VAR VAR i: INT; iAsc: INT; END_VAR Sonderzeichen_Check:= TRUE; FOR i:= 0 TO len(sInputString) - 1 DO iAscii:= sInputString[i]; //Get ASCII value //Check value between 48('0') and 65('9') or between 65('A') and 90('Z') or between 97('a') and 122('z') or IF iAscii &gt;= 48 AND iAscii &lt;= 57 OR iAscii &gt;= 65 AND iAscii &lt;= 90 OR iAscii &gt;= 97 AND iAscii &lt;= 122 THEN //iAscii valit ELSE Sonderzeichen_Check:=...</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4607c2afb0/?limit=25#2243" rel="alternate"/><published>2024-12-20T13:48:27.437000Z</published><updated>2024-12-20T13:48:27.437000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/4607c2afb0/?limit=25#2243</id><summary type="html">Hi, This is with Combivis Studio. I thought you need a license from KEB to create a boot project.</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/03a28f3875/?limit=25#078a" rel="alternate"/><published>2024-11-01T21:14:32.893000Z</published><updated>2024-11-01T21:14:32.893000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/03a28f3875/?limit=25#078a</id><summary type="html">Hi, I guess you don't have the right xml file. Download Beckhoff_EtherCAT_BKxxx_MDP.zip from https://download.beckhoff.com/download/configuration-files/io/ethercat/xml-device-description and install these in Device Repository.</summary></entry><entry><title>Ton posted a comment on discussion Deutsch 🇩🇪</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/264128cd0b/?limit=25#13c8" rel="alternate"/><published>2024-05-22T07:18:37.700000Z</published><updated>2024-05-22T07:18:37.700000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Deutsch/thread/264128cd0b/?limit=25#13c8</id><summary type="html">Ich habe das gleiche problem. Losch mal die '.precompile cache’ datei und öffne dass project. Ich habe dan keine fehler meldung und kann ohne probleme online.</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b6843a4a46/?limit=25#5d6c" rel="alternate"/><published>2023-12-16T07:39:19.597000Z</published><updated>2023-12-16T07:39:19.597000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/b6843a4a46/?limit=25#5d6c</id><summary type="html">If you use LTIME() you will be very accurate and be able to have a normal task cycle time.</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b6843a4a46/?limit=25#4dfa" rel="alternate"/><published>2023-12-12T20:00:16.777000Z</published><updated>2023-12-12T20:00:16.777000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/b6843a4a46/?limit=25#4dfa</id><summary type="html">Hi, i guess you want to make a hour counter. You need to store the measured value. Try to use a retain variable, but need a graceful shutdown, or save it your self. see https://forge.codesys.com/forge/talk/Runtime/thread/278e325579/ Succes.</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b6843a4a46/?limit=25#6018" rel="alternate"/><published>2023-12-09T15:46:34.157000Z</published><updated>2023-12-09T15:46:34.157000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/b6843a4a46/?limit=25#6018</id><summary type="html">One i wrote this to measure elepse time When xMeasure is true is starts en when false it stops and time is messured. FUNCTION_BLOCK FB_ElapseTime VAR_INPUT xMeasure: BOOL; END_VAR VAR_OUTPUT xRisingEdge: BOOL; xFallingEdge: BOOL; tElapsed: TIME; ltElapsed: LTIME; ltPrev_Elapsed: LTIME; ltElapsedMax: LTIME; END_VAR VAR xLastValue: BOOL; LTIMEStart: LTIME; LTIMEEnd: LTIME; tonReset: TON:= (IN:= TRUE, PT:= TIME#30S0MS); END_VAR ------------------------------------------- xRisingEdge:= (xLastValue XOR...</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e7cb9088e/?limit=25#32b6" rel="alternate"/><published>2023-07-22T09:45:54.451000Z</published><updated>2023-07-22T09:45:54.451000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/9e7cb9088e/?limit=25#32b6</id><summary type="html">You have to declare some inputs. declaration: SdoRead_RU01: ETC_CO_SdoRead; wRU01: WORD; code: SdoRead_RU01( xExecute:= , usiCom:= 1, //index of master 1: first ETC master uiDevice:= DRIVE_400U1.PhysSlaveAddr, wIndex:= 16#2C01, bySubindex:= 16#00, udiTimeOut:= 500, pBuffer:= ADR(wRU01), szSize:= SIZEOF(wRU01));</summary></entry><entry><title>Ton posted a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#34e9" rel="alternate"/><published>2022-05-08T14:18:53.663000Z</published><updated>2022-05-08T14:18:53.663000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#34e9</id><summary type="html">This solution takes a lot of performance. When for example two alarm bits comes at the same time the second has a delay of few seconds. I quess my visu do also get translated, so not a good solution. For now i just take default language.</summary></entry><entry><title>Ton posted a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#8c28" rel="alternate"/><published>2022-04-27T12:27:32.868000Z</published><updated>2022-04-27T12:27:32.868000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#8c28</id><summary type="html">Hi Kislov, This is what i was looking for. Many thanks!!!</summary></entry><entry><title>Ton posted a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#c114" rel="alternate"/><published>2022-04-26T08:09:13.766000Z</published><updated>2022-04-26T08:09:13.766000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#c114</id><summary type="html">Hi Ludecus, Thanks for your input. With this function i have the same problem. I want a specific language ('en') and not the activated language (might be unreadable if 'jp'). I don't thinks this function exist. Thanks, Ton.</summary></entry><entry><title>Ton posted a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#3077" rel="alternate"/><published>2022-04-25T11:35:59.464000Z</published><updated>2022-04-25T11:35:59.464000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/4c8bbac001/?limit=25#3077</id><summary type="html">Hi, For my logger i need to get the text from 'en' language. To see items in my logger in Japanese or polisch doesn't tell me much. To get the text from the Text list i use cmpDynamictext library: sText:= cmpDynamictext.DynamicTextGetText(ADR(sAlarmGroup), ADR(sAlarmID))^; //Get name, language dependent sDefaultText:= cmpDynamictext.DynamicTextGetDefaultText(ADR(sAlarmGroup), ADR(sAlarmID))^; //Get default name The easy way is to put the 'en' text in the default, but this is my alarm ID. Is there...</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/924e6c01b0/?limit=25#b934" rel="alternate"/><published>2021-09-09T11:56:34.408000Z</published><updated>2021-09-09T11:56:34.408000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/924e6c01b0/?limit=25#b934</id><summary type="html">ulSize?</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/924e6c01b0/?limit=25#11b1" rel="alternate"/><published>2021-09-09T10:56:39.217000Z</published><updated>2021-09-09T10:56:39.217000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/924e6c01b0/?limit=25#11b1</id><summary type="html">What is you're pbyBuffer and ulSize in SysComRead?</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6b3a1114f3/?limit=25#4ec3" rel="alternate"/><published>2021-09-09T10:33:46.535000Z</published><updated>2021-09-09T10:33:46.535000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6b3a1114f3/?limit=25#4ec3</id><summary type="html">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</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/924e6c01b0/?limit=25#f42c" rel="alternate"/><published>2021-09-09T10:20:24.949000Z</published><updated>2021-09-09T10:20:24.949000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/924e6c01b0/?limit=25#f42c</id><summary type="html">How large is you're receive buffer? I quess it is an array of 16 bytes.</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/84cf674c21/?limit=25#4c5a" rel="alternate"/><published>2021-08-12T19:29:47.059000Z</published><updated>2021-08-12T19:29:47.059000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/84cf674c21/?limit=25#4c5a</id><summary type="html">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; ....</summary></entry><entry><title>Ton posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/af7702ea1b/?limit=25#153d" rel="alternate"/><published>2021-04-19T07:45:45.245000Z</published><updated>2021-04-19T07:45:45.245000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/af7702ea1b/?limit=25#153d</id><summary type="html">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...</summary></entry><entry><title>Ton posted a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c11c9acb77/?limit=25#c17f" rel="alternate"/><published>2021-02-06T22:38:40.469000Z</published><updated>2021-02-06T22:38:40.469000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/c11c9acb77/?limit=25#c17f</id><summary type="html">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:= '&amp;title=', STR2:= title); with sTitle:= CONCAT(STR1:= '&amp;title=', STR2:= WEB_CLIENT.URL_ENCODE_STRING(pbIn:= ADR(title))); and change: sMessage:=...</summary></entry><entry><title>Ton posted a comment on discussion Engineering</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2ddecb02c8/?limit=25#a449" rel="alternate"/><published>2020-06-06T11:37:12.146000Z</published><updated>2020-06-06T11:37:12.146000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/2ddecb02c8/?limit=25#a449</id><summary type="html">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.</summary></entry><entry><title>Ton posted a comment on discussion Engineering</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a9f08c2a5c/?limit=25#8c35/74a5/4ef5/a4b5/56c2" rel="alternate"/><published>2020-06-03T06:03:07.562000Z</published><updated>2020-06-03T06:03:07.562000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/a9f08c2a5c/?limit=25#8c35/74a5/4ef5/a4b5/56c2</id><summary type="html">Maybe you can use System Events. https://help.codesys.com/webapp/_cds_obj_task_config_sys_event;product=codesys;version=3.5.15.0</summary></entry></feed>