Jump to content

Copying data from an array to a table

Recommended Posts


Unilogic version: 1.36.63
Hardware: USC-B10-T42

I am trying to fill a table with data received from an periodic modbus Read Holding Registers(3) operation. The data consists of 255 UINT16 datapoints. Because of the limit of 250 bytes I had to split it up into 3 different arrays. But I cannot find a function that could be used in a foreach or for loop to populate a indexed data table one column at a time (it's not possible to use an index iterator in a struct). I have tried to use a struct variable in the modbus operation directly (Via Add new struct)  but then the values are being forced back to 0 and for some reason not copied into the table via the "LF: Insert Row to DTI" function.

Kind regards,

Erwin Kempenaar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...