Home AMX User Forum NetLinx Studio

Newbie question about Barco Projector SLM-R12+

Hi,

I'm newbie of Netlinx designer. I program for AMX Axcent3, control this projector via RS232 port 1. If anybody know about code for control this model projector, please send me. Or send me the sample for this.

Many thanks,
Thang Nguyen

Comments

  • ColinColin Posts: 51
    Axcent vs. Netlinx

    Do you have the current source code for the Axcent as probably if you list it someone may rejig it for Netlinx for you
  • ryanwwryanww Posts: 196
    I had a discussion on here about controlling an SLM R6 which has identical serial commands. I used rs422 though because I have 2 on the same serial card. If you can't find them, I can try and look.

    Ryan
  • Colin wrote:
    Do you have the current source code for the Axcent as probably if you list it someone may rejig it for Netlinx for you
    The code for turn on/off projector as below:
    DEFINE_CALL 'PRJON' (*SUBROTINE FOR TURNING ON PROJ*)
    {
    SEND_STRING dvProj,"$30,$30,$21,$0D"
    }
    (* TURN OFF THE PROJECTOR *)
    DEFINE_CALL 'PRJOFF'
    {
    SEND_STRING dvProj,"$30,$30,$22,$0D"
    }

    DEFINE_START

    (*Setting baud rate for RS232 devices*)
    send_command dvProj,'SET BAUD 9600,N,8,1,485 DISABLE'
    ______________________
    Is that correct?

    Thanks,
    Thang
  • ryanww wrote:
    I had a discussion on here about controlling an SLM R6 which has identical serial commands. I used rs422 though because I have 2 on the same serial card. If you can't find them, I can try and look.

    Ryan
    Yes Ryan, please send me!

    Thanks in advanced,
    Thang
  • ColinColin Posts: 51
    Send_Command

    All you should need to do is place the Send_command in the

    Data_Event Vproj
  • ColinColin Posts: 51
    Try Again

    Sorry got set into "program Mode and accidentally hit the Tab and CR

    All you should need to do is take the send_command out of Define_Start and place into Data_Event

    Data_Event [dvProj]
    {
    Online:
    {
    send_command dvProj, 'SET BAUD 9600,N,8,1,485 DISABLE'
    }
    }
  • Colin wrote:
    Sorry got set into "program Mode and accidentally hit the Tab and CR

    All you should need to do is take the send_command out of Define_Start and place into Data_Event

    Data_Event [dvProj]
    {
    Online:
    {
    send_command dvProj, 'SET BAUD 9600,N,8,1,485 DISABLE'
    }
    }

    Dear Conlin,

    Where can I put that code to? I tried to put to some where but the Netlinx say error when I compile! I program for Axcent 3 and AXT-CV10 equipments.

    Thanks,
    Thang
  • ryanwwryanww Posts: 196
    Attached is the codes manual. You have to put the address in with the string, which ever address the projector is set to. Plus you have to add up all the hex values for the checksum. If you have problems with this, I am sure someone on here can help, or I can. The baud rate that you set the serial card to should match what the projector is set for. I would probably recommend using 38,400k, but you can use 9600 if you so desire or whatever.

    Ryan
  • Colin wrote:
    Sorry got set into "program Mode and accidentally hit the Tab and CR

    All you should need to do is take the send_command out of Define_Start and place into Data_Event

    Data_Event [dvProj]
    {
    Online:
    {
    send_command dvProj, 'SET BAUD 9600,N,8,1,485 DISABLE'
    }
    }

    Dear Colin,

    It does not work. Do you have any ideals?

    Thanks,
    T.
  • toddttoddt Posts: 28
    thangnm wrote:
    Dear Colin,

    It does not work. Do you have any ideals?

    Thanks,
    T.


    You need to but the Data_Event under the Event section of the netlinks code section.
  • Folks? He's working with an Axcent3... No EVENTs...

    - Chip
  • thangnmthangnm Posts: 12
    Chip Moody wrote:
    Folks? He's working with an Axcent3... No EVENTs...

    - Chip

    Yeah! No EVENTs for Axcent3. How can I do now? Thanks
    Thang
  • DHawthorneDHawthorne Posts: 4,584
    thangnm wrote:
    Yeah! No EVENTs for Axcent3. How can I do now? Thanks
    Thang

    For an Axcent3, your original code is correct; the serial port settings go in DEFINE_START.
  • ryanwwryanww Posts: 196
    Are you have the projector set up to receive rs232 and not 422? Turn the termination on the projector to off if it asks. Make sure you have the projector set to the correct projector address.

    Ryan
  • Hi,

    All setting are correct! I've just only do not know how to control the Barco projector by Axcess3 command. I used RS232 port.

    But now everything is OK. I found how to deal with this projector. I only use command:
    wrote:
    SYSTEM_CALL [DEV] 'VPJ7' (DEV,ADDR,FUNCTION,DATA,PANEL,BTNNUM)
    (*BARCO LCD Video Projectors
    Where :
    DEV = AMX DEVICE NUMBER
    ADDR = VIDEO PROJECTOR ADDRESS (1-8)
    FUNCTION = VALUE OF FUNCTION
    VP_POWER_SET = 1
    VP_VIDEO_MUTE_SET = 2
    VP_AUDIO_MUTE_SET = 3
    VP_INPUT_SELECT = 4
    VP_CHANNEL_SELECT = 5
    VP_VOLUME_SET = 10
    VP_BRIGHT_SET = 11
    VP_COLOR_SET = 12
    VP_CONTR_SET = 13
    VP_SHARP_SET = 14
    VP_TINT_SET = 15
    VP_VOLUME_RAMP = 20
    VP_BRIGHT_RAMP = 21
    VP_COLOR_RAMP = 22
    VP_CONTR_RAMP = 23
    VP_SHARP_RAMP = 24
    VP_TINT_RAMP = 25
    DATA = ASSOCIATED DATA
    VP_SET_ON = 1
    VP_SET_OFF = 2
    VP_SET_TOGGLE = 3
    VP_INCREASE = 4
    VP_DECREASE = 5
    PANEL = AMX CONTROL PANEL (OR 0)
    BTNNUM = PANEL BUTTON NUMBER (OR 0)
    *)
    It's very easy. Thank you all.

    Cheers,
    Thang
Sign In or Register to comment.