<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Activity for dFx</title><link href="https://forge.codesys.com/u/dfx/activity/" rel="alternate"/><id>https://forge.codesys.com/u/dfx/activity/</id><updated>2022-09-16T08:47:37.690000Z</updated><subtitle>Recent activity for dFx</subtitle><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/363b69368e/?limit=250#36b8" rel="alternate"/><published>2022-09-16T08:47:37.690000Z</published><updated>2022-09-16T08:47:37.690000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/363b69368e/?limit=250#36b8</id><summary type="html">X3:=X3+1; is part of your issue. a FOR loop automatically increments your loop variable. //====================Write Tool Numbers X3 ================= FOR X3:=42 TO 60 DO Base1Index := X3-41; IF DbAutomatic.PosX3.Index = 3 THEN // looks missplaced or missing array reference ? (I would put this ahead of for loop) IF DbAutomatic.PosX3.Status[Base1Index] THEN DbAutomatic.PosX3.ToolNumber[Base1Index]:=X3; DbAutomatic.AllTools[X3].Number:=X3; // This is weird (copying your own index ? I would expect Base1Index)...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/394c96002e/?limit=250#afbc" rel="alternate"/><published>2022-08-24T11:52:07.999000Z</published><updated>2022-08-24T11:52:07.999000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/394c96002e/?limit=250#afbc</id><summary type="html">Some IO-link master are configured from a webserver. Then they expose a communication table you can define on it (MURR works this way).</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/013ce596c7/?limit=250#092d" rel="alternate"/><published>2022-08-24T06:36:17.631000Z</published><updated>2022-08-24T06:36:17.631000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/013ce596c7/?limit=250#092d</id><summary type="html">Not really a 1:1 feature, but there are those 2 : AT keyword, used to "alias" an I/O or memory (I,Q and M) https://help.codesys.com/webapp/_cds_at_declaration;product=codesys;version=3.5.14.0 UNION datatype, allows you to interpret the same RAW data with different datatypes https://help.codesys.com/webapp/_cds_datatype_union;product=codesys;version=3.5.14.0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/734f0af653/?limit=250#bb55" rel="alternate"/><published>2022-08-22T11:26:29.059000Z</published><updated>2022-08-22T11:26:29.059000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/734f0af653/?limit=250#bb55</id><summary type="html">I don't know about general purpose variable writing, but you should have a look at the forums. Already saw a post trying to get values from a file (like JSON does) For specific purposes and few variables, you may do it in 2 steps. 1) Get the variable name and test if it match one expected 2) Convert the value to desired datatype https://help.codesys.com/webapp/_cds_operator_string_to;product=codesys;version=3.5.14.0</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fa8c9fef8d/?limit=250#0fb9" rel="alternate"/><published>2022-08-19T14:06:20.828000Z</published><updated>2022-08-19T14:06:20.828000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/fa8c9fef8d/?limit=250#0fb9</id><summary type="html">How about using a simple ROL on send buffer ? (* Assuming this is a word array buffer *) (* And that you only process it once *) FOR i:=0 TO LastWordIndexInBuffer DO SendBuffer[i] := ROL(SendBuffer[i],8); END_FOR;</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fa8c9fef8d/?limit=250#0fb9" rel="alternate"/><published>2022-08-19T14:05:32.665000Z</published><updated>2022-08-19T14:05:32.665000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/fa8c9fef8d/?limit=250#0fb9</id><summary type="html">How about using a simple ROL on send buffer ? // Assuming this is a word array buffer // And that you only process it once FOR i:=0 TO LastWordIndexInBuffer DO SendBuffer[i] := ROL(SendBuffer[i],8); END_FOR;</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fa8c9fef8d/?limit=250#b158" rel="alternate"/><published>2022-08-18T13:33:22.259000Z</published><updated>2022-08-18T13:33:22.259000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/fa8c9fef8d/?limit=250#b158</id><summary type="html">Both device are codesys plcs ? How are you transfering/recovering data from communication buffers to structures ?</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9f9fcc91e7/?limit=250#9401/fb26/37e4" rel="alternate"/><published>2022-06-13T18:54:34.722000Z</published><updated>2022-06-13T18:54:34.722000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/9f9fcc91e7/?limit=250#9401/fb26/37e4</id><summary type="html">If you want to show a program window, you first have to check which is the user starting the program. Because the interface you see here, is for a user and only this one. Althougt that a user may not have an interface at all (system accounts for instance). So I would look at how to start your program with the proper user first.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a76caeb21b/?limit=250#c565" rel="alternate"/><published>2022-05-06T16:35:34.466000Z</published><updated>2022-05-06T16:35:34.466000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/a76caeb21b/?limit=250#c565</id><summary type="html">What is the result if you use variables from a GVL ? Is your PLC (simulation) in RUN ?</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a76caeb21b/?limit=250#c565" rel="alternate"/><published>2022-05-06T16:35:26.497000Z</published><updated>2022-05-06T16:35:26.497000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/a76caeb21b/?limit=250#c565</id><summary type="html">What is the result if you use variables from a GVL ? Is your PLC (simalation) in RUN ?</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09b02401ac/?limit=250#7c18" rel="alternate"/><published>2022-05-06T06:36:15.007000Z</published><updated>2022-05-06T06:36:15.007000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/09b02401ac/?limit=250#7c18</id><summary type="html">I'm no part of codesys. C0139 Warning pops up because your pointer value is read only at intitialisation. But the address may change with an online change : (see first hint) https://help.codesys.com/webapp/_cds_cmd_online_change;product=codesys;version=3.5.14.0 Enumerations are a list a values that a variable may take. Meaning that this variable is expected to not take any other value than those defined in the enumeration. Using such a type on an input is weird, because you should handle the other...</summary></entry><entry><title>dFx posted a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/870d690884/?limit=250#da4d" rel="alternate"/><published>2022-04-28T13:36:39.159000Z</published><updated>2022-04-28T13:36:39.159000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/870d690884/?limit=250#da4d</id><summary type="html">Well, I would just use a task for this, triggered every second. That would be more efficient. Anyway, show us your code, and you might be helped.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f859f63b5/?limit=250#5285" rel="alternate"/><published>2022-04-27T07:16:03.264000Z</published><updated>2022-04-27T07:16:03.264000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7f859f63b5/?limit=250#5285</id><summary type="html">Unit ID feels wrong also, even if it seems to work. Recall that serial Modbus uses addresses 1 to 247 decimal, and reserves 0 as a broadcast address. Even if some modbus TCP devices just ignore the address and echoes it back, 255 is generally used for a single device. So if this device is a gateway, 1-247 is generally used with a gateway(TCP/SL) to point a device on SL. Exception Code MODBUS name Comments 01 - Illegal Function Code - The function code is unknown by the server 02 - Illegal Data Address...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3085f242cf/?limit=250#ca1f" rel="alternate"/><published>2022-04-22T12:02:34.586000Z</published><updated>2022-04-22T12:02:34.586000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/3085f242cf/?limit=250#ca1f</id><summary type="html">Well, a good start is to search for some tutorials : https://www.youtube.com/results?search_query=tutorial+codesys+3.5 Just browse a bit, there are specialized content as well as generic content about the interface itself or IEC languages.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#1bf5/b0f5" rel="alternate"/><published>2022-04-05T14:29:43.229000Z</published><updated>2022-04-05T14:29:43.229000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#1bf5/b0f5</id><summary type="html">I don't get the point on nested FBs and pointers. Just get the address you need on top level FB and forward it. For instance, if you have a car FB, with an accelerator pedal FB inside, reading the analog value of the pedal, just forward the address from car FB to pedal FB. You can also place the address inside a struct, from a first POU and then use the address provided by the struct. The point with dealing with pointers is that your adress may change with online change, so if you don't set the pointer...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#1bf5/b0f5" rel="alternate"/><published>2022-04-05T14:11:22.957000Z</published><updated>2022-04-05T14:11:22.957000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#1bf5/b0f5</id><summary type="html">I don't get the point on nested FBs and pointers. Just get the address you need on top level FB and forward it. For instance, if you have a car FB, with an accelerator pedal FB inside, reading the analog value of the pedal, just forward the address from car FB to pedal FB. You can also place the address inside a struct, from a first POU and then use the address provided by the struct. The point with dealing with pointers is that your adress may change with online change, so if you don't set the pointer...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#c614" rel="alternate"/><published>2022-04-05T08:24:47.628000Z</published><updated>2022-04-05T08:24:47.628000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#c614</id><summary type="html">For instance, imagine you have an FB to correctly map your com data to a struct, and this FB takes as inputs : pInData : POINTER TO ARRAY [0..5] OF BYTE; pOutData : POINTER TO ARRAY [0..5] OF BYTE; Then to call your FB, you could use : MyFB(pInData:= ADR(%IB0), pOutData:= ADR(%QB0)); Then, inside your FB : var1 := pInData^; var2 := pInData^[1]; var3.0 := pInData^[2].0;</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#2ac3" rel="alternate"/><published>2022-04-05T06:19:17.409000Z</published><updated>2022-04-05T06:19:17.409000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/71110ea90b/?limit=250#2ac3</id><summary type="html">Using %I %Q addressing, you can also map by program using POINTER TO BYTE (and as you know the right size, get all the data to a formated struct or whatever you needs).</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cafcd1eec8/?limit=250#4f8b" rel="alternate"/><published>2022-03-30T06:33:02.287000Z</published><updated>2022-03-30T06:33:02.287000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/cafcd1eec8/?limit=250#4f8b</id><summary type="html">Hint Functions have no internal status information, which means that functions do not save the values of their variables until the next call. Calls of a function with the same input variable values always supply the same output value. Therefore, functions may not use global variables and addresses! source : https://help.codesys.com/webapp/_cds_obj_function;product=codesys;version=3.5.14.0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/34447dd34e/?limit=250#863e/8b28/5608" rel="alternate"/><published>2022-03-02T13:55:55.170000Z</published><updated>2022-03-02T13:55:55.170000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/34447dd34e/?limit=250#863e/8b28/5608</id><summary type="html">I can't really tell without opening your archive, but I can't do it for now. Just have a look on a disconnected state without requests, and with, and play the 7 differences game with your variables values. Maybe you will find it that way.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/34447dd34e/?limit=250#863e" rel="alternate"/><published>2022-02-25T12:45:21.528000Z</published><updated>2022-02-25T12:45:21.528000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/34447dd34e/?limit=250#863e</id><summary type="html">Assuming your code is the same you posted earlier, You should fix a bad call issue : You call the ClientSerial Instance twice, and on first call, no parameters were provided, so at first call you run on defauts. And a bad behavior about retries sequencing : when you cycle from retry steps to step 10, this is only one FB instance call with xConnect = FALSE. Keep in mind that some resources are async, especially doing communication. Meaning that it may take more than one cpu cycle for some tasks to...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/007bce7233/?limit=250#fdf9" rel="alternate"/><published>2022-02-18T12:19:37.363000Z</published><updated>2022-02-18T12:19:37.363000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/007bce7233/?limit=250#fdf9</id><summary type="html">Please read the documentation about the block you use before asking for help. Inputs: CU : BOOL; With each rising edge at this input the counter value (CV) is incremented by 1. When CV reaches or exceeds PV, QU will be set to TRUE. CD : BOOL; With each rising edge at this input the counter value (CV) is decremented by 1 until 0 is reached.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ee945022e/?limit=250#f791/b938/778f" rel="alternate"/><published>2022-02-18T09:56:17.675000Z</published><updated>2022-02-18T09:56:17.675000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ee945022e/?limit=250#f791/b938/778f</id><summary type="html">Pointers are not a big deal. See help For instance, you may have a struct, for the queue elements. Lets say you need to know the type of work (read/write), the data to be written or read. STRUCT ModbusQueueItem TypeOfWork : INT; pData : Pointer TO BOOL; // Data pointer for boolean data szData : INT; // Size of data END_STRUCT So In case of Read, just provide the pData to pData of ClientRequestReadDiscreteInputs, given that your RELAY block did correctly set the item using ADR(YourData). This is only...</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ee945022e/?limit=250#f791" rel="alternate"/><published>2022-02-18T09:14:00.970000Z</published><updated>2022-02-18T09:14:00.970000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ee945022e/?limit=250#f791</id><summary type="html">You cannot execute 2 functions at the same time on the same port. You have to sequence each request. I would call the read/write inside the MODBUS_CLIENT_SERIAL and then provide a queue for the MODBUS_RELAY FBs. Then just place a request with its parameters in the queue with MODBUS_RELAY, process them in MODBUS_CLIENT_SERIAL, using pointers for in/out data, and also results. This way the asking RELAY FB could be aware his request have been processed. For less modifications of your code, you can also...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ee945022e/?limit=250#f791" rel="alternate"/><published>2022-02-18T09:11:30.474000Z</published><updated>2022-02-18T09:11:30.474000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ee945022e/?limit=250#f791</id><summary type="html">You cannot execute 2 functions at the same time on the same port. You have to sequence each request. I would call the read/write inside the MODBUS_CLIENT_SERIAL and then provide a queue for the MODBUS_RELAY FBs. Then just place a request with its parameters in the queue with MODBUS_RELAY, process them in MODBUS_CLIENT_SERIAL, using pointers for in/out data, and also results. This way the asking RELAY FB could be aware his request have been processed.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f612cc4378/?limit=250#ed0d" rel="alternate"/><published>2022-02-18T07:39:40.691000Z</published><updated>2022-02-18T07:39:40.691000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/f612cc4378/?limit=250#ed0d</id><summary type="html">You can write FB internals signals. Then, on FB call, do the processing of those signals and provide an internal result. And forward the result with some property for exemple. So you would have only to provide the correct structure on the correct FB call, which you should be aware at design time. As your method seems to perform async orders (Jogging), you can forward a result of the order correctly scheduled, and use properties to know the state of your axis (jogging forward, stopped ..)</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f612cc4378/?limit=250#ed0d" rel="alternate"/><published>2022-02-18T07:23:36.549000Z</published><updated>2022-02-18T07:23:36.549000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/f612cc4378/?limit=250#ed0d</id><summary type="html">You can write FB internals signals. Then, on FB call, do the processing of those signals and provide an internal result. And forward the result with the method ouput. So you would have only to provide the correct structure on the correct FB call, which you should be aware at design time.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#7a52" rel="alternate"/><published>2022-02-04T13:45:35.004000Z</published><updated>2022-02-04T13:45:35.004000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#7a52</id><summary type="html">This question, even related to your first one, should be split in another topic, as it is different from you first one.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#bea0" rel="alternate"/><published>2022-02-02T19:28:14.017000Z</published><updated>2022-02-02T19:28:14.017000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#bea0</id><summary type="html">even on error of list, you should close it always. by the way, the exemple you use does it almost correctly.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#f0b3" rel="alternate"/><published>2022-02-02T14:11:52.809000Z</published><updated>2022-02-02T14:11:52.809000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#f0b3</id><summary type="html">FB_ListerFichier( hDir:=hDir, xExecute:=(uiEtape=1) AND (NOT FB_ListerFichier.xDone OR FB_ListerFichier.eError=5106));</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#264e" rel="alternate"/><published>2022-02-02T08:14:19.345000Z</published><updated>2022-02-02T08:14:19.345000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#264e</id><summary type="html">Yes, just make it 1-&gt;0-&gt;1 once to get the next results. -- Frog eaters mode ON Etant donné que le bloc ne sort qu'un seul résultat à la fois, il faut donc indiquer au bloc de donner le résultat suivant. Dans l'exemple que vous avez adapté, aucune entrée du bloc n'est modifiée, comme si le bloc modifiait ses sorties à chaque appel. Or dans le cadre d'opérations avec un système de fichiers, elles sont asynchrones, donc ce cas est a priori exclu.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#264e" rel="alternate"/><published>2022-02-02T08:13:29.951000Z</published><updated>2022-02-02T08:13:29.951000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#264e</id><summary type="html">Yes, just make it 1-&gt;0-&gt;1 once to get the next results. Etant donné que le bloc ne sort qu'un seul résultat à la fois, il faut donc indiquer au bloc de donner le résultat suivant. Dans l'exemple que vous avez adapté, aucune entrée du bloc n'est modifiée, comme si le bloc modifiait ses sorties à chaque appel. Or dans le cadre d'opérations avec un système de fichiers, elles sont asynchrones, donc ce cas est a priori exclu.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#3a43" rel="alternate"/><published>2022-02-02T07:48:41.884000Z</published><updated>2022-02-02T07:48:41.884000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7ccf8b1301/?limit=250#3a43</id><summary type="html">Did you tried to change execute flag of "FB_ListerFichier" while you are in step 1 ?</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d0f54915f8/?limit=250#64c5" rel="alternate"/><published>2022-01-31T10:49:18.720000Z</published><updated>2022-01-31T10:49:18.720000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d0f54915f8/?limit=250#64c5</id><summary type="html">Well, on SP12 it is okay at least. Did you done the usual restart of codesys ?</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cda79e6b92/?limit=250#5328" rel="alternate"/><published>2022-01-31T10:35:32.039000Z</published><updated>2022-01-31T10:35:32.039000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/cda79e6b92/?limit=250#5328</id><summary type="html">This is the purpose of StringUtils Library Defaults functions are limitated to 255 Chars. More widely, strings are no more than arrays of bytes followed by an empty one. I suppose that wstring is the same, but speaking of words instead.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cda79e6b92/?limit=250#5328" rel="alternate"/><published>2022-01-31T10:33:51.109000Z</published><updated>2022-01-31T10:33:51.109000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/cda79e6b92/?limit=250#5328</id><summary type="html">This is the purpose of StringUtils Library</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d0f54915f8/?limit=250#19be" rel="alternate"/><published>2022-01-31T10:27:00.148000Z</published><updated>2022-01-31T10:27:00.148000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d0f54915f8/?limit=250#19be</id><summary type="html">Sorry for the mistake, {attribute 'qualified_only'} https://help.codesys.com/webapp/_cds_pragma_attribute_qualified_only;product=codesys;version=3.5.14.0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d0f54915f8/?limit=250#4715" rel="alternate"/><published>2022-01-31T07:35:01.269000Z</published><updated>2022-01-31T07:35:01.269000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d0f54915f8/?limit=250#4715</id><summary type="html">If I remember correctly, just remove the top attribute {attribute 'instance-path'} in text mode on GVL : (see https://help.codesys.com/webapp/_cds_pragma_attribute_instance_path;product=codesys;version=3.5.14.0 )</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/?limit=250#994d/5b6c" rel="alternate"/><published>2022-01-28T10:41:00.787000Z</published><updated>2022-01-28T10:41:00.787000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/?limit=250#994d/5b6c</id><summary type="html">Feels like end of string detection isn't right. Maybe the lib was testing a byte, where you should test a word to NULL when using WSTRING.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/?limit=250#5d9a" rel="alternate"/><published>2022-01-27T13:00:30.108000Z</published><updated>2022-01-27T13:00:30.108000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/?limit=250#5d9a</id><summary type="html">The issue is using string_to function assumes that every char in your string is coded on 8 bits, while UTF8 is on 16 bits. So you are interpreting splitted chars. I don't know why you "need" to use .sContent to parse, but this could be a way to solve it. Also you may also just interpret a byte array (string and wsstring are no more than byte arrays) as a wstring using union for instance.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/?limit=250#5d9a" rel="alternate"/><published>2022-01-27T12:55:56.292000Z</published><updated>2022-01-27T12:55:56.292000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/?limit=250#5d9a</id><summary type="html">The issue is using string_to function assumes that every char in your string is coded on 8 bits, while UTF8 is on 16 bits. So you are interpreting splitted chars. I don't know why you "need" to use .sContent to parse, but this could be a way to solve it. Also you may also just interpret a byte array (string and wsstring are no more than byte arrays) as a wstring using union for exemples.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ebe01ae55d/?limit=250#063d" rel="alternate"/><published>2022-01-06T09:49:09.433000Z</published><updated>2022-01-06T09:49:09.433000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/ebe01ae55d/?limit=250#063d</id><summary type="html">This won't answer the question but may solve your issue : Use a static IP in the DHCP server, so you can use a predefined static IP in UA expert.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#1403" rel="alternate"/><published>2021-12-29T08:11:26.696000Z</published><updated>2021-12-29T08:11:26.696000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#1403</id><summary type="html">Note for future me : do not spam the post button.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#1403" rel="alternate"/><published>2021-12-29T08:10:44.904000Z</published><updated>2021-12-29T08:10:44.904000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#1403</id><summary type="html">FOR Index := 0 TO 7 DO MyBytes[Index] := SHL(HEXinASCII_TO_BYTE(MyStr[Index*2]),4) + HEXinASCII_TO_BYTE(MyStr[Index*2 + 1]); END_FOR FOR Index := 0 TO 7 DO MyStr2[Index*2+1] := TO_BYTE(BYTE_TO_HEXinASCII(MyBytes[Index])); MyStr2[Index*2] := TO_BYTE(BYTE_TO_HEXinASCII(SHR(MyBytes[Index],4))); END_FOR Same lib. Please read a little the help.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#f594" rel="alternate"/><published>2021-12-29T08:10:39.670000Z</published><updated>2021-12-29T08:10:39.670000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#f594</id><summary type="html">FOR Index := 0 TO 7 DO MyBytes[Index] := SHL(HEXinASCII_TO_BYTE(MyStr[Index*2]),4) + HEXinASCII_TO_BYTE(MyStr[Index*2 + 1]); END_FOR FOR Index := 0 TO 7 DO MyStr2[Index*2+1] := TO_BYTE(BYTE_TO_HEXinASCII(MyBytes[Index])); MyStr2[Index*2] := TO_BYTE(BYTE_TO_HEXinASCII(SHR(MyBytes[Index],4))); END_FOR Same lib. Please read a little the help.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T08:02:15.807000Z</published><updated>2021-12-29T08:02:15.807000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR OR FOR Index := 0 TO 4 DO MyBytes[Index] := SHL(HEXinASCII_TO_BYTE(MyStr[Index*2]),4) + HEXinASCII_TO_BYTE(MyStr[Index*2 + 1]); END_FOR HEXinASCII_TO_BYTE is part of Util lib. Sometimes things are easier than it first look.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T07:47:56.040000Z</published><updated>2021-12-29T07:47:56.040000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR HEXinASCII_TO_BYTE is part of Util lib. Sometimes things are easier than it first look.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T07:45:57.557000Z</published><updated>2021-12-29T07:45:57.557000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR OR LastIndexHalved := SIZEOF(MyBytes)/SIZEOF(MyBytes[0])/2; FOR Index := 0 TO LastIndexHalved DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]) * 16#FF + HEXinASCII_TO_BYTE(MyStr[Index + 1]); END_FOR HEXinASCII_TO_BYTE is part of Util lib. Sometimes things are easier than it first look.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T07:39:44.057000Z</published><updated>2021-12-29T07:39:44.057000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR OR LastIndexHalved := SIZEOF(MyBytes)/SIZEOF(MyBytes[0])/2; FOR Index := 0 TO LastIndexHalved DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index] * 16#FF + MyStr[Index + 1]); END_FOR HEXinASCII_TO_BYTE is part of Util lib. Sometimes things are easier than it first look.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T07:37:30.542000Z</published><updated>2021-12-29T07:37:30.542000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR OR LastIndexHalved := UPPER_BOUND(MyBytes,0)/2; FOR Index := 0 TO LastIndexHalved DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index] * 16#FF + MyStr[Index + 1]); END_FOR HEXinASCII_TO_BYTE is part of Util lib. Sometimes things are easier than it first look.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T07:34:36.071000Z</published><updated>2021-12-29T07:34:36.071000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR HEXinASCII_TO_BYTE is part of Util lib. Sometimes things are easier than it first look.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187" rel="alternate"/><published>2021-12-29T07:33:37.816000Z</published><updated>2021-12-29T07:33:37.816000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#4187</id><summary type="html">FOR Index := 0 TO 9 DO MyBytes[Index] := HEXinASCII_TO_BYTE(MyStr[Index]); END_FOR</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#8047" rel="alternate"/><published>2021-12-27T19:16:54.633000Z</published><updated>2021-12-27T19:16:54.633000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#8047</id><summary type="html">actually, looping from 0 to 10 is 11 loops on a string of 10 chars. then if you want to get a byte value, don't concatenate 2 chars into a word. just take lower byte once at a time.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#c71e" rel="alternate"/><published>2021-12-27T15:22:48.851000Z</published><updated>2021-12-27T15:22:48.851000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#c71e</id><summary type="html">Did you had a look at OSCATT lib ? HEX_TO_BYTE seems to apply. Also there is WORD_AS_STRING in utils, but you need the exact opposite.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#c71e" rel="alternate"/><published>2021-12-27T15:18:51.969000Z</published><updated>2021-12-27T15:18:51.969000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#c71e</id><summary type="html">Did you had a look at OSCATT lib ? HEX_TO_BYTE seems to apply. Also there is WORD_AS_STRING in utils, but you need the exact opposite. Maybe a union of string(30) Byte(31) may do the job ? (string is 1 byte longer than character number, to store the null char which ends the string)</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#c71e" rel="alternate"/><published>2021-12-27T15:18:15.521000Z</published><updated>2021-12-27T15:18:15.521000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/08a62e7cba/?limit=250#c71e</id><summary type="html">Did you had a look at OSCATT lib ? HEX_TO_BYTE seems to apply. Also there is WORD_AS_STRING, you need the exact opposite. Maybe a union of string(30) Byte(31) may do the job ? (string is 1 byte longer than character number, to store the null char which ends the string)</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b4f520734e/?limit=250#7bc7/c882/81be" rel="alternate"/><published>2021-12-20T12:12:20.297000Z</published><updated>2021-12-20T12:12:20.297000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/b4f520734e/?limit=250#7bc7/c882/81be</id><summary type="html">I would add that oscat is not known for its forum but for its very complete and nicely written library. They provide some function description and exemples in english and german. Actually, what you are asking is totally provided in the software help. You might not find it for some reasons, but it is. Being mad won't help you at all. Take a cold beer and chill :)</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b4f520734e/?limit=250#b74d" rel="alternate"/><published>2021-12-17T15:03:29.365000Z</published><updated>2021-12-17T15:03:29.365000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/b4f520734e/?limit=250#b74d</id><summary type="html">Please, have a search in Online Help before posting. The store also contains free code exemples and libs like oscat that suits your needs Codesys store</summary></entry><entry><title>dFx posted a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#4d4f" rel="alternate"/><published>2021-12-17T07:12:49.041000Z</published><updated>2021-12-17T07:12:49.041000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#4d4f</id><summary type="html">Maybe you could have a read of Online Help - Task configuration Watchdog is a protection mecanism. I don't know the exact behavior, but scheduling a task shorter than its execution time usually leads to schedule kill by the OS.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ab67ae4e1a/?limit=250#6296" rel="alternate"/><published>2021-12-17T07:01:33.635000Z</published><updated>2021-12-17T07:01:33.635000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/ab67ae4e1a/?limit=250#6296</id><summary type="html">I think the issue is that the compiler cannot take a function as a value/variable for a function block input in a declaration. When you do the first and 3rd declaration, you link the input to a variable. But with 2nd one, you link it to the result of a function.</summary></entry><entry><title>dFx modified a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee" rel="alternate"/><published>2021-12-15T14:29:12.577000Z</published><updated>2021-12-15T14:29:12.577000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee</id><summary type="html">1. Pros Freewheel task length can be increased without much care Gives the fastest treatment and I/O refresh if you only need a task Cons As next scan depends on previous scan time, scan time is inconsistent with jitter, depending on your code and the machine situation Don't use it with any PID/PWM regulator, it's a bad idea (really bad) 2. Pros As scan times are more consistent, the machine tends to react the same, even if you have difference in scanned code from cycle to cycle Tasks can be priorized...</summary></entry><entry><title>dFx modified a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee" rel="alternate"/><published>2021-12-15T14:28:36.075000Z</published><updated>2021-12-15T14:28:36.075000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee</id><summary type="html">1. Pros Freewheel task length can be increased without much care Gives the fastest treatment and I/O refresh if you only need a task Cons As next scan depends on previous scan time, scan time is inconsistent with jitter, depending on your code and the machine situation Don't use is with any PID/PWM regulator, it's a bad idea (really bad) 2. Pros As scan times are more consistent, the machine tends to react the same, even if you have difference in scanned code from cycle to cycle Tasks can be priorized...</summary></entry><entry><title>dFx modified a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee" rel="alternate"/><published>2021-12-15T14:28:21.833000Z</published><updated>2021-12-15T14:28:21.833000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee</id><summary type="html">1. Pros Freewheel task length can be increased without much care Gives the fastest treatment and I/O refresh if you only need a task Cons As next scan depends on previous scan time, scan time is inconsistent with jitter, depending on your code and the machine situation Don't use is with any PID/PWM regulator, it's a bad idea (really bad) 2. Pros As scan times are more consistent, the machine tends to react the same, even if you have difference in scanned code from cycle to cycle Tasks can be priorized...</summary></entry><entry><title>dFx posted a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee" rel="alternate"/><published>2021-12-15T14:28:06.064000Z</published><updated>2021-12-15T14:28:06.064000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/e8a4d63391/?limit=250#83ee</id><summary type="html">1. Pros Freewheel task length can be increased without much care Gives the fastest treatment and I/O refresh if you only need a task Cons As next scan depends on previous scan time, scan time is inconsistent with jitter, depending on your code and the machine situation Don't use is with any PID/PWM regulator, it's a bad idea (really bad) 2. Pros As scan times are more consistent, the machine tends to react the same, even if you have difference in scanned code from cycle to cycle Tasks can be priorized...</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#9db6" rel="alternate"/><published>2021-12-14T08:57:08.807000Z</published><updated>2021-12-14T08:57:08.807000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#9db6</id><summary type="html">If you don't need access, just uncheck them from the list. If you can't this may be due to an attribute of your GVL : symbol You will have to manually check each variable you want. Edit : Fixed link</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#9db6" rel="alternate"/><published>2021-12-14T08:56:05.091000Z</published><updated>2021-12-14T08:56:05.091000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#9db6</id><summary type="html">If you don't need access, just uncheck them from the list. If you can't this may be due to an attribute of your GVL : symbol Edit : Fixed link</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#9db6" rel="alternate"/><published>2021-12-14T08:54:28.491000Z</published><updated>2021-12-14T08:54:28.491000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#9db6</id><summary type="html">If you don't need access, just uncheck them from the list. If you can't this may be due to an attribute of your GVL : Linkalways</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#2ff4" rel="alternate"/><published>2021-12-13T13:39:50.894000Z</published><updated>2021-12-13T13:39:50.894000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e2e8341339/?limit=250#2ff4</id><summary type="html">Hi, did you had a look at Symbol Configuration ? Have a good day.</summary></entry><entry><title>dFx modified a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6ae1b1ff98/?limit=250#90b4" rel="alternate"/><published>2021-11-25T09:07:32.995000Z</published><updated>2021-11-25T09:07:32.995000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/6ae1b1ff98/?limit=250#90b4</id><summary type="html">I was worried we went a little too far on this topic, but you clearly went a step further. Just about the real comparaison, real values are stored as IEEE format (see : https://en.wikipedia.org/wiki/Single-precision_floating-point_format#IEEE_754_single-precision_binary_floating-point_format:binary32 ). That's a good exemple why you need to type cast and compare values knowing the datatype you are comparing. great input 👍 Edit : Typo</summary></entry><entry><title>dFx posted a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6ae1b1ff98/?limit=250#90b4" rel="alternate"/><published>2021-11-25T08:03:40.782000Z</published><updated>2021-11-25T08:03:40.782000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/6ae1b1ff98/?limit=250#90b4</id><summary type="html">I was worried we went a little too far on this topic, but you clearly went a step further. Just about the real comparaison, real values are store as IEEE format (see : https://en.wikipedia.org/wiki/Single-precision_floating-point_format#IEEE_754_single-precision_binary_floating-point_format:binary32 ). That's a good exemple why you need to type cast and compare values knowing the datatype you are comparing. great input 👍</summary></entry><entry><title>dFx posted a comment on ticket #150</title><link href="https://forge.codesys.com/forge/support/150/?limit=250#9234" rel="alternate"/><published>2021-11-19T09:23:03.472000Z</published><updated>2021-11-19T09:23:03.472000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/support/150/?limit=250#9234</id><summary type="html">This may also be related : https://forge.codesys.com/forge/talk/search/?q=1561709038%2C+0x00000018&amp;project=0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#5f9d" rel="alternate"/><published>2021-10-06T06:45:32.099000Z</published><updated>2021-10-06T06:45:32.099000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#5f9d</id><summary type="html">As you stated : an XML file (or another type of file) So I beg you may use some easier format to read, or just do some string search to the property you need, without using DOM.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#19ef" rel="alternate"/><published>2021-10-05T14:21:37.657000Z</published><updated>2021-10-05T14:21:37.657000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#19ef</id><summary type="html">You can read a file at first scan, but as file operations are asynchronous (takes more than one task cycle), you need to add some code to block the execution requiring the variable to be correctly initialized.</summary></entry><entry><title>dFx posted a comment on discussion Runtime 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e624df60c3/?limit=250#bbda" rel="alternate"/><published>2021-10-04T14:44:17.108000Z</published><updated>2021-10-04T14:44:17.108000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Runtime/thread/e624df60c3/?limit=250#bbda</id><summary type="html">What is the database size ? Depending on the requests you do, if the database is growing over time, that may explain some not rolled back issue.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/02cc76cec1/?limit=250#0d62/060b" rel="alternate"/><published>2021-10-04T14:25:08.455000Z</published><updated>2021-10-04T14:25:08.455000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/02cc76cec1/?limit=250#0d62/060b</id><summary type="html">Feels like endiantness issue between your 2 systems. Try word swaping and/or byte swaping. With A=15,B=8E,C=41,D=00 Result shown by your screenshot is Little Endian, DCBA. I bet you expect 8.005262, which is Mid-Little Endian, CDAB (just byte swaping, in each words). More tries here : https://www.scadacore.com/tools/programming-calculators/online-hex-converter/</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/02cc76cec1/?limit=250#0d62/060b" rel="alternate"/><published>2021-10-04T14:24:09.839000Z</published><updated>2021-10-04T14:24:09.839000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/02cc76cec1/?limit=250#0d62/060b</id><summary type="html">Feels like endiantness issue between your 2 systems. Try word swaping and/or byte swaping. With A=15,B=8E,C=41,D=00 Result shown by your screenshot is Little Endian, DCBA. I bet you expect 8.005262, which is Mid-Little Endian, CDAB. More tries here : https://www.scadacore.com/tools/programming-calculators/online-hex-converter/</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/29df2ddf3b/?limit=250#3aea" rel="alternate"/><published>2021-09-29T07:00:47.397000Z</published><updated>2021-09-29T07:00:47.397000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/29df2ddf3b/?limit=250#3aea</id><summary type="html">I feel like your actual problem has nothing to do with your topic title. It may be better for search purpose to split the topic. Anyway, your problem is more some generic code thinking related issue. If your car is crashed because it went too fast on ice, it shouldn't be "not crashed" because it lowers its speed (feels like it usually happens when you crash your car). So you must decide what is the behavior of the crashed property of your car (does it stays at TRUE forever once a crash occured ?...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9324a2bec5/?limit=250#be44" rel="alternate"/><published>2021-09-28T06:13:09.047000Z</published><updated>2021-09-28T06:13:09.047000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/9324a2bec5/?limit=250#be44</id><summary type="html">What about using the JSON lib ? https://forge.codesys.com/lib/pro-json/home/Home/</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2b50819943/?limit=250#f557" rel="alternate"/><published>2021-08-09T11:43:47.081000Z</published><updated>2021-08-09T11:43:47.081000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/2b50819943/?limit=250#f557</id><summary type="html">As said by the console, it seems that you are calling a "Controller_PID" functionBlock, using an instance of type "Ctrl.Controller_PID". Codesys obviously won't compile because the two types doesn't match. Try setting your type to Controller_PID, or change the type of the functionblock call to Ctrl.Controller_PID. Regards, dFx</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/84cf674c21/?limit=250#6626" rel="alternate"/><published>2021-08-05T14:39:10.404000Z</published><updated>2021-08-05T14:39:10.404000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/84cf674c21/?limit=250#6626</id><summary type="html">What about zeroing your buffer once you copied it (TCPRead2_MessageRX) ?</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#e7a0" rel="alternate"/><published>2021-07-29T12:30:15.999000Z</published><updated>2021-07-29T12:30:15.999000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#e7a0</id><summary type="html">Though that having a COM port on your hardware was a requirement already met.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#e7a0" rel="alternate"/><published>2021-07-29T12:03:47.028000Z</published><updated>2021-07-29T12:03:47.028000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#e7a0</id><summary type="html">Though that having a COM port on your hardware was so requirement already met.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#3fca/b38f/2734" rel="alternate"/><published>2021-07-29T07:31:04.886000Z</published><updated>2021-07-29T07:31:04.886000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#3fca/b38f/2734</id><summary type="html">The library is installed with codesys when you install it. There is no need to browse for it, either to install it separatly. Just add it to your library manager, into your project.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#3fca" rel="alternate"/><published>2021-07-29T06:33:28.681000Z</published><updated>2021-07-29T06:33:28.681000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#3fca</id><summary type="html">Right clic your device in HW tree, then add the modbus master or device. Also, please make your own search before posting : https://help.codesys.com/webapp/_cds_adding_libraries_to_project;product=codesys;version=3.5.17.0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#2a84" rel="alternate"/><published>2021-07-29T06:14:57.609000Z</published><updated>2021-07-29T06:14:57.609000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d2de7ded8a/?limit=250#2a84</id><summary type="html">Some help on modbus configuration : https://help.codesys.com/webapp/_mod_f_configurator;product=core_modbus_configuration_editor;version=3.5.14.0 Some libs : Master : https://help.codesys.com/webapp/idx-IoDrvModbus-lib;product=IoDrvModbus;version=3.5.17.0 Slave : https://help.codesys.com/webapp/idx-IoDrvModbusSerialSlave-lib;product=IoDrvModbusSerialSlave;version=3.5.17.0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c10a59cc78/?limit=250#4782" rel="alternate"/><published>2021-07-27T13:56:46.363000Z</published><updated>2021-07-27T13:56:46.363000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/c10a59cc78/?limit=250#4782</id><summary type="html">What is your oscat net lib version ? What is the name of the block returning the error ? DLOG_STORE_FILE_CSV ? What is your hardware ? Network lib is a codesys 2 lib AFAIK. May be the issue is from the port ? OSCAT forum's may be a more suitable place for your request.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3ee89b155b/?limit=250#8fe2" rel="alternate"/><published>2021-04-06T06:16:05.203000Z</published><updated>2021-04-06T06:16:05.203000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/3ee89b155b/?limit=250#8fe2</id><summary type="html">Did you had a look at the store ? For instance, there's an SQL framework that may suit well your needs. https://store.codesys.com/sql4codesys.html?___store=en</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/40ba2c630d/?limit=250#d61b" rel="alternate"/><published>2021-04-02T06:16:58.290000Z</published><updated>2021-04-02T06:16:58.290000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/40ba2c630d/?limit=250#d61b</id><summary type="html">Just have a look at driver's help inside SCADA Expert. You will have some addressing exemples. Regards, dFx</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/54089e5ba5/?limit=250#0ee4" rel="alternate"/><published>2021-04-01T13:45:40.661000Z</published><updated>2021-04-01T13:45:40.661000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/54089e5ba5/?limit=250#0ee4</id><summary type="html">https://forge.codesys.com/forge/talk/Runtime/thread/fa7a703b16/?limit=250#d388</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7a00bc35ce/?limit=250#216a" rel="alternate"/><published>2021-03-25T12:37:16.080000Z</published><updated>2021-03-25T12:37:16.080000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/7a00bc35ce/?limit=250#216a</id><summary type="html">10ms is quite unusually fast even for a web gif image targeting a standard PC. So I wouldn't expect it to perform great on a panel (that is basically a very low end pc) running with 256MB of RAM on a ARM Cortex-A8 - 600 MHz. With such specs, I would not expect more refresh than twice a second on a very empty page.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d30f88eefc/?limit=250#500d" rel="alternate"/><published>2021-02-10T07:09:06.654000Z</published><updated>2021-02-10T07:09:06.654000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/d30f88eefc/?limit=250#500d</id><summary type="html">Isn't IP address handled by the ethernet adapter rather than the protocol ? Did you had a look at IoDrvEthernet ? https://help.codesys.com/webapp/idx-IoDrvEthernet-lib;product=IoDrvEthernet;version=3.5.14.0</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4cf97cc85f/?limit=250#e605" rel="alternate"/><published>2021-02-05T08:54:09.706000Z</published><updated>2021-02-05T08:54:09.706000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/4cf97cc85f/?limit=250#e605</id><summary type="html">What about https://help.codesys.com/webapp/yePjxWIB36goBg4qOqNVpO-2vmA%2FGetDeviceState;product=IoDrvModbus;version=3.5.16.0 About the behavior, it may be something related with your request rate, but I can't help much.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/80388c689c/?limit=250#cefb" rel="alternate"/><published>2021-02-05T08:49:23.882000Z</published><updated>2021-02-05T08:49:23.882000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/80388c689c/?limit=250#cefb</id><summary type="html">Feels like some nerdish code writing style. String is no more than a byte array. With this in mind, to get the same length than the word array, you need to double the word array length. You could define string(250) and it would also work. Actually as 125x2 is a constant, it is probable that the compiler will just compile the same.</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/80388c689c/?limit=250#cefb" rel="alternate"/><published>2021-02-05T08:47:22.127000Z</published><updated>2021-02-05T08:47:22.127000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/80388c689c/?limit=250#cefb</id><summary type="html">Feels like some nerdish code writing style. String is no more than a byte array. With this in mind, to get the same length than the word array, you need to double the word array length. You could define string(250) and it would also work.</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01640fa259/?limit=100#bcf4" rel="alternate"/><published>2021-02-01T10:46:00.701000Z</published><updated>2021-02-01T10:46:00.701000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/01640fa259/?limit=100#bcf4</id><summary type="html">Real to dword tries to PUT the real value inside a dword value, meaning it is trying to get the same values on your two variables. So, if the real value is outside the dword value range, this will produce an error. Online help states : If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor type and is therefore undefined. This is the case, for example, when a negative operand value is converted from...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4155d7d1ce/?limit=100#8e66" rel="alternate"/><published>2021-02-01T10:35:12.416000Z</published><updated>2021-02-01T10:35:12.416000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/4155d7d1ce/?limit=100#8e66</id><summary type="html">I don't know about LENZE, but FESTO is acting in a similar way. They have 2 libs for motion. The first one is using their standard, and does not comply with PLC OPEN blocks. The second, uses PLC OPEN. Maybe LENZE provides the same. If not, then you will have to manage this like the old school way, using control word and status word. Or may be that's already the purpose of their lib. About units and scaling, you should be able to do it in the drive, and if you need it done at runtime, then you really...</summary></entry><entry><title>dFx modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01640fa259/?limit=100#bcf4" rel="alternate"/><published>2021-02-01T10:24:48.392000Z</published><updated>2021-02-01T10:24:48.392000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/01640fa259/?limit=100#bcf4</id><summary type="html">Real to dword tries to PUT the real value inside a dword value, meaning it is trying to get the same values on your two variables. So, if the real value is outside the dword value range, this will produce an error. Online help states : If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor type and is therefore undefined. This is the case, for example, when a negative operand value is converted from...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01640fa259/?limit=100#bcf4" rel="alternate"/><published>2021-02-01T10:21:28.824000Z</published><updated>2021-02-01T10:21:28.824000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/01640fa259/?limit=100#bcf4</id><summary type="html">Real to dword tries to PUT the real value inside a dword value, meaning it is trying to get the same values on your two variables. So, if the real value is outside the dword value range, this will produce an error. Online help states : If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor type and is therefore undefined. This is the case, for example, when a negative operand value is converted from...</summary></entry><entry><title>dFx posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a076c9bea0/?limit=100#b566" rel="alternate"/><published>2021-01-19T12:24:30.120000Z</published><updated>2021-01-19T12:24:30.120000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/a076c9bea0/?limit=100#b566</id><summary type="html">If you communicate in EIP, then you have a gateway between IO-Link and EIP. The way you should read/write IO-Link data depends on your device. Just download the EIP manual of it, take a comfy chair and start reading.</summary></entry></feed>