• Mervis HMI over proxy?

    3
    0 Votes
    3 Posts
    2k Views
    C
    @martin-kudláček ok thanks
  • Mervis HMI Emulation

    5
    0 Votes
    5 Posts
    3k Views
    Martin KudláčekM
    Hello @sam, emulation of the HMI is not possible, since it would require installation of the webserver and fastcgi service, which is now available only for GNU/Linux operating system. Best regards, Martin
  • 0 Votes
    3 Posts
    2k Views
    C
    @tomas_hora Ok, sorry, the issue with the database was something i had bungled myself.
  • Function SendMaiTrig not work

    6
    0 Votes
    6 Posts
    3k Views
    T
    @msoenen actually not, just test what I wrote in my previous post
  • Pomoc s Modbus mapou Energy meter QI Power

    18
    0 Votes
    18 Posts
    7k Views
    B
    @martin-kudláček Ano zmínka v manuálu o tom byla, já sám sem si říkal, že by to mohlo být prohozené, ale nikde jsem nenašel, jak má to pořádí být zaspané v Mervisu :-( A pokud jde o SolarEdge, nemyslím si že máte pravdu. Modbus TCP je označená měnič, jako server - na straně 7, kde se píše, že server čeká dvě minuty na odezvu klienta a pak se vypne. U 485 je možnost dvou konektorů, kdy je jeden master a druhý sleve. Já budu mít na 485 pověšený elměr od SolarEdge, tak bych chtěl využít Modbus TCP k vyčítání hodnot z měniče do Axona.
  • Correct timezone offset setting.

    5
    2
    0 Votes
    5 Posts
    3k Views
    R
    Yeah, what I mean is, I first downloaded the configuration, saw that the setting was already 0, and then just uploaded it again. I didn't actually change anything in between. Anyway, seems to have now got it set correctly. Thanks for the help! The multiple interfaces problem is odd, since the two interfaces are NOT both connected at the same time. eth0 was just set to DHCP and not connected, but the wlan0 interface only works properly when eth0 is plugged in. If eth0 is unplugged, the wlan interface works for a while but then eventually stops working properly. This seems to be a Raspberry Pi issue people are reporting elsewhere, though not easy to debug as the unipi display port isn't accessible to connect, so it's hard to see exactly what's going wrong. (Maybe I will take the SD card and boot it in a regular Raspberry PI with a display connected, so I can better understand what is going on.) The issue would seem to be a combination of the default ARP behaviour in Linux which responds with the wrong MAC address, DHCP, and that when there is no cable connected, in some situations Raspberry Pi still thinks it's up and tries to use eth0 anyway. (/etc/interfaces "auto eth0" vs. "allow-hotplug eth0") So far, I have both interfaces set to dhcp, and I did have "auto eth0" in /etc/network/interfaces but looks like this was causing some of the problems, so I set it back to "allow-hotplug wlan0 eth0". and then set: /sbin/sysctl net.ipv4.conf.all.arp_ignore=1 Now, when eth0 cable is removed, the interface still shows as "UP" but it deletes the routes and remove the IP config from the interface, and then because it responds to ARP with the correct MAC address for wlan0, it doesn't break. Also set "wireless-power off" under the wlan0 interface config, but not sure if that made any difference. It would seem that some wireless APs are able to send a magic APSD request which causes the interface to go into power save mode. I don't think my AP does this. I'll see how I get on. Worst case, I will have to just add commands to toggle eth0 down when wlan0 comes up, and toggle eth0 up again when wlan0 goes down, called from up / down hooks in /etc/network/interfaces.
  • Using HMI JSON API fastcgi/backend

    4
    0 Votes
    4 Posts
    2k Views
    Martin KudláčekM
    Hello @robl, thanks for such detailed answer. I understand your frustration with the HMI. The complications you are facing are based on the Finite-state machine design of the Mervis, which was picked for easier transition from other/older PLC systems. Realization of some complex logic is not as straightforward as you are probably used to from other programming languages / paradigms. I would love to dive into your problem with controlling outputs from program and HMI:) I have a solution which was primarily design for our Direct Switch functionality, but it needs a serious documentation because it is quite complicated. I hope I could be able to put it together by the end of this month. As for the Evok - we are finishing with Node-RED nodes for UniPi which internally use Evok. Here are some quick mockups of how it will be used: Basic usage of all inputs and outputs: [image: 0_1547729051184_4c902d82-5ff2-4bb8-a92d-b670be9ec61f-image.png] Some basic regulation of heating with hysteresis: [image: 0_1547729093749_4cb64d0e-b55b-4fe5-a314-97b1c0d39102-image.png] Generic Node-RED Dashboard: [image: 0_1547729157499_4f755ae4-22f0-4d0d-ba2f-54195ea9f234-image.png] It's all in the process:) If nothing bad happens, we will release it by the and of this month. Best regards, Martin
  • Multiplicate with Minus

    6
    1
    0 Votes
    6 Posts
    2k Views
    T
    @dominik and @Martin-Kudláček what was the issue?
  • Can't create a new derived profile

    2
    0 Votes
    2 Posts
    1k Views
    T
    @pianz You are probably still in Simple Mode, so you cannot create the derived profile. Check out the tutorial on our knowledge base: https://kb.unipi.technology/en:sw:01-mervis:connecting-to-unipi-via-mervis-proxy-hidden
  • Updating functions in IDE

    5
    0 Votes
    5 Posts
    3k Views
    R
    @tomas_hora I'm not sure that made any difference. I have to do some more testing, (For some reason the IDE has been crashing on me a lot when I try to do certain things like delete outputs or function blocks.) but what I think is happening is that the correct logic is being uploaded to the PLC, but the "debug" output (e.g. when using manual mode switches) loses track of things after the update. Exiting and restarting the Mervis IDE, it seems to come back again.
  • access via proxy not work

    2
    0 Votes
    2 Posts
    1k Views
    T
    @msoenen The status should be CONNECTED in the PROXY field. If you see disabled, then the configuration is not done properly. Anyway, Mervis requires the port 6677 to be allowed for outgoing connection in order to make the proxy work.
  • HMI update issue

    7
    0 Votes
    7 Posts
    3k Views
    M
    @tomas_hora hello, I found a solution to turn a digital setter into push-Button I put a flip-flop that reset after 2 seconds the variable on which points the digital setter HMI https://www.dropbox.com/s/dvf4toi76z35kxw/Capture d'écran 2019-01-10 09.56.36.png?dl=0
  • Compilation problem

    10
    0 Votes
    10 Posts
    5k Views
    M
    @robl ok it works, but I was forced to delete the old variables and replace them in the program it is a pity that there is no table with troublechoottings in which could look during malfunction but without the system does not default
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Control RO with Direct switch by Mervis

    7
    0 Votes
    7 Posts
    4k Views
    T
    Hi @Martin-Trojan, This is just one possible solution, but you can use a custom ST FunctionBlock with this code (use the name "DigitalMemoryMultiplexer" if you do use it): FUNCTION_BLOCK DigitalMemoryMultiplexer (* EXTENDS //base type IMPLEMENTS //interface type list *) VAR previous_inp_1: BOOL; previous_inp_2: BOOL; previous_outp: BOOL; END_VAR VAR_INPUT inp1: BOOL; inp2: BOOL; END_VAR VAR_OUTPUT outp: BOOL; END_VAR INIT previous_inp_1 := inp1; previous_inp_2 := inp2; previous_outp := inp1; END_INIT IF inp1 <> previous_inp_1 THEN outp := inp1; previous_inp_1 := inp1; ELSIF inp2 <> previous_inp_2 THEN outp := inp2; previous_inp_2 := inp2; ELSE outp := previous_outp; END_IF; previous_outp := outp; END_FUNCTION_BLOCK And connect it like this: [image: alt text] The DO_2_01 is set as DirectSwitch Trigger and the WEB_LIGHT_BUTTON is tied to a HMI Digital Setter. Whenever you are using DirectSwitch remember to set the Debounce value on the DI sufficiently high for your input device. Again, there are many other options for doing this, including using two HMI elements on top of each other (Digital Indicator and Digital Setter). Here is the project file, for reference: https://www.mediafire.com/file/1o8kq9iici2qc8g/ForumProject.7z/file
  • Direct Switch ?

    2
    0 Votes
    2 Posts
    1k Views
    R
    Ah. Seems I just realised where I was going wrong. I was missing the step to configure the module. Deploying the solution is not enough. "We just changed the configuration of the PLC modules, which is not applicable by simply uploading the solution. To save the configuration, follow the UniPi - Configure Module tutorial."
  • PLC Clock

    2
    0 Votes
    2 Posts
    1k Views
    T
    @raedhammad if the PLC has connection to the internet it should sync the time automatically using NTP. You can check it using timesyncd
  • Lost Mervis Solution

    2
    0 Votes
    2 Posts
    1k Views
    T
    @raedhammad That is not possible. The whole solution is currently stored only in your PC.
  • Running web HMI on Mervis RT?

    2
    0 Votes
    2 Posts
    1k Views
    T
    Unfortunately, that is not possible. You will be missing the fastcgi server which is the bridge which translates the protocol of the RunTime to the browser
  • Different HMI application for web interface?

    10
    0 Votes
    10 Posts
    4k Views
    C
    @tomasknot Yeah I see now, thanks.