Need help using MEL command "Xout" with an X-10 PCS-05 bidir pwr-line interface


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Okay, set your receiver module to House 'A', Unit '1'.

    Substitute the XOUT statements from your code to

    XOUT PORTB.1,PORTC.5,[0\0,0\unitOn) 'Send an 'ON' to A1
    and
    XOUT PORTB.1,PORTC.5,[0\0,0\unitOff) 'Send an 'OFF' to A1

    Lets see where this gets you; if it doesnt work I'll take a closer look at the waveforms, but I think that might be unnecessary.

    BTW, connect your pic XOUT pin directly to the interface; as Dave pointed out the extra components are really not required.

    Regards,

    Anand

  2. #2
    Join Date
    Jan 2011
    Posts
    8


    Did you find this post helpful? Yes | No

    Smile Your suggested code worked like a charm, on the first try--THANK YOU !!!

    Hi Anand, and everyone else who responded to my plight,

    Anand, Your suggested code worked like a charm, on the first try--THANK YOU !!!

    I am thrilled to have it finally working. I'll need to go troubleshoot why my code did not work, so I can better understand my mistake and how not to repeat it in the future. And, whew--I'm sure glad to not need that other circuitry that X10pro showed in between the PIC-chip and the psco5.

    Fantastic, and thanks again,
    Guglulenun

  3. #3
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi guglulenun,

    I am glad you have got it working.

    The problem was with the syntactic construction of your XOUT line.

    Once you have defined the House and Unit codes, the line should be in the format:

    XOUT SIG_OUT,ZEROX,[HOUSE\UNIT,HOUSE\unitOn]

    Since you have included modedefs.com, you can also use all the pre-defined X10 commands directly .

    Also, you can use byte variables for House and Unit, as they only go up to 16.

    Regards,

    Anand.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts