Jump to content

Plum

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Plum

  1. 8 minutes ago, Flex727 said:

     You have that column in the Data Table defined as an Integer. Use a Numeric element to display an integer number.

    Oh duh... Works like a charm now, thank you so much. I realize however this is not the most efficient way to do things, as it is not reusable. This will work for this project, but to further my learning how would you go about making it read and update HMI values for an unknown number of presets rather than copying each row into a vector for each preset u have. (Since that would become a large diagram if say 100  presets were required) Create a row counter that increments until it hits the end  of the allotted vector space and sets HMI values based on the row number?  That would lead to a lot of if statements checking the row number then, and would be the same thing as copying each row individually. 

  2. 3 minutes ago, Flex727 said:

    With just a quick glance, you are not allocating a vector of 10 MIs to your Recipe Name Read Row FB and overwriting your integer.

    Thank you so much, I was looking at the line above that one and completely forgot I had that read for the name leftover from awhile ago (where I didn't know I needed more than 1 MI slot). Now my watch shows the correct value after moving that MI slot somewhere else. Now my HMI displays an * in stead of the value, however i'm assuming thats because it is reading  it as an ascii code and not the literal string representation "4". Should I not be using an indirect string in this case and what should I use to display this number?

  3. The strings are completed, I allotted a vector of  20 mi's for each string. The issue I have currently is for reading integers. Project attached.

    Tongue Turner Revision 9 (Recipes Saved and Updated).vlp

     

     

    7 minutes ago, Flex727 said:

    In addition to what Joe said, I'll also note that a 20 character string will need to be placed into a vector of 10 MIs.

    11 minutes ago, Joe Tauser said:

    You did not show that actual logic you are using to read the data table, which is probably where the problem is.  Please upload your PLC program.

    Joe T.

  4. I am trying to set up a recipe system that updates an HMI display  once information is saved into a data table. I already have the String for recipe name working, however the Integer is not updating the display. If I read the table values from PLC into visilogic, the int values match what the user put in. However when I try to use the read column or read row and assign it to an MI, the MI value does not change  from 0. (Using an MI as an indirect string in library to  update the HMI Display). If anyone knows a better way to read ints from a plc data table and update an HMI text from it that'd be great. Or possibly information as to what I am  doing incorrectly with reading from the data table. This is my first project with visilogic and probably my second  time programming a PLC in general. The read bit is powered on  constantly, does it need to cycle off for the information to update? Any information is helpful, thank you. I've attached a picture of my attempt to just read one row into an MI slot, as well as a picture with the live watch of that MI slot and the read structure  and values from PLC table afterword

    Data Table Read Help.png

    Live Watch & Downloaded Table.png

×
×
  • Create New...