Jump to content

Annatooli

Members
  • Content Count

    31
  • Joined

  • Last visited

Everything posted by Annatooli

  1. I think what @Swervomotor means is if you look "Solution Explorer" - "SD Management". Default file limit there is 32. It is not SD card limitation it is Unilogic, who offers you delete older files so your SD card wont become full. You are correct it wont work like that. I did managed to make my own tests and I got errors "-6: Write file error". I do understand why those sub folders may be useful. I have 3 tables what I store regularly on my SD card and with month I have there 200-300 CSV files plus sig files for each of them. Total size of files is just 3 MB so my 2GB card can sav
  2. Hi, Actually there is no dedicated "make directory" functions in Unistream, there aren't even way to move file from one SD folder to other SD folder with ladder. Since Unistream works on Linux, you MAYBE can create folders, if you construct file name and add "/" as folder separators. You may try "Store DTI to File" with filenames like "2020/07/31/archive" you may also try "./2020/07/31/archive" as file name. But it may not work. From my own experience you can not include characters like "space" in file name. Anatoly
  3. Both "Store in Array" and "Load from Array" do work in my case with bit array. Does it give some sort of errors ?
  4. I also agree with Flex, for versioning it is bad if file changes without knowing. I tried to set file "read only" from file system so it wont change without me knowing it, but it prevents even file opening. Anatoly
  5. One possible problem is in first net where you SET and RESET MB 501. It would be fine this way, if you wont use this bit also in net. What happens behind the scenes is - Visilogic stores old value into temporary value and uses it instead of freshly setted bit itself. Try splitting this net in two.
  6. On screen I have long data table where is written states like open, closed, waiting etc. But most of my messages are in Russian, so only way for this is UTF-16. In one instance I need to show timer value there and this is where conversion is needed. Anatoly
  7. It was actually easier than I imagined: static void String_AToU(volatile char* FI, int FILen, volatile short* FO, int FOLen) { // User code starts below this comment for (int i=0 ; i < FILen ; i++ ){ FO[i] = (short) FI[i]; } FOLen = FILen; // User code ends above this comment }
  8. Is there way to convert STRING-ASCII to STRING-UTF16. I have data table with UTF-16 column for messages, but in one case I want to add number there, but number is in ASCII. Maybe someone knows some existing method for this kind of conversion ? I can probably create this function, but is UniLogic internally "Little endian" or "Big endian" ? Anatoly
  9. I did wonder it, until I loaded the program into PLC and discovered that even when Unilogic shows interface in English. In real PLC it is translated. At least it was case with Russian. Anatoly
  10. You can look how much memory your projects consumes. If you look "Output" tab after compilation. Look there "Allocation Info", it should give you some idea how much memory is left.
  11. There is second lock on the screen level, if you look under screen properties there is check box "Lock Screen". If it is set there is no lock watermark like it is, if element is locked. You simply can't drag elements around.
  12. I wanted to provide support personal way to access alarm history. So when user calls at 2 AM and says "machine stopped working" they can see what has happened and give advice for user, what to do. Sadly in current state you cant provide any indication of alarms on Web page. I know they can see errors on HMI screen. But If I provide support personal VNC access they are able to start engines over cell phones (in their bed) and I think it may be dangerous. Providing read-only VNC access is also problematic, because PLC is behind locked door (windowed) and for interactions they have to drive on t
  13. It is old post but .rar files are actually from DOS and BBS era and they are still popular in file sharing and archiving. Microsoft wont include support because rar format is closed source when zip format is very much open source. So they wont have to pay some 3rd party. Rar file format compared with zip format has been very stable over the years. In late 90s and beginning of 2000s there were some "Special" versions from zip what may still be incompatible. But you can read all rar files even when they are from 90s. Common format from Linux (unix) is .tar and its compressed extensi
  14. It seems to be regular, but I dont panic, anymore. But I wanted to tell I am using Unilogic 1.29.111
  15. Check Alive, of course. How I didn't think of it Thanks for examples, But I notice one odd thing on the EX-RCs you compare MI2040==1. Isn't it you wait for sending until network is busy ? Anatoly
  16. Basically there are big barrels with knives, during maintenance some of these knives needs to be replaced and for safety they switch off entire cabinet. So people can go in. Anatoly
  17. Your example is almost exact copy from example provided by Unitronics. except MI 2040 is MI 0 there. Usually what happens is user turns off one of PLCs and after that all system has to be turned off and on again. It wont happen often, maybe 2-3 times a year, but all pointing finger to me. So I have to find solution. Like you understand if MI 2040 turns 1 - no communication, after that point. I can change MI 2040 back to 0 and all wakes up, but maybe It can by done using some SI's or SB's. Anatoly
  18. In Examples there is UniCAN example "UniCAN for CanBus between masters" and it does work. But there is MI 0 what stores UniCAN Send Status, problem happens when it turns 1 "network is busy". After that, no communication. Only way to restore communication is PLC OFF and ON cycle. I wonder maybe there is some little less destructive way to understand when communications can be restored ? Maybe use some SB's or SI's ?
  19. Maybe there is problem with my functions One liner for swapping words static void Swap_Bytes(unsigned int input, volatile unsigned int* result) { // User code starts below this comment *result = (unsigned int) ((input&0xffff0000)>>16) | ((input&0xffff)<<16); // User code ends above this comment } Thanks to @Saragani I was able to write this simple function for rising just one output in array. static void Set_one_Bit_in_Array(volatile unsigned char* Arr, int ArrLen, unsigned char index) { // User code starts below this comment int ndx = (int) index;
  20. Certainly I don't have top notch PCs. 5th and 6th gen Intel i7, drives are Samsung 860 and 970 1TB. Both has 16 GB RAM. One of them is water cooled, so yeah not top notch, but maybe they still manage to run Unilogic some how? My windows install is minimal for running some windows specific programs like Unilogic. My main desktop is on Linux.
  21. I really cant tell. But, today it happened again, with different PC. This time when I downloaded program into PLC it told me, like I have changed all my C functions. But they wasn't even open that time. Again I closed - opened file and they where back once again.
  22. I have some simple C functions, but suddenly I noticed all code is gone and functions are displayed as empty. I was worried, did I accidentally delete some of it, but luckily I have older versions so I opened these and copied content into notepad. But when I reopened newer file (file where c functions were empty) all content was back. I even saved newer file before opening older file. So conclusion - C functions window displayed functions as empty, even when content actually did exists there.
  23. Thanks, I will try it out soon ... I still have some pages to (re)format.
  24. Currently it is too hard if you have to change multiple object colors on HMI. I had 20+ Numeric Box and Fixed Text objects on screen and customer says they want to change entire color scheme similar for their brand colors. I didn't find any easy way to automate things so it is 20 clicks and button presses for each element color and I didn't had only one page. Maybe Copy/Paste drop down for color elements on the Properties Window ??
×
×
  • Create New...