Home AMX User Forum NetLinx Studio

Send and Receive

Dear Sir
Every thing under control
If I have tow touch panel and I want to make restaurant page between the tow touch panels.
For example:
Touch panel in the bed room and another in the kitchen.
If you seating in the bed room and asked for cube of coffee, so the person who work in the kitchen must knows by the touch panel the request.
So we can do this scenario? Or there is another scenario?
With best regards
Ghaith Hageer

Comments

  • If I understand correctly, there are lots of relatively simple ways to do this:

    //DEVICE DEFINITIONS
    DEFINE_DEVICE
    dvTP1 = 10001:1:0      //Touchpanel in MBR
    dvTP2 = 10002:1:0      //Touchpanel in Kitchen
    
    //CONSTANTS:
    DEFINE_CONSTANT
    
    INTEGER nCoffeeButton 		= 	1      //Button number 1 marked coffee on MBR touchpanel
    INTEGER nVariableTextButton	=	10     //Variable Text button number 10 on the Kitchen Touchpanel
    
    //EVENTS:
    DEFINE_EVENT
    
    BUTTON_EVENT [dvTP1,nCoffeeButton]	       //Coffee button is pushed
    {
      PUSH:
      {
    	 SEND_COMMAND dvTP2,"'^TXT-',ITOA(nVariableTextButton),',0, ORDER:  1 Cup of Coffee to MBR'"
      }
    }
    


    --John
Sign In or Register to comment.