Jump to content

Interact

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Interact

  1. 13 hours ago, Joe Tauser said:

    1.  Remove power from it's coil

    I can build a network in U90 Ladder that would accomplish this for one cycle, but it seems clumbersome...

    13 hours ago, Joe Tauser said:

    2.  Use a Reset coil  -(R)  assigned to the timer's address.  If the timer is enabled and running it will reset its accumulator to 0.

    U90 Ladder doesn't allow me to use a Reset coil on T(imers). Only on MB, O and SB... or is there a trick I am missing?

  2. The documentation on the long integer store function says: " Setting SB82 before a Store function causes the 'A' value to be treated as a 32-bit 'long' value; the long value is then broken up into the 2 16-bit MIs constituting the 'B' value.  Resetting SB82 before a Store function causes the 'A' value to be treated as a 2 16-bit values; the values are then stored as a long 32-bit 'B' value. " (see http://www.unitronics.com/KnowledgeBase/U90Ladder/Ladder/Functions/Special_functions/_Long__Integer_functions.htm)

    I have tried this, but it seems to me that the JAZZ does exactly the opposite. I need to use a Reset to convert a 32-bit value to two 16-bit BCD values.

    Am I doing something wrong? Or is the documentation at fault?

     

  3. In U90Ladder I've tried to use the indirect clock function time. It allows you to specify a start and an end time and between these two times the output will be active. The problem I have is with the format in which it appears I have to specify these times. The time AB:CD is equal to the value A*4096 + B*256 + C*16 + D. In other words: the value is equal to that value which in hexadecimal representation reads like the time it is representing.

    Suppose I read the RTC using SI31. Suppose it is 12:34 and I want to know the time in hours and minutes. I will use SI31 and read the integer 1234. I divide by 100 to get the hours and in the remainder (SI4) I can find the minutes.

    Now I want to do the reverse. I start with 12 and 34. I have to divide 12 by 10, multiply the result by 6 and it this to 12. I then multiply this by 256. I then divide the minutes by 10, multiply by 6 and add the results to the minutes. I finally add the transformed minutes and hours to get the value I need for the indirect clock function:

    12/10 = 1

    1*6 = 6

    12 + 6 = 18

    18*256 = 4608

    34/10 = 3

    3*6 = 18

    34+18 = 52

    4608 + 52 = 4660 (which is 1234h)

    Can this be done simpler? (and as a bonus question: why on earth does this function not use the same format as SI31?)

  4. But is it a device specific deviation? So if it reads 480 (for a 500 signal) does that mean it will read 480 every time? Because, as said, that is simply a matter of calibrating. However if the same device will give 480 one time and 520 the next then I have a problem...

  5. I'm still not completely sure how to interpret this. 3% of 20mA is 0.6mA, or in 'raw-value' it is about 30 (of 1024). If I look at the measured analogue input, it's value is quite constant. So, and perhaps this conclusion is wrong, the 30 is not an error that happens from measurement to measurement. Is it an error between models?

×
×
  • Create New...