SERIN2 syntax and compiling error.


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2011
    Location
    IO93ok
    Posts
    190

    Default SERIN2 syntax and compiling error.

    I get an error when I try to compile either of these lines.

    It's supposed to wait 1 second and if nothing is received then return to label 'red'

    SERIN2 PortA.2,84,1000,red[("ACK")]

    or

    SERIN2 PortA.2,84,[1000,red("ACK")]

    I'm guessing it's the way I'm writing the syntax? What should it be?

    Rob

  2. #2
    Join Date
    Dec 2011
    Location
    IO93ok
    Posts
    190


    Did you find this post helpful? Yes | No

    Default Re: SERIN2 syntax and compiling error.

    DOH!

    Why after many searches do you then get it right just after posting to forum.

    SERIN2 PortA.2,84,1000,red,[WAIT("ACK")]

    I assumed you set the timeout but didn't then need WAIT.

  3. #3
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Default Re: SERIN2 syntax and compiling error.

    I think you may want something like:

    SERIN2 PortA.2,84,1000,red,[wait("ACK")]

Similar Threads

  1. Replies: 1
    Last Post: - 30th March 2012, 05:13
  2. Compile error & syntax error on the word "loop:" as a label?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2010, 05:14
  3. SERIN2 Syntax
    By Filbert in forum Serial
    Replies: 6
    Last Post: - 16th April 2008, 21:40
  4. SERIN2 Command Syntax
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th November 2005, 02:42
  5. Syntax SEROUT2 and SERIN2 commands
    By crocodilebobbie in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th October 2005, 16:35

Members who have read this thread : 1

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

Posting Permissions

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