Jump to content

ncbc

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ncbc

  • Rank
    Newbie
  1. I am not using the data in the other columns at the moment. That column is a string, I don't really like how it doesn't clearly indicate it's going to write to the following 5 memory locations when it reads a string. I see the INTs are 16 bit and not 8 bit and it is stored little endian that was throwing me for a loop a little bit. I read up on the documentation on the direct read, and I was really underwhelmed with the detail in it. I was hoping to use it to store some graphical data. The one I linked to above is still the best resource I've found on direct read and it still seems lacking. The problem turned out to the the ML was storing the 8bit values in each Long. So it was using up the 6 character size with a bunch of nulls. GOOD FOR NUMBERS, BAD FOR STRINGS!
  2. I'm glad it's not just me having trouble with it. I started out using the row read element, but it was unclear to me how to provide a defined vector for it to put the element into memory. I can point it to ML 0, but it's only reading the first 4 bytes from the datatable The Code is super minimal. When I press F4 load the data from the data tables to the vector ML 0-6 then switch to the name screen with an ASCII text field that reads from that vector. Perhaps I am using the wrong datatype? Longs may be doing something weird? But I really would like to learn how to use the direct read/write. Is it actually bugged and not workable for strings/vectors?
  3. Hello, I'm trying to familiarize myself with programming a "vision 280" plc. I have a programming background and it's been pretty straightforward for the most part. One thing I have been having trouble with however is using the direct read and write to the data tables. I didn't for example know that they had their own memory address system until I found a reference to it in this doc: http://www.side-automatizacion.com/es/system/files/suport/visilogic20-20function_blocks.pdf Anyways here is what I would like to do. I would like to read "chuck" at ram 10 from the data table and put it in the vector ML 0-6 Then display it in an ascii text field The problem is I have gotten very inconstant results. Data I cleared from the data table sometimes shows up, it seems like it wants a memory END rather than an offset. I am sure there is an easier way to get strings out of the data table, but I would really prefer to learn the tools.
×
×
  • Create New...