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

Assign initial value in FB output

  • bloox

    bloox - 2013-08-14

    I would like to ask if it is possible in Codesys to assign an initial value in the output of a function block when you call it.
    I know that according to IEC standard an output can only be read outside the function block but because there is a possibility of assigning an initialization value in other software I wanted to know if that is possible also here.
    Thank you!

  • bloox

    bloox - 2013-08-15

    Finally I found you can do it in the variables declaration (where the instance of the FB is declared e.g GVL)when you have tabular view and click the initialization or just TestInstance: TestFB := (out := 6);!


Log in to post a comment.