Jump to content

GonzaloRoldan_

Members
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by GonzaloRoldan_

  1. Hi!

    Sorry for the delay, but I was working on that because I needed to solve it asap.

    The DTI can be sorted from the beginning. 
    The number of rows is variable (no more than 20).

    I managed to work it out, it wasn't the most efficient way I think, but it works. If someone needs it, just tell me and I'll post it here.

    Cheers people!

     

  2. Hi people!

    I'm developing a project with UniLogic v1.25.61 for the UniStream USP-104-B10. 

    I need to sort an entire Data Table (2 columns, A and B), sorting just one column (A), has anyone ever try this?

    The other option is to have 2 arrays (A and B), sort one (A) of them and then I need to sort the other one (B) the same way I sorted the first one (A).

    I don't know if I'm being clear enough so here you have an example:

    Before sorting: A={1,4,2,3} B={Q,W,E,R}

    After sorting just column A or array A: A={1,2,3,4} B={Q,E,R,W}

    Thanks in advance!

    Cheers,

    Gonzalo

  3. Hi everyone!

    I'm developing a project with UniLogic v1.25.61 for the UniStream USP-104-B10. 

    Everything's working well, but I made some changes in some buttons and fixed texts of the WebServer and when I download the project to the PLC and surf in the WebServer, the texts are not updated but everything else is refreshed.

    I've tried Full Download, but it's not working. I also try surfing in the WebServer from a new PC, but it's the same. 

    Have anyone experience this before? It's quite strange because all the other functions of the WebServer are updated, but not the texts!

    Thanks in advance,

    Gonzalo

  4. 3 minutes ago, Flex727 said:

    I don't know the answer to your question, but are you trying to count the grains of sand on Padre Island National Seashore? :)

    Hahaha, something like that!..

    No, the real reason is that I need to calculate this: image.png.133ce52c4327c015ed9aa903f613d51d.png and sometimes the "n" is bigger than 13, so it doesn't fix in 4 bytes.

  5. Hi Orso and Flex. First of all, thanks for your answers!
    Considering what both are saying, I understand that it's not possible to do it.

    The reason why I wanted to do it @Flex727 was that the vector size depends on the result of a mathematical equation, which most of the time is under 100 combinations, but sometimes is over 10000 combination. And I did not want to create a vector which length is 10000 when around 90% of the time, it won't be needed to be more than 100 of length.

    But no worries, I'll do what you recommend.

    Thanks again!

     

  6. Hi!
    I'm programming an UniStream Modular USP-070-B08 + CPU USC-P-B10 with UniLogic v1.25.61.
    I want to create an array of INT16, which its length, will be set by the user through the HMI. Is it possible? Because when I create the array in Ladder, I can only set a constant value for the array's length.

    I want to try something similar with the number of rows for a table.
    Thanks in advance!

  7. Hey Aus..

    They seem to be completely different as you said..
    You're right about the existence other models that have more HCS inputs, but the point is that I chose and bought this model because it has others features I need (PT100, analog inputs, PWM, transitor outputs, etc.). So I bought the expansion I mentioned before in order to reach the number of HCS I was needing (an other features of course), thinking they work the same way as the onboard IOs do. So if there's no other option, I'll have to reset it by hardware.. But I'm still surprised that it's impossible to do it by software, it's kind of weird. 

    Cheers,

    Gonza

  8. 1 hour ago, Joe Tauser said:

    I must admit in all my years I've never used the 16 bit HSC on an I/O module.  It seems to be more of an academic feature than anything else, as emphasized by the discussion on this forum.  The inability to externally control it and it's 16 bit integer-only property really limits what this can be used for.

    In the Expansion program, a virtual reference point is created in MI 2 and MI 1 becomes the new value.

    What happens when the real and true value in MI 0 rolls over (exceeds 32767) and MI 2 becomes larger than MI 0?  The MI 1 counter value will become negative.

    Unless I'm missing some other details, I don't think this will work.

    @GonzaloRoldan_ - I think you will be best served by adding a CANbus card to your V350 and implementing an EXF-RC15 module.   This will give you three more full-powered HSC inputs.

     

    Joe T.

    Hi Joe!..

    As Ausman said, you can use an ML o DW, buy it'll has a finite limit like you comment. 

    I'll consider the EXF-RC15 module for future machines, but in this case I have to solve it without it. If there's no possibility to implement a reset via software, I'll do it via hardware associating a DO to the physical reset of the HSCs.

    43 minutes ago, Ausman said:

    I agree with Joe, the base count that everything else is derived from is still operating on a number that has a finite limit.  And it can't be reset via software.  Even if MI0 is changed to a ML the same situation exists.  Sooner or later it's going to be full.  The comment file itself says: "At Power Up, MI 0, which is linked to the HSC will be automatically initialized."  which is a recognition of the problem.  And I agree about the RC15.

    But...given that I have never used HSC, can someone explain to me the intricacies of how it works.  In looking at snap-in wiring diagrams, we have 2 HSC, and it looks like there is an input and a reset.  X 2!  And the specs show it as 2 x HSC as well.  Why does this equate to only one HSC for Gonzalo's needs?  Or have I missed something here?

    Aus.

    Hey Ausman!

    I agree with you too.. I have to say that I don't know very well how it works. The V350 model that I have, has only 1 HSC, it's the V350-35-TA24.

    Cheers,

    Gonzalo

  9. Hi people!!

    Thanks everyone for the interest and the  willingness about this topic. I'm learning new things I haven't thought before, as Flex said.

    6 hours ago, Cara Bereck Levy said:

    Hi guys--I just pinged Support and asked one of the commandos to have a look here.
    If I need to clarify the Help--no problem :)

    @GonzaloRoldan_ Please feel free to write to Unitronics' headquarters for support as well, regarding your issues. support@unitronics.com.
    (y puedes escribir en Castellano, si tu quieres--uno de nuestro ingenieros de soporte, Eduardo, es de Argentina)

    Perfecto Cara!! Lo tendré en cuenta también para futuras cuestiones. Finalmente me dieron soporte desde los representantes de Argentina, aunque no hemos llegado a un conclusión aún. Muchas gracias por la amabilidad.

    3 hours ago, Guy Sela said:

    Hi Guys,

    There is no direct option to reset HSC which is on expansion unit.

    Attached is application which implements resetting HSC using virtual HSC.

    In the attached application instead of working directly with the MI that linked to the HSC (which you are unable to change/reset) working with the virtual HSC.

     

    Expansion HSC reset.vlp

    That's a good way to avoid using hardware reset. Thanks for sharing Guy Sela! I might implement something similar..  

  10. 13 hours ago, Gabriel Franco said:

    As far as I know and remember, using expansion modules, require you to use hardware reset for HSC.

     

    I didn't know that and I think it's not well explain anywhere (help files, installation guides, etc) as other people said in this forum..  Where did you read that?

    13 hours ago, Ausman said:

    I've just looked at hardware configs and it is interesting that HSC Reload only appears for snap-ins, perhaps other controls only work on snap-ins as well.  So Gabriel and Flex are probably right in their thoughts.  It seems strange that a reset on an expansion requires a full hardware reset.  What Gonzalo wants doesn't seem to be too unusual.  Creators please!

    Aus

    I completely agree with you Aus!.. At the moment I made it work but using a digital output connected to both hardware reset pins of the HSCs, but that's really useless.. It's strange that people cannot reset it by soft. As you say, it doesn't seem to be too unusual.

    21 minutes ago, Flex727 said:

    @Cara Bereck Levy, this issue might need to be addressed in more detail in the help file. If there is a difference between Snap-In and expansion modules in how the HSC behaves, the customer needs to know for proper hardware selection.

    Thanks Flex.. We'll see. By the way, I contacted Argentinian's Unitronics Support, but the didn't answer.

     

    Cheers people!

    Gonzalo

  11. 16 hours ago, Joe Tauser said:

    Post your code.  I have a V350 I can load it into.

    Joe T.

    Hey Joe T.

    I would like to post it, but my boss does not allow me to post the whole program. I'll try to reduce it and give it to you.

    4 hours ago, Gabriel Franco said:

    I can reset ML counter without issue. In hardware configuration, set HSI as a High Speed Counter using an ML operand, then in ladder resetting ML as needed.  

    I use HSC with SNAP-IN.

    image.png.7ec7a8d82253a7dfb7fc83ec41e463ee.png

    image.png.640063583b6571f26d83430032d7742d.png

    Hey Gabriel!..
    I have just tried using HSC with snap in, and I could reset it.. The problem is when I try to reset the HSC of the expansion module IO-D16A3-RO16, I can't make it work. And I do need to use it, because I have to use 2 HSC and the V350 has only one.

    Thanks!

×
×
  • Create New...