Jump to content

pascal

Members
  • Posts

    97
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by pascal

  1. hi, about your subroutine question I have a univison type uSP-104-B10 (B10 stands for type of CPU, is TOPmodel😁😁) and in one of my programs I have already 9 modules and more than 100 "subroutines" without significant scan time (+- 48ms) -> I do have a lot of communication (modbus, opc UA, MQTT,Rest API,ethernet/IP) and over 40 PID's The only thing to watch is the depth of calling subroutines -> max 8 levels !
  2. I have several PLC's running to control a building (because I can only use 8 URB adapters on 1 PLC πŸ˜’πŸ˜’πŸ˜’) On 1 PLC, I communicate with my lighting system (HELVARNET - DALI) to ask the status of my lights. Because it's a huge building, it takes a while for scanning all lightsgroups. For every group, I have the status in a data table. But now I want to make this data table is also available for my other PLC's (so they don't have to ask my lighting system what's the state of the lights) I've tried to update the status with MQTT, publishing and subscribing all status of all lightgroups, but this is to slowly for me..... What's the easiest way to "send" my data table to the different PLC's ? any suggestions ? my data table is built with a structure of+- 15 elements (integers, bit arrays, string,...) -> size is 13200 bytes I need something that can be run in the background, because my scantime is already high.... -> +-50000 Β΅s (so I could have problems with my 100ms timer....)
  3. Joe, you call this routine with 1 operator, and according the value you do something..... you can find this on the solution explorer
  4. I want to export my switch case, because I need this in another PLC..... And also it should be pretty if we could import the switch case into excel, to reorder the lines ? (or maybe we could reorder the lines in unilogic ?)
  5. let's describe the system I want to communicate with : In my electrical cabinet, I have several Schneider Compact NSX circuit brakers (industrial fuse 😁) these are equipped with a micrologic that can be read by a device, where you can set the adress of. (IFM modbus interface module) all these IFM modules are coupled with an IFE ( modbus TCP interface for compact NSX). this IFE has an IP adress, where you can communicate with modbus TCP/IP to collect the data I have to adress this IFE with the slave nr. of the IFM module.... the problem is that you can connect 1 NSX directly to the IFE module, standard with adress 255 (can not be changed). Altough maybe I should find some documentation about this device, it's very hard to find... I reprogrammed the unilogic software, without slaves on adress 255 -> worked all night without problem ! now I have 14 slaves, without problems....
  6. It has something to do with slave nr. 255.... What, I don't know, -> when I remove slave 255 then I have a good working modbus "bus".... When I add remote slave 255, then the problems begin -> no updating of some slaves a bug ? or maybe is adress 255 not a good idea in modbus ???
  7. Hi, I searched the forum, but didn't found something to help me. I have a unistream, connected with +-12 modbus gateway's (via TCP/IP). when I look after I downloaded my program to the PLC, then I see that some modbus slaves are not connected... Is there a limit on how many remote slaves IP's ?
  8. you are adressing adress 16..... reading the manual -> time is 0x10 -> adres 10 ?????
  9. export them to excel change the order of your structure in excel, save and import with overwrite
  10. Gabriel, use tag: data entry complete -> it's in the properties of the numeric variable on the HMI or WEB
  11. The easiest way -> webserver ! doesn't need to program it, just export the HMI page to the webserver I'm controlling an office 30000mΒ², a production facility 65000mΒ² and a garden 30000mΒ² with several HMI panels(+-20 simple android tablets+ several smartphones) that are accessing just the built in webserver...... Not just with one PLC but with 10 unilogic PLC's and +- 40 URB-TCP adapters, all communicating with each other via ethernet/IP, modbus and OPCUA
  12. Maybe in unilogic this is correct, but (I'm not 100% sure) if you do program like this in visilogic, the result could be inpredictive ? the things I learned, thanks to this forum, is to keep the rungs as short and clean as possible Now i can't think of any problems I had before, but sometimes when you program and you think it's correct, the PLC isn't executing the way you programmed it... Maybe I'm to scared to program like this, but I'd rather be sure than guessing πŸ˜‰πŸ˜‰
  13. another thing to mention -> you are not using correct ladder.... block 55 -> you should place the increment functions one after the other.... if [counter] ------ inc [counter 1]-------inc [counter2] and I hope [counter] only rises once.....😁😁
  14. I think this isn't modbus. When you look at the request string you must send, this appears to me that isn't modbus... You can try to communicate with message composer modbus requests are like this
  15. the way I work -> having an extra virtual Pc running on my laptop, so i open one unilogic in my "real" environment and another unilogic in my virtual environment... then I copy and paste...
  16. seems that you have not admin rights on your PC ? something to do with UAC (user acces control of windows)
  17. Does anyone know how many users can simultaneously accessing the webserver ?
  18. uniPics..... to create a moving gif, I use 2 online tools : 1. https://onlinepngtools.com/create-transparent-png this one is to make a picture transparent 2. https://ezgif.com/maker this one is to make a gif
  19. I'm a little bit confused ..... today, friday 28 jan 2022 -> looking in the system.rtc date.day of week variable -> value is "6" why is in the structure schedule friday == bit 5 ????? so, I'm wondering.... what value stands for the system.rtc date.day of week...... if Friday==6 then I assume that monday==2 - tuesday==3 - wednesday==4 - thursday==5 - saturday ==7 and sunday==1 ? different programmers at Unitronics ?😬😬
  20. Tried this on Panel Ethernet master Modbus, but here this is not working πŸ˜ͺ..... I have about 50 slave's I have to read.... So I tought, I only make 1 routine for all 50 slaves, just changing it's slave ID nr, but no... any suggestions ?
  21. Hello, I've found a brief diagram in the help page online : https://support.unitronics.com/index.php?/selfhelp/view-article/Remote-IO---URD-0200E but the documentation on this page was also not updated concerning the different modes of the IO card... it's like the help file of unilogic..... outdated ! 😱
  22. installed new software of unilogic and encounters following problem : on one of my plc's, when changing even a little ladder line, I always have to do a download with required reset ! on other PLC's this is not necessary....
  23. why copying to a buffer ? just put all of your structs into the adapter node's, unilogic is calculating itself the length needed ... variable "outputs from A02" and "all inputs" are self made structs...
  24. yes you can... without restarting the PLC ! But problem is solved by support of Unitronics -> due to the changing of the hardware of the DI02E module, the numbering of the modes are changed ! (but not the documentation 😬)
  25. hardware is ok, pulse output on Aph+ input and 0VDC on Aph-input but like I said, when configuring channel 1 as up counter with reset (Bph input) then it works like it should be. I made a movie of this on youtube..... first counter configured as conter up with reset (mode 5) and then you can see that the value of the input is changing afterwards I change the configuration into mode 2 (only up counter) and then you see that the value is "frozen"
Γ—
Γ—
  • Create New...