vijolica - 2020-04-10

Hi Guys,

I Have array with uint values.I would like to write this array in .csv file. Every value in separate row.

I tried to do it with Beckhoffs example: https://infosys.beckhoff.com/english.php?content=../content/1033/tcplclib_tc2_utilities/36028797054383755.html&id=2282274206105587986 But without success.

arrValues : ARRAY [0..Main.Arrlen] OF UINT;

  1. Start the measurement;
  2. send request to sensor with FB_SocketSend;
  3. get the response FB_SocketReceive;
  4. write array into .csv file: Using FB_FileOpen, FB_FileWrite, FB_FileClose (FB_FilePuts is only for string values); Here is used only FB_Open and FB_Write;
  5. We go back to point 1. and 2 as long as we want;
  6. ending measurement (then is also FB_FileClose used)

Unfortunately i am not getting the measurements that i want: If using BinaryMode (from example) are no good values if using TextMode (from example) the values are good but not all rows are written, just till LEN 255. Any idea what to change that it will be working?

Thank you.