Jump to content

Saragani

Administrators
  • Content count

    817
  • Joined

  • Last visited

  • Days Won

    76

Saragani last won the day on May 29

Saragani had the most liked content!

Community Reputation

99 Excellent

6 Followers

About Saragani

  • Rank
    R&D Guru

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Saragani

    Trend To SD

    Maybe you are not appending to the file, but overwriting it? It's been a while since I last used the SD elements on VisiLogic.
  2. Saragani

    Error in region with no rungs

    Please send to project to our support, so me or someone else from the R&D will look at the project and will fix the problem.
  3. Saragani

    Alias name array in input cards

    The way alias name work is different than some other softwares. I've seen some softwares that supports both features: Give a name (Alias) to a sub member of a strcut for easier reading (instead of seeing UID-TO8RO8_1.Inputs[5] you can just call it "Air Conditioner" Link in IO to inputs or outputs to existing tags. I think that this is what you thought that will happen. Since UniLogic works with the first option, then giving an alias name to a tag with a name of an existing tag will cause a conflict, then it is forbidden. What you can do, is give your Alias name a different name (For example Hello2) Then use the Find and Replace in order to replace Hello with Hello2 Then delete Hello (since it is no longer in use, assuming it is an array you have created). Rename the Alias name from Hello2 to Hello.
  4. How about "Find in Array", and look for 1?
  5. Saragani

    UniLogic for macOS

    Yes.
  6. No, as much as I remember it's just the filename. You cannot store it in sub folders.
  7. Saragani

    Hiding Remote locations on your PC from crooks!

    Nice one. 👍
  8. I'm not sure why the status doesn't change to 0. Does it stay as 1 (in progress) or change to negative number (error)? For converting the current date into a string, I would use a UDFB someone wrote (You can find it in the examples). Download the example projects from our website. You should find a project called: UniStream_070_RTC_To_ASCII.ulpr Open that project, and export the function called RTC to ASCII. The re-open your project and import that function. Use that imported function (UDFB) in your ladder. The function accepts a format as input, and outputs the result as string. If you pass a format = 13, then you will get the date as MM-DD-YY, for example, 05-30-18. and if you pass format = 11, then the date will be as DD-MM-YY, for example 30-05-18 After you have that string, you can use "Inset String" element for adding the enreg suffix to the result string. If you need 4 year digits, no separator, and year appearing first, then you can edit the UDFB code, and add another format (like 14), that will do what's needed.
  9. It appears that you have collapsed your region (and expanded your Region comment). Click on the "Region Name" (nazev oblasti) in order to expand the region. Click on the Comment (Komentar) in order to collapse the comment. You have triangles near the region name and comment that suggests if its expanded or collapsed.
  10. "I will be comparing the status of the Store DTi to 0 just before starting the storage, if it's ok we can continue storing if it's not 0 it will wait ?" No. This will only work if the last request succeeded. If it ended with an error, then you will not be able to do any requests. You should check that the status is not 1 (in progress), and / or also the SD Busy bit.
  11. Under System.SD Files you have a bit called "Date DT Busy". If I understand correctly, then you need to use it. If you have 2 writes happening at the same time, then you will cause problems. In every file system, a file can have multiple readers, but only one writer. You can also use the status of the Store DTI. 0 means success (or no errors), 1 means in progress, and any negative number means error. As soon as you call the Store DTI to file, the status changes from 0 to 1, so you can check the value before trying to execute another write. When loading a DTI from file, you should also check the status (so no read is in progress, because either the file might be in use, or the table is currently being loaded from file.
  12. Saragani

    Exporting and Importing Modules issue...

    Hi, This is not a bug. Each tag and UDT have a unique ID (in this case, a GUID). Upon import, we look for tags with the same ID and see if both match in definition (and if so, we don't create a new tag, but use the existing one). I think (I don't remember, and I must look the code for confirming) that if a matching tag with the same ID is not found, then we look for a tag with the same name and then check if it matches. The same logic is being used when you copy paste something (like HMI element or a rung etc). Lets say you've copied a Binary Image element, deleted the original element, and then changed the linked bit to an Int16. You would want to preserve the working state of the copied element on paste, but on the other hand, not create a new Bit tag on every paste. The copied element can be either pasted on the same program, or on a different one. This is why we do it on both copy and paste.
  13. The idea was to protect the user from accessing an invalid cell index. You can use Load From Array and Store In Array elements in order to get or set values in array dynamically.
  14. You can define how many digits will show in a numeric box. You should have a property called "Decimal Precision which defines how many numbers will appear after the dot. The default is 3, so the number will look like: -9999999999.999 The bold part is what you control (just like with Int, but with Int, the entire number is divided by 10, 100, 1000 etc, so 65535 becomes 655.35 or 65.535). In Int16 the max number of digits is 5, and in Int32 it's 10 if I recall correctly. However, with Real numbers, you can get up to numbers like 10^38, and you can also get to numbers like 10^-38 (0.00000000000......00001) The next version of UniLogic will support Exponential Notation on Web and HMI, so numbers like 12345678901 will become 1.234E10 (when the decimal precision is 3. You can get more digits after the dot if you change the precision). If that exponential notation good enough for you? Besides that, you can reduce the number of your Numeric box. You will see the exclamation mark, but it has no hard. It just notifies you that your numeric box might not be large enough. BR, Saragani
  15. Saragani

    Cannot delete data sampler

    Can you send the project to the support and I'll look into it? Thanks.
×