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

Reinitialise a SFC

john
2006-02-13
2006-02-13
  • john

    john - 2006-02-13

    Hi,

    Im trying to use the SFCInit flag to restart a SFC, but I cant seem to get the syntax correct. My SFC is called SetSpeed.

    I have tried declaring a global variable SetSpeed.SFCInit and also SetSpeed_SFCInit but only get errors when building.

    Any help would be appreciated.

    Thanking you in advance.

     
  • Igor Petrov

    Igor Petrov - 2006-02-13

    You have to declare SFCInit : BOOL; inside the SFC POU.

    Best regards!

     
  • john

    john - 2006-02-13

    Thanks Igor

    That worked well.

     

Log in to post a comment.