Jump to content

Saragani

Administrators
  • Posts

    1,195
  • Joined

  • Last visited

  • Days Won

    116

Everything posted by Saragani

  1. You need to set up a powerup value on "Day Of Week" ->Friday, and leave the years, month, and day in month unchecked. Then the from hour 14:00 and 23:00, just like you've said. I didn't test it, but looking at the code of the PLC (Since I'm a developer at Unitronics), I see that it behaves and I've explained. @Cara Bereck Levy How about adding information in the help about the schedule ladder element? The information doesn't tell much. @ilyamor Btw, you can build your own UDFB that will accept a schedule struct (Either your own struct, or use the schedule struct that Unitronics supply) and the UDFB will set a result bit if the rules are matching or reset of they don't (Use the system tags RTC Date and RTC Time, for the PLC date and time). It is not a hard task.
  2. Here is a simple explanation on how the schedule works: The schedule struct has From Year and To Year members, and also Month (bits array), Day of Month, Day Of Week, From hour, To hour. When the schedule rule is met, the RLO after the element, will become 1 (Assuming that the RLO before it was also 1) If you don't want the schedule to work on specific years range, then leave it 0. If the from year or to year are not 0 then the value must be from 1900 to 2100. If one of the values is set (From Year, or To Year), then both of them must be set (Meaning, you can have the To Year set to 2024, but leave the from year as 0). The From Hour and To Hour is an array with members of Hours , Minutes, and Seconds, and they must have valid values (0-60 for minutes and seconds, and 0-24 for hours, else, the result RLO will be 0). Month bit array: If the value of all the bits in that array are 0, then the month will not be checked (So if you want to execute something every month, or every day, then make sure that all bits are off). If one or more bits are set, then the schedule will execute (change the RLO to 1) only on those months and when the other rules are met. Same for "Day in month" bits array. If no bit is set, it won't check for the day in month, else, it will check if the current day in the array is set. (no bit set equals in how the code behaves to all bits are set) Same for "Day of week" bits array. If no bit is set, it won't check for the day of week. (no bit set equals in how the code behaves to all bits are set) If you want that something will happen every day at the same time, then leave the Month, From Year, To Year, and Day in month unset (0), and also don't set any bit in the Day of week array. You just need to make sure that the From hour and To Hour are configured correctly. But if you want that it will happen once per week, and just set to 1 the specific day in the Day of Week array. Since this block is executed on each cycle, then when the schedule is met, it will call the code after it until the schedule is no longer met (For example, the schedule is valid for one hour per day, then the RLO will be 1 for the whole hour). So if you want to execute something just once when the schedule is met, then you can use Positive Transition Coil after the Schedule, that will set a bit when the Schedule output is changed from 0 to 1. Then call your second function when that bit is 1. On the next cycle, the schedule will still output 1, but the Positive Transition Coil will reset the bit, since the previous RLO was 1, and the current one is also 1, so on the next rung since the bit is 0, then the second function will not be called. I will try to record a video for you, but my PLC is currently busy on debugging some bug, so it will only be available in 1-2 days, and I hope that you will understand what I will show, since I'm not a native English speaker.
  3. What do you mean by "independent component"?
  4. I'm sorry, bug I'm not seeing the attached images, so I don't know what it's about. As far as I remember, Timers must be ran on the main Routine.
  5. @Joe Tauser The warning will appear when ever you use insert row, and it will increase the scan time even if it's async. The task still runs on the CPU. We have recently had a customer that was not understanding why the scan time is so high, and he said that all he does is writing a DT Row. I said that he might be using insert row instead of write row, and he said "no". Then we saw that he uses insert row async. When you insert a row, the CPU has to copy all the rows below to a new address. The more rows (data) it has the copy, the more the CPU will work .
  6. Well, after further looking in your code, I see that C is the filename, and the value you use is 18:07 The file system in the PLC, just like in Windows, does not allow certain characters to be used in a file name. In Windows you cannot create a file that contain the character : since it is being used for targeting drives, for example d: (Well, I tried giving and example of c and then a colon, and it replaced it with a smiley) @NoamM Can you please provide a list of forbidden characters? I know that the SD Card is formatted as FAT32, but I'm not sure if that affects the forbidden characters, or the Operating System on the Panel. Anyway, @xXJEQTXx, Since filenames can be transferred to your computer, I would avoid any character that Windows doesn't like: < (less than) > (greater than) : (colon ) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk) Besides that, there are also specific forbidden filenames in Windows (Case insensitive): . .. CON AUX PRN NUL COM1, COM2, ... COM10 LPT1, LPT2, ... LPT10 Don't use those filenames and characters and you are OK. For a Directory, as much as I remember, it cannot end with . (dot) @NoamM Are those also the restriction in the PLC?
  7. -6 means: Write file error Are you sure you have an SD Card present? If yes, please check if the SD Card is locked
  8. After download, the PLC is still busy on loading the new project, or the changes. For an advanced security, the online support in the PLC is only being activated when it is being requested by UniLogic. Since the PLC is busy, it might not reply on time and the request might get timed-out (UniLogic has 3 retries with 500ms between each request), and in that case you get the message that the command could not be applied. Since the Online communication works, then it is only a false-positive. The command is actually applied, but the PLC does not reply UniLogic on time. I can increase the wait for response time-out and also the wait between each retry and the number of retries, and it will reduce the chances of getting this message. You didn't specify the version of the firmware you are using, so I hope that you are using the Official firmware that came with UniLogic 1.33.348 (firmware version is 1.33.260). If you are still using the firmware that came with UniLogic 1.33.210 (which I think is 1.33.149), then surely the command will fails (Even when you start Online from the Ribbon), since this command is only from firmware version 1.33.189 (where the official released firmware version with UniLogic 1.33.348 is 1.33.260)
  9. @TSVIKA In the installation folder, you have an Exe called Offline Activator. Run it, enter the contact details, just like you would have done using Online Activation, click on Next. Then you should be able to get an Offline Activation key. Copy it, and send it to the email that appears in that form. You can also send it to me in private message. You will get from me, or back to your email a Key. You will need to start UniLogic, click on Register Now, enter the key and then click on Activate
  10. If no "Output folder" was selected, then the output folder is the same as the selecting input folder. You can select an different output folder if you check the "Choose Excel output files to different folder", and then you can click on the browse button in the output folder and select a different one.
  11. In UniLogic we use the transparency of the image itself. Png images support alpha channel. It is not just a pixel is transparent or not, it can be half transparent, and there are 256 levels of transparency. In VisiLogic it was done in the single pixel method, since there was no other way (Visual Basic 6 does not support alpha channel, anti-aliasing etc.)
  12. @Spriggan Please contact our support for a remote session.
  13. Issue sorted. Dave was taking the images from VisiLogic folder (which doesn't have the transparency), rather than from UniLogic UniPics folder. The folder appears in the "Custom Places" shortcut while browsing an image in UniLogic:
  14. @Dave I have sent you a private message with a tool that may help me understand what's wrong. My current guess is that it's something with the png encoder which removes the opacity on save.
  15. @Dave This is weird. The first 2 images are the same images that are created when UniLogic removes the watermark from the image. I just ran the code, but instead of using it inside the project, I saved it to disk. I will have to further investigate it.
  16. @Dave After you check those images, then please check the following image, and tell me if it makes a difference. Thanks
  17. @Dave Please download the following images and tell me if it has a transparent background when you add it in UniLogic. These are the images from UniPics after I have removed the watermark from them
  18. @Dave Thanks for the update. It might be something with the watermark removal code that somehow fails on your computer, and somehow creates a white background, or something with the image itself (and not the watermarked image). I have not encountered this issue before, so I will have to investigate and dig in the code. I might give you a small tool in order to debug the issue. I hope to work on it next week as soon as possible.
  19. @JDGleason, @kratmel is correct. A lot of changed since 2014. 1.9 is really old, and there are a lot of bugs that were fixed since then. As far as I remember, In UniLogic /UniStream 1.29 we have changed and improved the security, login and authentication of the UniStream PLCs, and still preserving the compatibility for communicating with older PLC firmwares, so users will be able to upgrade them. If you were able to communicate with the PLC using UniLogic 1.21.51 then that's great. I still advise you to upgrade your PLC and UniLogic to the latest version.... This is because a lot of performance that has been improved, both in UniLogic and UniStream PLC, and a lot of bugs that were fixed (in both), and also a lot of features that were added to both. However, as much as I remember, you cannot directly upgrade the PLC from 1.9, or 1.21 to 1.33 Just contact support@unitronics.com and they will instruct you on how to upgrade to the latest version. I will also forward this thread to the support team, so they will be informed about it, and they will contact you (if you haven't contact them already)
  20. @Dave Then it might be something with your computer. Currently I don't know what can cause this issue. Do other elements (like circular gauge, Button, linear gauge, etc.) have a transparent background? Btw, can you download the following image? https://www.transparentpng.com/thumb/google-logo/google-logo-png-icon-free-download-SUF63j.png Then put it in a screen and tell me if you see it transparent.
  21. @Code007 Please send Unitronics support the project. Since you are telling that the app itself is causing the PLC to reboot (it happens with another PLC), then we might be able to reproduce the problem in our office when downloading your project.
  22. @Code007 After reading what you wrote at: https://forum.unitronics.com/topic/9563-boot-error-with-unilogic-133-build-348-code-7/ This is because the PLC is booting, so the last command of going online cannot be applied.
×
×
  • Create New...