Jump to content

V570 Add new row to DT or delete existing

Recommended Posts

Hello all, 


I am trying to do recipe control fully controllable from plc using SD card, I have program that read DT from SD , there can edit DT rows and save them in SD card. So I want to make more administration options like add new row (new recipe) or delete existing row from Data table. As I saw there is block to delete row, but didn't see to add it ;/ any suggestions ?


And would be another question ,  how to set my data table information cells to outputs/inputs? Something like heating temperature 100degree and colding temperature -20 degree of celsius. I need to use some relay logic to turn off heating panel?

Link to comment
Share on other sites

As you mentioned there are functions to both clear a row and to write information into an existing row. If you want to add information to the table you would need to ensure that there are available rows.


Most of the functions when writing information require the table to reference, the row number to read/write, and the operand information that will be written to the data table. When clearing a row it will only require which table you are referencing, and which row number to clear.


If you are unfamiliar with our data table functions I would recommend reviewing the example programs within VisiLogic. They can be found under the Help drop down menu by selecting Examples/ Version 900/ Project Examples/ Data table.


Also helpful are our series of webinars. We have one specifically that focuses on data tables.




In order to reference temperate information from the table you would need to read the values from the table and store them into operands. These operands could then be used within the logic to control any digital outputs using comparison statements, or analog outputs if linearized for a 0-10, 0-20mA, or 4-20mA channel.

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...