Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Start contact

alverman
2017-05-24
2017-09-24
  • alverman - 2017-05-24

    Good morning,
    I would have a question for you:
    Is there a way to have a conception that opens and then closes when the program starts on the plc?
    In my project I have 4 OSCAT timers that at a certain time perform an operation only that every time the application loads on the plc the timers leave.
    I would like to create a denied contact that at startup interrupts the timer output to say 5 seconds and then closes.

    it's possible ?

    Thank you, Alberto

     
  • Anonymous - 2017-09-24

    Originally created by: scott_cunningham

    I see you never received an answer. Hopefully you solved this. Otherwise my idea:

    Define another timer for 5 seconds and call it all the time.

    VAR
    Β  Β BootDone : TON;
    Β END_VAR
    Β 
    Β BootDone(IN:=TRUE, PT:=T#5S);
    Β IF BootDone.Q THEN
    Β  Β  //ok to use other timer values now
    Β END_IF
    Β 
    
     

Log in to post a comment.