• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. copytco
    3. Posts

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 20
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by copytco

    • RE: Polling issue with high register number with Arduino via Modbus

      Hi phildunlap,

      I use a simple USB A male to B male cable to connect my Arduino and unfortunately I am not capable of building 485 type of connection.

      Any type of timing settings (even above 10 s) resulted in aborted polls in Mango, while as strict polling as 500 ms or 1 s in ScadaBR or RapidSCADA or any other Modbus Master (downloaded some applications acting as Modbus Master) do not act like Mango with the same settings. Therefore, I do not know what type of timing override I might employ to make it work.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      No, this exception no longer occurs. However, timeout errors are still present. I imported the project, after some modifications, to ScadaBR and It works without those errors. Also, I have set up RapidSCADA and It is also going without any timeouts on the same polling time configuration, so this drives me to conclusion, that the issue comes directly from Mango.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      I run Mango on Windows 7 Home Premium, on Asus K53S with i7-2630QM CPU. All I know about those errors is that what is in the first post and while going through the log I see also something like that:

      WARN 2016-01-15 19:25:18,888 (com.serotonin.m2m2.rt.dataSource.PollingDataSource.scheduleTimeout:106) - Modbus: poll at 2016/01/15 19:25:18 aborted because a previous poll started at 2016/01/15 19:25:16 is still running
      DEBUG 2016-01-15 19:25:18,888 (com.serotonin.m2m2.rt.EventManager.raiseEvent:155) - Event raised: type=DataSoureEventType(dataSourceId=2, eventTypeId=4), message='Modbus': Data source with xid: DS_257972 and name: Modbus, aborted 219 polls.

      I can try to run fresh Mango install on virtual machine with Ubuntu installed and see what happens.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      Thanks, unfortunately I still experience those errors mentioned in the first post. Though, they seem to be a little bit less intensive.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      Thanks, I see that there is no longer error message, but some other appeared. Details are here: http://pasted.co/ae06e69d To know if it resolves the aborted polls issue, I would need to let it run for couple of hours.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      Thanks, phildunlap, I used your file and this is the log I received: http://pasted.co/6ac92888

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      So is there any way of solving that problem? I see than I encounter the same error message even on fresh install of Mango when creating Modbus data source and defining at least one data point.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      Hi, I tried placing the file into serotonin folder and when tried to enable my data source, got an error as shown below.

      modbus_error.JPG

      What could I do about it now?

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      Thank you, phildunlap.

      I did what you have written - moved debug-log4j.xml in place of log4j.xml, created overrides folder and subfolders, and placed the file provided by you in there. Here is the log I received: http://pasted.co/d6b935a0

      I do not know much about how Modbus works "inside", but I here is the log I received for this session: http://pasted.co/10adedb5

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      phildunlap, thanks for your post.

      Below, you can find my current settings (I believe they have an impact on error appearing rate). The whole log with started "Modbus" data source is here: http://pasted.co/7265b7d4

      modbus_settings.JPG

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      I tested this settings further (and even some others) and the problem is still present. Just after launch of both Arduino and Mango it goes good for circa 40 minutes, then there is a series of 10 to 20 timeouts lasting from 1 to 3 minutes and then can be a 5 minutes break for normal working or even smaller. Sometimes errors start to appear even 5 minutes after launch.

      I even tried 1000 ms retry and 3000 ms update period but no success, the rate of occurring errors is similar. Any hints what to do now?

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      stensma, JoelHaggar, hussam, thanks for your answers, this helped a lot!

      I changed update period to 1200 ms, timeout to 500 ms with 1 retry, max read bit count to 160 and max read/write register count to 10. No aborted polls and timeouts so far after 0,5 h run, nevertheless, I will test it further.

      What is still present is error I see in log and command window, the content is as below:

      (com.serotonin.io.serial.JsscSerialPortInputStream.serialEvent:134) - java.lang.NullPointerException

      I get it every 5 - 8 ms, then there is ~50 ms break, and it starts again. I suppose the error occurs every time something is calculated/updated but I cannot get what might be wrong here.

      posted in User help
      C
      copytco
    • RE: Polling issue with high register number with Arduino via Modbus

      JoelHaggar, yes, I have tried that. My current settings are with 10 max read/write registers.

      The "funny thing" is that I am also having aborted polls when only 6 - 10 registers are involved in total.

      Nevertheless, my current settings for this data source with 49 registers is as shown below.

      mang_modbus.JPG

      posted in User help
      C
      copytco
    • Polling issue with high register number with Arduino via Modbus

      Hi,

      I have connected Arduino to Mango via Modbus RTU protocol. When I had circa 6 - 10 registers set in Mango, it was all working pretty well - not ideally: I even made an empty loop and made Arduino running, while I occasionally got "aborted polls" error. When my number of registers increased to 49 I started to receive errors similar to following:

      'Modbus': com.serotonin.modbus4j.exception.ModbusTransportException: com.serotonin.messaging.TimeoutException: request=SerialMessage [modbusMessage=ReadHoldingRegistersRequest [slaveId=1, getFunctionCode()=3, toString()=ReadNumericRequest [startOffset=10, numberOfRegisters=10]]]

      With that, Arduino TX and RX diodes turn off and no communication is on the line for usually about 2 minutes and then it works for, like, 30 seconds.

      I have tried different update period, quantizing, max read/write register count but nothing is helping so far. I benchmarked it against other SCADA systems and there it works fine, but I would like to keep using Mango for many reasons. Any possible solutions? :)

      posted in User help
      C
      copytco
    • RE: Problem integrating with HighCharts

      Thanks you both for replies.

      All data i want to plot comes from data points.

      I am using 2.5.2., but I am going to switch to 2.6.0 if you are advising so.

      About the chart - I would like to have a whole process in one place. My PLC is all about boiling a liquid in some stages which have defined time and temperature, which can be also changed during the process by a user.

      User can define number of stages and also change it on-the-fly. Mainly, the data points I am using are: STAGEXTEMP (X for stage number, from 0 to 9), STAGEXTIME (X for stage number, from 0 to 9), NOOFSTAGES (number of stages, can have values from 1 to 9), ACTUALSTAGE (current stage, from 0 to 9), TEMP (current temperature in °C). The funny thing is that stage 9 is obligatory, so if you set NOOFSTAGES to e.g. 2, you get stage 0, stage 1 and stage 9.

      The chart I need would plot a series of STAGEXTEMP for a time decared in STAGEXTIME (it counts down to 0 and makes ACTUALSTAGE go +1, then the next STAGEXTIME is counted down) only for STAGEXTEMP and TEMP, but still showing previous stages and temperatures in a different series so it can be differenciated.

      I hope you get what I mean. I think it is not simple, as I find it as JavaScript beginner. I would be grateful if you could write me some code as you said, please.

      posted in Dashboard Designer & Custom AngularJS Pages
      C
      copytco
    • RE: Problem integrating with HighCharts

      Thanks for your response.

      I am thinking about doing in amCharts using Dashboard - it would be much easier, but still there are lots of things going in the code I have no idea about.

      What I would like to achieve is to have a chart, which plots temperature from a sensor. I have a PID that communicates with a heater and depending on the phase of heating the target temperature is different and stored in different variable (I know I can put it into one using some scripting, but it is not the point). I would like to know and see when the phase has ended, so the plotting curve of the temperature's phase would end and a next one would start.

      Do you think something like this is possible to be done in amCharts?

      posted in Dashboard Designer & Custom AngularJS Pages
      C
      copytco
    • RE: Problem integrating with HighCharts

      Thanks for your response.

      Changing jQuery to Prototype solved the problem, but now another one emerged - is there any way to provide data to HighCharts in any (preferrable dynamic) way?

      posted in Dashboard Designer & Custom AngularJS Pages
      C
      copytco
    • RE: Build a Mango Dashboard Tutorial (Mango 2.x)

      Hi, I am trying to make my dashboard. I just configured Mango and tried to see the examples provided in the application, though I cannot see any charts. Legend is present on the bottom, but no axis lines nor other graphics is rendered (screen below). Why is it so?
      Mango.png

      posted in Dashboard Designer & Custom AngularJS Pages
      C
      copytco
    • Saving data point values into a file

      Is there a dynamic way to save data point values into a file? I think a server-side script might be capable of doing something like that, but I'm new to JS and somehow it does not recognize jQuery API when I try to use it. Is there any other option to save the data or implement jQuery (and some other scripts) to a server-side script? jQuery, when included works in HTML component, though.

      posted in How-To
      C
      copytco
    • Problem integrating with HighCharts

      Hi there, I try to use HighCharts in Mango, but when I put the code into a graphical view I get an error: "failed to hide node", but after clicking OK the chart runs fine. What might be the problem?

      posted in Dashboard Designer & Custom AngularJS Pages
      C
      copytco