• Web server přístup odepřen

    1
    0 Votes
    1 Posts
    977 Views
    No one has replied
  • Automatic restart of the 1-Wire bus

    4
    0 Votes
    4 Posts
    2k Views
    Martin KudláčekM
    Hello @zorro_66, the problem with 1-Wire bus is, that there are no guarantees about its functionality. You may have 10 sensors on 100m bus working just fine and you can have 5 sensors on 20m that will not work at all. The general guidelines are: Avoid stub and star topology (e.g. use our 4 wire sensors) Use shielded cable and don't lay the cable along the 230V power lines For more detailed information, try reading this paper from Maxim: https://www.maximintegrated.com/en/app-notes/index.mvp/id/148 Best regards, Martin
  • Merge REAL to ARRAY

    4
    1
    0 Votes
    4 Posts
    2k Views
    Martin KudláčekM
    Hello @tgurecky, in this case, the only way is the ST. Do you need some help with that? Best regards, Martin
  • io.writeport TCP

    2
    1
    0 Votes
    2 Posts
    1k Views
    J
    @jasperjackson said in io.writeport TCP: io.writeport(conn_handle,adr command[0],10); Got it... one has to keep calling io.writeport(conn_handle,adr command[0],10); until it returns true :)
  • Reading values from Siemens PLC using TCP

    2
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hello @somapa, the first thing is to configure the Siemens PLC as the ModbusTCP slave. Unfortunately we don't have any direct experience with it, so you have to look for help somewhere else. But you can verify the settings with e.g. qModMaster. The second step is to configure generic Modbus slave device in Mervis and we have a tutorial for that: https://kb.unipi.technology/en:sw:01-mervis:connecting-to-modbus-slave-device-hidden If, in any case, you wouldn't be able to set the Siemens as ModbusTCP slave, you can set the Mervis as ModbusTCP slave and let the Siemens update the registers. You can read more about how to set the Mervis as ModbusTCP slave here: https://kb.unipi.technology/en:sw:01-mervis:setting-modbus-server-hidden Best regards, Martin
  • HMI password?

    2
    0 Votes
    2 Posts
    2k Views
    Martin KudláčekM
    Hello @matt, yes, there is. Double click on the PLC in Left panel and then switch to the User rights in the main window: [image: 0_1552028811238_2112e785-ae22-4dac-aa75-ac09c1bb95a3-image.png] As you can see, the default user is Visitor without password. You can rename the users, add or delete them and set them passwords. Best regards, Martin
  • Random delay / timer

    3
    0 Votes
    3 Posts
    2k Views
    R
    Yes! So obvious when you see it! Thanks :) Looking at the debug output, the rand block is running all the time, even though it is only needed to generate one number at a time. I am not sure if this wastes CPU, or if it is more efficient to only enable it when triggered, and turn it off again once the number has been generated. What do you think? I took your logic and made it behave like TON but with a random time (so, the output of my timer will go in to this, then the output of this will be delayed by some random time, so the result would be, the light will come with a random delay of on up to an hour after 6PM, or whenever the time is set by the timer.) [image: 0_1551792302630_3ecdb6f0-e147-47fb-9db0-2e1af24c04db-image.png] (This first turns on the rand -> integer sequence for 1s, then after 1s, TON_0 switches on to capture number and to activate the actual switch on delay)
  • Compatibility between Nymea and Mervis

    8
    0 Votes
    8 Posts
    3k Views
    Martin KudláčekM
    Hello @msoenen, any SD card you bought from us is empty - we don't preinstall any operating system. I would recommend flashing a UniPian to the SD card. The UniPian is Raspbian with preinstalled packages that allow communication with IO boards. The UniPian image can be downloaded here: https://kb.unipi.technology/files:software:os-images:00-start And here is a tutorial how to flash the MervisOS image to the SD card and you can use parts of it for flashing the UniPian image as well: https://kb.unipi.technology/en:sw:01-mervis:running-on-neuron-hidden Best regards, Martin
  • variable resistor

    2
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hi @arolli, can you share more about what you are trying to achieve? Thanks, Martin
  • String to number?

    8
    0 Votes
    8 Posts
    4k Views
    T
    Hi @matt I believe the latest version of Mervis should be able to handle it better now; you can give it a go and see if it works properly with multi-character strings. For further information please get in touch with [email protected] and/or Martin Kudláček instead, as I will be leaving unipi shortly.
  • Deploy to muliple Neurons

    11
    0 Votes
    11 Posts
    4k Views
    Martin KudláčekM
    Hi @_andi_, the reply from the developers is that it is not possible to do it even by hand. But we take your suggestion as a feature request. Best regards, Martin
  • NaNs in HMI chart

    7
    0 Votes
    7 Posts
    3k Views
    M
    @martin-kudláček Okay, thanks. After posting yesterday I managed to figure out the communication errors I was getting, so preventing the NaNs from messing up the chart is less of an issue now.
  • event based task, toggle block not working

    2
    3
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hi @christian, frankly, we don't use event based tasks at all, since it makes the program harder to read. What is your motivation to use them? I must say that I don't understand the first example and from what I see it leads to oscillation: [image: 0_1550739082329_ac247ff3-0c9f-4ffd-91b7-dda8d62cef51-image.png] For me, simply using the toggle in Freewheeling NormalOperationTask is straightforward and error free. We use it like this in many situations. If you want to directly wire DI to DO/RO, take a look at our Direct Switch functionality: https://kb.unipi.technology/en:sw:01-mervis:advanced-modes-of-digital-inputs-hidden
  • SML data from USB IR Adapter (power meter output)

    2
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hello @christian, yes, it is possible, but it requires to write your own parser of data in ST code. This is an excerpt from help files of how it could be done: [image: 0_1550561083622_44254d67-c742-4f9c-ae93-f7f4bf448932-image.png] Sorry for the printscreen, but copying from help files loses the end of lines... Martin
  • Weird debugging / startup behavior

    3
    0 Votes
    3 Posts
    1k Views
    Martin KudláčekM
    Hi @_andi_, that's great you have been able to debug your problem by yourself - this one is not so easy to find. Mervis has an ability to execute program upon exception. Double click on the PLC, switch to the Tasks tab and add new task with the Category "Execution error". Then select the program which you want to execute upon the error: [image: 0_1550129182011_e6795c6f-b159-4020-9173-126b6fef3cee-image.png]
  • Task count (1) on platform 'Unknown' exceeded the device limit (0)

    2
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hello @jakub-sykora, that looks like you haven't done the "Attach controller". Try to revise your procedure according to this tutorial: https://kb.unipi.technology/en:sw:01-mervis:creating-new-project-hidden
  • ModbusTCP Server Real (datatype) Problem

    6
    0 Votes
    6 Posts
    2k Views
    Martin KudláčekM
    @_andi_ Noted:)
  • Safe DO/PWM Operation with Open Collector

    5
    0 Votes
    5 Posts
    3k Views
    Martin KudláčekM
    Hi @_andi_, thanks for the info. It is indeed as you describe. That minimal voltage of 600mV in OFF state comes from the nature of open collector output. You have mitigate it quite elegantly with the Wago optocoupler. Martin
  • 0 Votes
    2 Posts
    1k Views
    T
    Hello @clueless , yes the delay switches are non-blocking for the rest of your program. If you have Neuron or Axon that is already prepared in the HW and available in Mervis as a OW_off variable. If you set it to true, the whole bus is shut down. If you have UniPi 1 then this is a good start but note that 1wire devices are powered by the data so this reset must not be enough.
  • Opakovaná časová akce

    2
    0 Votes
    2 Posts
    1k Views
    T
    Dobrý den, @safranekj, pokud opravdu nechcete aby se funkce LT vykonavala pri kazdem cyklu, doporucuji opravdu pouzit na vstup en funkce LT vystup z PulseGenerator. Jen pozor na to, ze ikdzy funkce LT bude mit en na False, stale bude mit na vystupu defaultni hodnotu.