Logic Problem in PICED 4.6.1

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by DSV, Jul 15, 2009.

  1. DSV

    DSV

    Joined:
    May 3, 2006
    Messages:
    13
    Likes Received:
    0
    Location:
    Australia
    Hi,

    I have the following code in the Initialisation section that compiles and has worked without any issues in Piced version 4.4.1 and running on a C-Touch Mark 2 with logic. In version 4.6.1 I get the following error:

    Error C179 at line 40:14 - Function or Procedure not supported for this Project type. Can use "Allow use of all Functions for Testing"
    on Logic Options form for temporary use of this function.


    Code:

    If (DayOfWeek in ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]) and
    (Time >= "8:00:00 AM") and
    (Time <= "6:00:00 PM") then
    PWork_Hours {Procedure}
    else
    PAfter_Hours; {Procedure}

    Can anyone advise what the issue could be.

    Thanks in advance.
     
    DSV, Jul 15, 2009
    #1
  2. DSV

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The problem is that Black and White C-Touch and the PAC have never supported sets. Until recently, there was no error raised if you tried to use sets for C-Touch or PAC projects.

    You will need to change to something like:

    Code:
    If (DayOfWeek  >= "Monday") and (DayOfWeek <= "Friday") ...
    
     
    Darren, Jul 16, 2009
    #2
  3. DSV

    mdooher

    Joined:
    Jul 18, 2009
    Messages:
    24
    Likes Received:
    0
    Location:
    Dunedin NZ
    I've always gone for ...

    if((DayOfWeek <> "Sunday") and (DayOfWeek <> "Saturday"))then

    but I like your one better
     
    mdooher, Jul 18, 2009
    #3
  4. DSV

    Aaron

    Joined:
    Jul 16, 2009
    Messages:
    99
    Likes Received:
    0
    Location:
    Wales, UK
    Is there a colour touch screen mk II available in the uk?
     
    Aaron, Jul 18, 2009
    #4
  5. DSV

    Conformist

    Joined:
    Aug 4, 2004
    Messages:
    758
    Likes Received:
    67
    Location:
    Adelaide, South Australia
    Assuming you mean the version 2 colour touchscreen, then yes. There were some subtle changes to the colour touch about 12 months ago with some minor changes that are not obvious to the user. You will only be able to get this version so the answer is yes.

    Cheers
     
    Conformist, Jul 18, 2009
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.