Jump to content

bjarni

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by bjarni

  1. Hello, I was moving my Unlogic project to another computer (two other computers actually) and upgrading it to the newest version (1.32.98). 

    Everything seems normal on one computer(A) , but when I move to the other one (B) I get the "THe project currently in the PLC does not match the current project" when trying to get Online  albeit both computers are using the same project file.   

    If I try to download from (B) I get a message  "Unilog was unable to read Global Tags information from PLC..." and if I continue from there then it stops with a message about an unknown error - and nothing is downloaded.

    Anyone who has some input on this ?

    Thanks, Bjarni

     

     

     

  2. Hello, I'm wondering if my problem is a software one or hardware?  And what kind of issues could be causing it in each case.

    The system is alright when at rest, but when put to work (triggered  with input) it works fine for maybe 10-20 seconds and then I get a "CPU in stop mode" message on the screen" and few second later a message about CPU error.

    I've removed the CPU unit and put it back on, but with no luck.   

    Does anyone have some hint for me?

     

    Thanks, 
    Bjarni

     

     

     

    20210318_085458.thumb.jpg.fe82b2e4b06d17ec16067326def49098.jpg

    20210318_085535.jpg

  3. Hello, I would like to push and retrieve data to and from the the internet directly from my Unistream. 

    I tried to connect to a server  on Amazon, a working database (MSSQL) we are using in another project.  But when doing a simple query I get error:

    "20009 Unable to connect to data source  Unable to connect: Adaptive server is unavailable or does not exists"

    image.thumb.png.52dabb8d4d82cafeec1ec8509d9af4c9.png

    Anyone here who could give me a hint on what I need to do?

    The Database is set up as "SQL Server" with IP-number and instance name,  database name, user name and password.

    Another question is if I can use other kind of web services to handle my data ?

    Thanks, 

    Bjarni Gudmundsson

     

     

     

  4. 18 hours ago, ORSO2001 said:

    you are calling the same function twice...I think that, in this case, the Frequecncy.Frequency1ms is consider as a static variable in this function...then its status will be propagted in the other calls after the first call...

    if you try the same but with two different function (UDFB) its will works...

    Yes, I know now :) - but it would be awkward to write the same function twice - just to catch this event.   Instead I made an global event or bit which is ON for one scan through the whole by putting this in the beginning in my Main:  
    image.png.e7f56caa21f1dc2594fbbf41aa484619.png

  5. Hello, I'm considering what is the scope of the Positive Transition Event in the program.  I thought it was supposed to stay on for one pass to the whole - but maybe that's not correct?

    In this example I'm catching the 100ms frequency and I'm checking it in a function which I call twice with different parameters - but the event only stays on in the first call to the function:

    image.png.e284f82f0571bb598c42935d1754e55c.png

    and in this case the TestFunc is only: 

    image.png.8358cb60f74575d37bf70d4761066ba0.png

    (N is the "Out" parameter)

    Is this as it is supposed to be?

     

    Thanks, Bjarni 

     

     

     

  6. Hello,
    I ran into problem where I had a screen with two instances of the same Custom control (see picture).

    image.thumb.png.c7e63d442e8192ebb5d1648f81a5d1d8.png

    Parameter to the control on left is TestFlag1 and on the right it's TestFlag2.  Accordingly THe light on left shows TestFlag1 ad the other is TestFlag2.

    When a button is pressed, a message box pops up and when OK is pressed there the value of the parameter (TestFlag 1-2) is toggled.  Problem is that it doesn't matter which button I press, there is only the value of TestFlag2 which gets toggled (i.e. light on right toggles no matter which button I press)

    If I skip the message box and do the toggle directly in the button press, the correct flags are always toggled.  Am I missing the correct way to do this or is it just something I have to work around ?

    image.thumb.png.ae28edc000ac95b16970a25ea90d8bb5.png


    Thanks,  Bjarni

  7. Hello, I've been trying to load a string from a c-function - without luck.  Made few approaches though.

    One example here:

    --------------------------------------------------

    char arr[3][32] =
    { "String 1",
      "String 2",
      "String 3"
    };

    // User code ends above this comment
    static void getString(unsigned short Index, volatile char* TheString, int TheStringLen)
    {
        // User code starts below this comment
               TheString =arr[Index]; 
        // User code ends above this comment
    }

    -----------------------------------------------------

    TheString defined as here: 

    image.png.8460024f91590165544f86ee5a65b471.png

     

    Is there a way to do it?

    Thanks, Bjarni

  8. Hello,
    I'm trying to poll some values from Laumas weight transmitter - and I'm kind of stuck.  I've tried to read some addresses according to the Laumas manual, but the power-up value in the receiving variable is never overwritten.   I get modbus status as -11, which I don't know what means.
     

    THe  setup:

    image.thumb.png.24c38a9b202316375f136d97020ab9df.png

    It should be reading all the time if set up as periodic and the active bit is set ?

    The values when running:

    image.png.caca0ef919a7a81938c5ede6195a163b.png

     

    Anybody with any hints for me?
    Thanks, Bjarni

  9. 27 minutes ago, Ausman said:

    I thought the D16A3 could already do what you want.  Quote from Install Guide:

    <<<<  Inputs 4 and 6 can function as high-speed counters, frequency measurers, or general purpose digital inputs (set in software).   Inputs 5 and 7 can function either as counter reset inputs or general purpose digital inputs (set in software).   >>>>

    If you are wanting to keep up with this read in "real time", you might run into issues due to the delays using the EX-RC1 via a bus.

    cheers, Aus

    Yes, but encoder isn't just a counter.  I need to stop/start motor at different positions at predetermined but variable degrees and I believe that I read somewhere  (maybe these forums) that fast counter isn't enough. 

  10. Hello, I have an Unistream panel and EX-RC1+ D16A3-RO16 + LC3 units hooked to it via CAN bus.  I have to read position from an encoder (with A, B and Zero inputs) and wonder if someone here would give me an suggestion regarding hardware for the job?   Should I just add an IO unit (and which one) or could I replace the D16A3 unit with another which also supports  encoder readings?

     

    Thanks, Bjarni

×
×
  • Create New...