Home AMX User Forum AMX General Discussion

Sony VPLPX21

Hi,

I'm looking for a RS232 Axcess block code for Sony VPLPX21 model, I checked the PDF that is listing here but I got no where, all I need is ON and OFF command nothing fancy.

Thanks

Schawad

Comments

  • Jimweir192Jimweir192 Posts: 502
    This should do you
    DEFINE_CONSTANT
    PROJ_ON          = $2E               (*PROJECTOR POWER ON *)
    PROJ_OFF         = $2F               (*PROJECTOR POWER OFF*)
    
    DEFINE_CALL 'PCHECKSUM' (CMD[50],CHECKSUM)
    LOCAL_VAR LOOP
    {
      LOOP = 2       
      CHECKSUM = 0
      WHILE (LOOP <= LENGTH_STRING(CMD))
      {
        CHECKSUM = CHECKSUM BXOR CMD[LOOP]
        LOOP = LOOP + 1
      }
    }
    
    DEFINE_CALL 'SONY PROJ' (FUNC)
    LOCAL_VAR CMD[50] CHECKSUM
    {
      CMD="$A5,$01,$00,$01,$00,$01,$03,$00,$01,$00,$01,$17,$00,$00,$08,$00,$06,$40,$54, FUNC,$01, $00,$00"
      CALL 'PCHECKSUM' (CMD,CHECKSUM)
      CMD = "CMD,CHECKSUM"   (* ADD THE CHECKSUM *)
      CMD = "CMD,$5A"       
      SEND_STRING dvProj,"CMD"
    }
    

    HTH
Sign In or Register to comment.