• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. nikorun
    3. Topics

    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
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 25
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by nikorun

    • N

      Why using function 0x16 when writing to only one register

      Modbus4J general discussion
      • • • nikorun
      2
      0
      Votes
      2
      Posts
      2.2k
      Views

      N

      Hi,

      I'm facing a problem. My slave doesn't support function 0x16 so I would prefer mango to use function 0x06 instead.
      i've notice that Mango uses it when writing a integer value to a register but uses 0x16 to write a "BIT" value (The Data point is declared as a holding Register, but a simple bit si addressed)?

      Does anybody knows why ?

      isn't it possible to force use of function 0x06 to when writing to only one register ?

      Thanks, i'm not good in java and i cannot imagine put my hand in the code ... :-(

      nico

      Examples :

      below I try to write value 1 to bit 1 of holding register 7 into slave 3

      2014/04/07-18:50:42,920 O 03160007fffd0002e23a
      2014/04/07-18:50:42,965 I 0396512f9c

      My slave responds with an error because it doesn't handle function 16

      Below when i try to write integer value 2 to same register 7 (my locator is then declared as a 2 byte integer value)

      2014/04/07-19:06:49,813 O 030600070002b828
      2014/04/07-19:06:49,848 I 030600070002b828

      ... Then it works

    • N

      HOWtO HTTP receiver in order to return point values

      User help
      • • • nikorun
      2
      0
      Votes
      2
      Posts
      1.8k
      Views

      N

      Hi everybody,

      I have a very simple question : "how can I use prologue and epilogue" ?
      As far as I look in the online doc, I canno't figure out where I can write the " insert into systemSettings (settingName, settingValue) values ('httpdsPrologue', 'my prologue content')" sentence ...

      My real Goal is to use a response from Mango to send POINT STATUS back to the requester (Netio), so that I could see in which rel state my points are ...
      So even if I deal wth prologue, I will only have a confirmation that my request as been correctly sent and processed, but not that my pont has changed status (It could be blocked by another process)

      If you know another way to do this (with HTTP) ..let me know.

      Bye and Thanks

    • N

      Question concerning the versions of Mango and theses licences

      Mango Automation general Discussion
      • • • nikorun
      7
      0
      Votes
      7
      Posts
      4.0k
      Views

      phildunlapP

      Most of the context help popups exist on our wiki (all the core ones, for sure). You can access the scripting datasource help at http://wiki.infiniteautomation.com/doku.php?id=scripting_data_source

    • N

      Mango + Raspberry Pi + DS18B20

      Stories
      • • • nikorun
      4
      0
      Votes
      4
      Posts
      7.4k
      Views

      N

      Hello,

      In fact I have frequent errors with the Modbus and I guess this could be caused by a lack of power on the Alix board.
      I've googlelized those day to know wich CPU is faster beetween GFeode (On Alix) and ARmv7 but nothing has conviced me enough to switch to Pi.

      But you're right, I will try and let everybody know which one suits best to Mango, by the way I'm running Mango for one year now and this is time to change :lol:

      Another solution should be to swicth directly to BBB (http://beagleboard.org/Products/BeagleBone Black) , for 10 more bucks there are some intersting improvement vs Pi, starting by ... more power !

    • N

      Forcing Register with Holding Registers commands

      Modbus4J general discussion
      • • • nikorun
      2
      0
      Votes
      2
      Posts
      1.9k
      Views

      N

      Hello,

      I'm using Holding Registers Points to drive registers in a slave PLC.

      I would like to force these registers but I realise that I can only force to "0" (zéro) but not to "1" ... Is there anybody that faced this situation before ?
      When I use Coil Status Points, it works well ...

      I could use Coil Status points to do this but I'm afraid of how Mango will handle requests, I've about 50 points in the field and would be sure that mango will not trigger them individualy , I mean sending 50 "Read Coil" requests instead of sending few "Read Holding Regiters" requests.

      I've posted another question relative to Logging modbus requests, an answer of this previous question would of course answer to this point ... :shock:

      Thanks,

      Nicolas

    • N

      Modbus Request Logging

      Modbus4J general discussion
      • • • nikorun
      3
      0
      Votes
      3
      Posts
      2.6k
      Views

      N

      HI !

      Did someone face the same problem than me concerning modbus logs ?
      I'm facing a lot of trouble with my modbus and logging would be very usefull...

      Bye

    • N

      Mango + IMO PLCs + Arduino for Home Automation

      Stories
      • • • nikorun
      2
      0
      Votes
      2
      Posts
      4.3k
      Views

      N

      Hi,

      Having recently bought an old house, I Had to entirely rebuild the electrical circuitry. So I decided to include some automation. As the goal was to manage every Lamp and every switch in the house, the most important think was to build something stable, So I decided to use Industrial PLC based on hte Brand IMO (http://www.imopc.com), mainly for a reason of global cost.

      It's based on 5 IMO ISMART (http://www.imopc.com/pages/spotlight_ismart) PLC's wich collect the switchs and pilots the lamp with they internal relays. Each ISMART manage a group of 16I/O and the 5 ISMART are linked by a MODBUS and drived by a Master (IMO i3 : http://www.imopc.com/pages/spotlight_i3Microsite) that handle any intelligent action. In case of any problem with Modbus or with the master , any slave is still autonomous to drive the SWITCH ON / SWITCH OFF actions .
      Be sure that this point is *very *important to keep the ambience cool enough en in the house ... 8)

      To add some more functionalities, I've add a 6th slave to this bus by using an Arduino, it was a bit tricky with hte modbus library but finaly works pretty well, as lon as you keep the speed of the bus low enough, arduino is not a Ferrari I guess....

      This systems works well for 3 years now but I've decided to improve it by adding Internet connectivity, this is where Mango takes place !
      For that, I use a second Modbus in my i3, so that Mango polls the i3 and can then read/write to it's registers and therefore acts on all the ISMART of the house. I can also push some weather datas to Pachube.

      I had many problems to do that, mainly because of the instability of the Modbus beetween the i3 and the Mango (installed on a ALIX board by the way).
      It works now but is a little bit instable for a reason I ignore (CRC problems / Excepetions errors ...).

      So that's it. I would be glad to share this with other people that did similar experiences (Sure this Forum is plenty of !) and if possible avoid the traps i ran into.

      But first of all I would like to thanks all the persons that works on the Mango project, It's very human affordable and powerfull enough to add some nice functionalities to a home automation project !!

      Nicolas

      (mango [at] airtune [dot] info )

      Bye

    • N

      Pb with COIL Wite in MODBUS

      User help
      • • • nikorun
      4
      0
      Votes
      4
      Posts
      3.2k
      Views

      N

      Well, this topic doesn't meet so much success ...no matter, I continue to share my investigations

      I Had responses from the manufacturer's doc (IMO): the function 16 is definitivly not supported ...
      I see 2 solutions now :

      deal with the function 01 (ReadCoilStatus) and 05 (WriteCOil), I wait some answers from IMO to tell me how I could use this fn without getting back a, (Out of Range Data) error bypass the built-in fonctions of Mango to write values directly to the slave using the function 06 (WriteRegister) wich I know is well supported, and a routine to calculte the good value to write (read register value, then add or substract 2^n) then write the result). All of this with the help of the Process Event Handler.

      SO I've a new question for the masters : is there a trick to call a internal procedure of Mango (from Unix CLI) to write a register to a slave ? As Mango is Master, I cannot use another external program to do this ....

      If it does'nt disturb too much , I will continue to write my relfexions in this topic, perhaps some day .... 8)