• duncan

    Hi Dan,

    I presume you are using one of the Moxa MGate series Modbus TCP gateways. We use these devices extensively with Mango and they are fairly easy to setup.
    My advice is to ensure you have the correct wiring on the DB9 from your RS232 device to your Mgate. On the Moxa Mgate DB9 pin 2 is RxD, Pin 3 is TxD and pin 5 is ground.
    Download and install the Mgate manager software. Configure the Mgate accordingly RTU slave or ASCI Slave.
    Ensure you have the correct settings in the Serial section that corrspond to your RS232 device.
    Ensure you have the correct IP settings. Save this configuration to the Mgate device. Check your IP settings on Mango as well.
    Download a copy of Modscan or similar and test your Modbus connectivity. If you cant see any data then Mango cant either. The default port is 502 (TCP) on both Mango and the Mgate.

    Cheers

    Duncan

    posted in User help read more
  • duncan

    Hi everyone, I thought I would share one of my sucesses using Mango and DGLux.

    The client has a plant that takes raw coal in and then processes it into various products for distribution. There are a number of conveyor belts and each conveyor has a scale. A analog signal for the current weight and a pulsed relay contact for the totalised weight are fed into a Moxa IOLogik E2242. The Modbus registers are read into Mango and then displayed in DGlux.
    There is a small reporting page where the client can see the tonnages and also export this to a PDF. The data provided has really helped. In the past the client would have had to visit each conveyor belt on the plant and manually record the tonnages from the scale at the end of each shift. Now they can view the tonnages at any time from anywhere.

    The Mango installation is running on a small embedded PC with Ubuntu 12.04 as the OS. The system has been running for a year now with a 100% uptime. I chose to use Mysql rather than the embedded data base. This was to allow the client the ability to query the data tables for commercial reporting.

    The plant is spread over a large area and I used WiFi to connect all the Moxa units. The embedded PC sits in a small panel in a control room.
    Attached are some screen shots of the DGlux screens.

    Cheers Duncan

    posted in Stories read more
  • duncan

    Just upgraded the license to allow for a public ip address. Since that there is no Design link on the DGLux page.

    Any ideas.

    Thanks Duncan

    posted in User help read more
  • duncan

    . I have a ModBus device connected to Mango. I have a couple of ModBus Data Points. I then have a Meta Data point referencing the Modbus Data points with the following script.

    var a=p1.value;
    var le=p9.value;
    var re=p10.value;
    if (le==true) {
                    var x = " Left";
    }
    else if (re==true) {
                    var x = " Right";
    }
    if (a>0) {
                    var y = "Pkey"; 
                    var result = y +" "+ a +" "+ x;
    }
    else if (a==0) {
                    var result = "No fault"
    else if(typeof(p9.value || p10.value)=='undefined'){var result = "No fault"}
    
    return result;
    

    It works as expected except that it throws undefined errors into the result.

    No fault 06:44:46
    Pkey 1 undefined 06:44:44
    Pkey 1 Left 06:44:37
    No fault Feb 09 12:28
    Pkey 1 undefined Feb 09 12:28
    Pkey 1 Right Feb 09 12:28

    Could anyone possibly assist.

    Many thanks,

    Duncan

    posted in User help read more