• 1 Wire problems

    7
    0 Votes
    7 Posts
    5k Views
    T
    @Giamba This sometimes happens, I recommend using a filtering function block for each temperature sensors. Something like this, this is a old filter that one of our customers used: FUNCTION_BLOCK check_1w_temp (* EXTENDS //base type IMPLEMENTS //interface type list *) VAR NON_RETAIN (* add local variables here *) first_run: bool:= TRUE; prev_temp: real:= 999.99; filter: LIB.CORE.V1_0.B86_FILTER; END_VAR VAR_INPUT (* add in variables here *) actual_temp: real:= 0; err_diff: real:= 5; por_diff: real:= 1; filter_const: real:= 60; min_temp_allowed: real:= -55; max_temp_allowed: real:= 125; END_VAR VAR_OUTPUT outtemp: real; err_measure: bool:=FALSE; (* add out variables here *) END_VAR (*function block body*) //first run IF first_run THEN outtemp:=actual_temp; prev_temp:=actual_temp; err_measure:=FALSE; first_run:=FALSE; RETURN; END_IF; //filter out impossible values IF actual_temp > max_temp_allowed OR actual_temp < min_temp_allowed THEN outtemp:=prev_temp; err_measure:=TRUE; RETURN; END_IF; //filter out POR 85.0C errorrs IF abs(prev_temp-actual_temp)>=por_diff AND actual_temp = 85.0 THEN err_measure:= TRUE; outtemp:=prev_temp; //and filter measurre errors ELSIF abs(prev_temp-actual_temp)>=err_diff THEN err_measure:=TRUE; outtemp:=prev_temp; //prev_temp:=actual_temp; ELSE outtemp:=actual_temp; prev_temp:=actual_temp; err_measure:=FALSE; END_IF; //apply analog filer -> smooth the signal IF err_measure = FALSE AND filter_const > 0 THEN filter(IN:= actual_temp, INDT:= filter_const, OUT=>outtemp); END_IF; END_FUNCTION_BLOCK And the graph: [image: 0_1510556313991_1w_graph.png]
  • Update Evok not working on Mervis image

    7
    0 Votes
    7 Posts
    4k Views
    roberts_landoR
    I think I will stop using Mervis as main IDE as it only works with the image you provide. I think a better approach would be having a runtime that can be installed in an existing SD with upgrading features, this approach makes each update very hard expecially if you have to work with lot Unipi devices at same time... I would have to reinstall the image in each device each time an update comes out than reinstall all other softwares I need
  • How to read PT1000 value, with Neuron S103, in mervis

    6
    0 Votes
    6 Posts
    4k Views
    I
    They are mapped to hw, although the name does not imply that. Exactly as in your example. Did not get it to work, so I decided to add a modbus device, 4 channel analog output module and take the pt1000 temperatures through another modbus device...seemed easier way to go =)
  • No Value

    5
    0 Votes
    5 Posts
    3k Views
    zorro_66Z
    Yes embarrassing. Now it has happened to me too thanks for the help now it works
  • MQTT Support

    6
    0 Votes
    6 Posts
    4k Views
    G
    @roberts_lando For me I have Mervis Modbus client wich write registers in my C program modbus thread. Then I have an other thread wich take care of changed values and publish on a topic to the mosquitto broker. I have an other thread wich make some stuff on values, like a subscribed return value wich update modbus register before reply to modbus client.
  • Modbus Read/Write questions.

    2
    0 Votes
    2 Posts
    2k Views
    T
    @Giamba The order of sending the commands is not defined. Modbus defines input (readonly) and holding(readwirte) registers for this purposes. So you should use two registers, one for writing from Mervis to your application, and read the result of the computation of your application from a different register.
  • Help for third party mobdus device

    4
    0 Votes
    4 Posts
    3k Views
    T
    @TriathletC The principle in creating description of third party modbus devices is the same. Also chekc the Help of Mervis (F1) and search for Modbus driver
  • Unable to use apt-get on Mervis OS img

    4
    0 Votes
    4 Posts
    2k Views
    T
    @roberts_lando We do not plan to do that right now
  • Mervis HMI Help

    13
    0 Votes
    13 Posts
    8k Views
    T
    @David thank you
  • Hour counter?

    2
    0 Votes
    2 Posts
    2k Views
    D
    @Iogo You can use for measuring block T32.
  • Show scheduler/time in HMI

    3
    0 Votes
    3 Posts
    2k Views
    T
    @Iogo I have just tried opening the example and worked well.. But the .touch HMI project file is placed in the bin folder. Please test it.
  • Mervis IDE date/time

    5
    0 Votes
    5 Posts
    3k Views
    T
    @xbastek To us it seems like the most likely explanation is that the timezone settings in IDE have been changed to users local time. The crystal used within the RTC is of quite high precision, and the time drift we have observed in testing has been on the order of one second in several months. In addition, the particular nature of the time drift (that is, in hours) would point this way as well. The Mervis IDE as well as Neuron itself runs on UTC, but this is possible to change in the PLC setup, which will naturally skew the clock. Would it be possible to check that the customer's PLC time corresponds to UTC? If not we would recommend to set it back to UTC and see if the issues persist.
  • Alarm indicator disappears when active

    5
    0 Votes
    5 Posts
    3k Views
    D
    @Iogo You are using block with delay. Maybe the error is, that time of delay is implicitly set to 30 seconds. Try to reduce time to 0 second and debug it. Did it help you?
  • Problem recognition 1w-Wire

    Moved
    19
    0 Votes
    19 Posts
    10k Views
    D
    Yes, that it should work.
  • Copy protection

    2
    0 Votes
    2 Posts
    2k Views
    T
    @Havor This feature is not supported in Mervis right now... We asked the developers to include such functionality on the Function block level but it is not on their to-do list right now.
  • First start with unipi / MERVIS

    15
    0 Votes
    15 Posts
    11k Views
    C
    @Giamba I see that you are posting C source. I have found python in /usr/bin but I do not find any gcc or make anywhere. There is also no java installed. I am not an RPi user (I use nV embedded systems) so am not familiar with Jessie ... do I need to install these programming runtimes and environments? Do you know what size SD card I need to get to this environment?
  • Notifications sent from Unipi to Smartphone

    4
    0 Votes
    4 Posts
    3k Views
    G
    Hi @CKB. Have a look in the Mervis Help by pressing F1 to find Sendmail... Hope this help. @Giamba
  • I2C seems to be broken - no communication - no relay

    10
    0 Votes
    10 Posts
    5k Views
    G
    @tomas_hora. Hi. So tomas, have you been able to test my configuration? What about your side? Do relays are working with my project files? Tanks again.
  • Mervis LogIn and Password

    2
    0 Votes
    2 Posts
    2k Views
    A
    ...and what about the Mervis IDE? it seems not possible to download it...
  • Missing Library Boxes

    4
    0 Votes
    4 Posts
    3k Views
    N
    Btw, i was trying to implement the same function but i'm getting a hard time understanding how the ST language works. Is the any ST language documentation besides the one on help? For example i'm having a issue (probably related to includes) where i'm trying to use Lib.Core.V1_0.B99_PCTimeNode.Wday and i get the message the variable 'Wday' can't be accessed from the current scope. Thanks