Home AMX User Forum AMXForums Archive Threads Residential Forum

EXB-IRS4 using SET INPUT LINK

I am using a cable box, which only has a toggle power out of port 2 of the EXB-IRS4 and linking it to I/O 2 on the same box by using the SET INPUT LINK. The I/O 2 is sensing an external relay connected to the cable box power outlet. So when the cable box goes on, it turns the relay on and I/O 2 on the EXB-IRS4 lights on. I am using PON and POF to trigger the cable box on or off. It works fine on the PON, but on the POF, the cable box goes off properly, but the EXB-IRS4 keeps pulsing IR out of port 2 what turns the cable box on and off all the time. Any ideas on how to stop the IR pulsing after the POF command. On a regular Ni Master I do a conditional, but on the EXB-IRS4 I am using the PON & POF. Here is my code:
DEFINE_DEVICE
dvCABLE_Playroom  	=  6004:2:0    // SA Cable Box Explorer 8300 HDC

DEFINE_EVENT
//initialize IR port and link I/O 
DATA_EVENT[dvCABLE_Playroom]
{
    ONLINE:                 //IR device comes ONLINE
    {
        SEND_COMMAND dvCABLE_Playroom,'SET MODE IR'
        SEND_COMMAND dvCABLE_Playroom,'CARON'
        SEND_COMMAND dvCABLE_Playroom,"'CTON',3"
        SEND_COMMAND dvCABLE_Playroom,"'CTOF',3"
        SEND_COMMAND dvCABLE_Playroom,'XCHM-0'
	SEND_COMMAND dvCABLE_Playroom,'SET INPUT LINK'
    }
}

On my macros I am using these commands:

    SEND_COMMAND dvCABLE_Playroom,"'PON'" 	//Turns on cable box based on status of I/O

    SEND_COMMAND dvCABLE_Playroom,"'POF'" 	//Turns off cable box based on status of I/O

//On a regular NI Master

    IF(![dvIONI3100,2])
    {
	SEND_COMMAND dvCABLE_MasterBed,"'SP',9"	//Cable Power
    }

Comments

  • Joe HebertJoe Hebert Posts: 2,159
    On a regular Ni Master I do a conditional….
            //On a regular NI Master
                IF(![dvIONI3100,2])
                {
            	SEND_COMMAND dvCABLE_MasterBed,"'SP',9"	//Cable Power
                }
    

    You can do the same with the EXB-IRS4 by monitoring channel 255 for each port.
    da manual wrote:
    Input Pin
    The firmware on the EXB-IRS4 senses the high/low state of the pin and always reports that state to the master
    via PUSH/RELEASE messages on ports 1-4 channel 255. This behavior persists regardless of whether the pin
    is linked or unlinked.
  • Ok. So this is the way I should handle it then?
    dvCABLE_Playroom = 6004:2:0
    
    IF(![dvCABLE_Playroom,255]) //I/O is Off = Cable box is off
    {
        SEND_COMMAND dvCABLE_Playroom,"'SP',9"   //Cable Power ON
     }
    
    IF([dvCABLE_Playroom,255]) //I/O is On = Cable box is on
    {
        SEND_COMMAND dvCABLE_Playroom,"'SP',9"   //Cable Power OFF
    }
    

    Thanks!
Sign In or Register to comment.