Piced Initialisation Part

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Josh, Feb 22, 2006.

  1. Josh

    Josh

    Joined:
    Aug 25, 2004
    Messages:
    240
    Likes Received:
    0
    Location:
    Pretoria, South Africa
    I am assuming that the Initialisation Part of the PAC Logic Program runs only once, that is when the unit powers up and possibly after each program transfer.

    Is there any condition that would cause the Initialisation to run again and again? Maybe a crash?

    The reason I ask is.

    I have a module that has once (A<>B) {DOSTUFF}. All worked well until after a power cut and the module stopped running. I then added code to initialize A in the Initialisation Part. All seemed okay, but there are cases where A would be initialized again and again. I changed the ramp rate of initialisation Part to clarify which was the line of code responsible, and it looked like it was in the initialisation.

    Can anyone shed a light on this?
     
    Josh, Feb 22, 2006
    #1
  2. Josh

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The initialisation part will only run once each time the logic engine is started. If you have certain run-time errors, the logic engine may get re-started. A quick look at the log will tell you if this is happening.
     
    Darren, Feb 22, 2006
    #2
  3. Josh

    Josh

    Joined:
    Aug 25, 2004
    Messages:
    240
    Likes Received:
    0
    Location:
    Pretoria, South Africa
    So, if the log shows that the Initialize is being executed, how do you identify the logic that might have causes this run-time error?
     
    Josh, Jan 15, 2010
    #3
  4. Josh

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    A message will be logged with the run-time error number and the logic line number.
     
    Darren, Jan 15, 2010
    #4
  5. Josh

    Josh

    Joined:
    Aug 25, 2004
    Messages:
    240
    Likes Received:
    0
    Location:
    Pretoria, South Africa
    Thanks Darren,

    I was looking at the CbusToolkit's application log via the PC Interface and (and based on the GA changes identified the issue). Which log shows the run-time error number?
     
    Josh, Jan 15, 2010
    #5
  6. Josh

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The PICED log. This has nothing to do with ToolKit.
     
    Darren, Jan 15, 2010
    #6
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.