Home AMX User Forum AMXForums Archive Threads AMX Hardware

ICSP Port Assignments

In the "NetLinxControllers.WebConsole-ProgrammingGuide" in the "Terminal (Program Port/Telnet) Commands" section, right after the "PC COM Port Communication Settings" it shows:
NetLinx Integrated Controllers - Port Assignments
Each of the NetLinx Integrated Controllers has specific port assignments:
----------------------------------  ----------------------------------
|NI-700 Port Assignments         |  |NI-900 Port Assignments         |
|--------------------------------|  |--------------------------------|
|Port              |ICSP Port #  |  |Port              |ICSP Port #  |
|--------------------------------|  |--------------------------------|
|Serial Port #1    |1            |  |Serial Port #1    |1            |
|Serial Port #2    |2            |  |IR/Serial Port #1 |2            |
|IR/Serial Port    |3            |  |IR/Serial Port #2 |3            |
|I/O Port          |4            |  |IR/Serial Port #3 |3            |
|IR RX Port        |5            |  |I/O Port          |4            |
----------------------------------  |IR RX Port        |5            |
                                    ----------------------------------

Anybody know what it's talking about?

Comments

  • jjamesjjames Posts: 2,908
    It appears that it's referencing the ports of the device and just a typo. So instead of ICSP port, it should probably say "device port". As to why it is in that section of the manual, I have no idea.
  • John NagyJohn Nagy Posts: 1,742
    <rant>
    I always hate how AMX port numbers jump around from one processor to the next.
    Would life be easier if the first IR port were the same number on every processor, no matter how many serial ports it might have? Same for relays, IO ports?
    Yes, it would. You could interchange processors without recoding/reconfiguring.
    </rant>
  • viningvining Posts: 4,368
    John Nagy wrote: »
    <rant>
    I always hate how AMX port numbers jump around from one processor to the next.
    Would life be easier if the first IR port were the same number on every processor, no matter how many serial ports it might have? Same for relays, IO ports?
    Yes, it would. You could interchange processors without recoding/reconfiguring.
    </rant>

    +1

    ".............."
  • rfletcherrfletcher Posts: 217
    John Nagy wrote: »
    <rant>
    I always hate how AMX port numbers jump around from one processor to the next.
    Would life be easier if the first IR port were the same number on every processor, no matter how many serial ports it might have? Same for relays, IO ports?
    Yes, it would. You could interchange processors without recoding/reconfiguring.
    </rant>

    Yes, yes it would.
  • AuserAuser Posts: 506
    John Nagy wrote: »
    Would life be easier if the first IR port were the same number on every processor, no matter how many serial ports it might have? Same for relays, IO ports?

    Perhaps, but I still find it fairly easy to deal with:
    // MainSourceFile.axs
    
    #DEFINE __NI3000__
    #INCLUDE 'LibNetlinx.axi'
    on[dvIR_1]
    
    // LibNetlinx.axi
    
    DEFINE_DEVICE
    dvDUMMY = 0:0:0
    #IF_DEFINED __NI700__
    dvCOM_1 = 5001:1:0
    [...]
    dvIR_1 = 5001:4:0  // or whatever
    [...]
    #END_IF
    
    #IF_DEFINED __NI3000__
    dvCOM_1 = 5001:1:0
    [...]
    dvIR_1 = 5001:9:0  // or whatever
    [...]
    #END_IF
    
    #IF_NOT_DEFINED dvCOM_1
      dvCOM_1 = dvDUMMY
    #END_IF
    [...]
    #IF_NOT_DEFINED dvCOM_1
      dvCOM_1 = dvDUMMY
    #END_IF
    [...]
    

    Extend and expand to suit your style/needs. Doesn't work when referencing ports on other systems using M2M obviously, but there are ways to achieve this too.
  • John NagyJohn Nagy Posts: 1,742
    You can pack a lunch, a parachute, a scuba tank, and a 5 gallon gas tank when you go out to the mailbox too. Just in case. Shouldn't have to.
  • champchamp Posts: 261
    Ausers' solution is pretty easy, porting code between AMX processor models is way easier than doing the same with competing products.
    There are plenty of other things more rant worthy than this.
  • rynandorynando Posts: 68
    jjames wrote: »
    It appears that it's referencing the ports of the device and just a typo. So instead of ICSP port, it should probably say "device port". As to why it is in that section of the manual, I have no idea.

    I think that all of those devices are on the ICSP buss and that those are their port assignments/addresses. That's how I've always viewed it.
Sign In or Register to comment.