Home AMXForums Archive Threads AMX Hardware MAX by AMX

shutdown MAX via Netlinx

eddymouseeddymouse Junior MemberPosts: 67
Hi. Can I shutdown Max server via Netlinx Code?
Thank's a lot
Alessandro

Comments

  • ericmedleyericmedley Senior Member - 4000+ posts Posts: 4,177
    eddymouse wrote: »
    Hi. Can I shutdown Max server via Netlinx Code?
    Thank's a lot
    Alessandro

    Yes,

    I'm not at my machine right now to give you the exact code. But, I think it's something like Power=0.
  • eddymouseeddymouse Junior Member Posts: 67
    By a send_command ?
    thank
  • ericmedleyericmedley Senior Member - 4000+ posts Posts: 4,177
    eddymouse wrote: »
    By a send_command ?
    thank

    Yes, send_command vdv_MAX_Module
  • bobbob Independent Programmer Posts: 296
    telnet to the control port and send a string "poweroff"
  • John GonzalesJohn Gonzales Junior Member Posts: 609
    Just to note, if you issue the POWER=0 command to turn off the server, you have to manually turn it back on. It can't be turned back on by code.

    If you're trying to turn off the AVP and not the server then you could issue the commands below (where nZone is the AVP that you're trying to control):
    Send_Command vdvMAXModule, "'AVP_KEYS=',ITOA(nZone),':45'"  //Turns the AVP off
    
    or
    Send_Command vdvMAXModule, "'AVP_KEYS=',ITOA(nZone),':44'"  //Turns the AVP on 
    

    --John
Sign In or Register to comment.