Home AMX Forum AMXForums Archive Threads AMX Hardware
Options

Modero

It looks like I have to finally break down and switch from our normal G3 panels AXD-MCP to Modero. I just want to know how hard it is to interface these panels into the program that uses G3 panels. I converted my G3 template to G4(some mods). Anyone have some AXD-MCP they want to sell?

Comments

  • Marc ScheibeinMarc Scheibein Junior Member
    If you just convert the G3 file to G4, and not using any of the features of G4, it should be easy to integrate.

    The difference is just in notation of the device address, where you may have to modify your code in some details:

    DEFINE_CALL 'MyCall'(PANEL,<any more parameters>)
    {
    }

    In general, this will create a compiler error, because it's not possible to pass the Number:Port:System structure thru the Integer PANEL.

    If you don't use more than one Port of the G4 panel, just define the panel in the old way

    DEFINE_DEVICE
    MyPanel = 10001

    The master will add the :1:0 internally. This is not that styleguide, but will work.

    If your G3 file has more than "Device Used 1", after converting to G4 you'll get more ports to your G4 file.

    DEFINE_DEVICE
    (* G3 panel *)
    (*
    MyPanel_A = 128
    MyPanel_B = 129
    MyPanel_C = 130
    MyPanel_D = 131
    *)
    // converted to G4
    MyPanel_A = 10001:1:0
    MyPanel_B = 10001:2:0
    MyPanel_C = 10001:3:0
    MyPanel_D = 10001:4:0

    In this situation, it's better to modify your calls.

    DEFINE_CALL 'MyCall'(DEV PANEL,<any more parameters>)
    {
    }


    The basic commands for the panel are still the same (TEXT, @PPN/@PPF,PAGE, etc).
    Only one difference in the basic commands is 'PAGE-' (page command without a page name). This will tell the panel to do a "Previous" pageflip.

    Regards,
    Marc
  • DHawthorneDHawthorne Junior Member
    You can "fake" old G3 routines into accepting G4 device numbers without modification by simply using .NUMBER after the device name if you are working in NetLinx. Soo you could use the old "DEFINE_CALL 'MyCall'(PANEL,<any more parameters>)" by calling it with "CALL 'MyCall'(dvPanel.NUMBER, <parameters>)".
  • Marc ScheibeinMarc Scheibein Junior Member
    DHawthorne wrote:
    You can "fake" old G3 routines into accepting G4 device numbers without modification by simply using .NUMBER after the device name if you are working in NetLinx. Soo you could use the old "DEFINE_CALL 'MyCall'(PANEL,<any more parameters>)" by calling it with "CALL 'MyCall'(dvPanel.NUMBER, <parameters>)".

    Eh... you are right, I forgot that simple way ;)
  • Thomas HayesThomas Hayes Junior Member
    Thanks guys, I will try this once the new panels arrive.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file