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

Call function from library in ST

2020-10-12
2020-10-12
  • mrgoodcat1234 - 2020-10-12

    Hi,
    i'm trying to use a function from oscat library.
    If i use it with CFC it works, but in ST not, for syntax errors or something similar.
    I get the error "oscat_basic.ATAN2" is of type FUNCTION and cannot be instantiated.
    Can someone tell me the error(s)?
    Thanks,
    BR

     

    Last edit: mrgoodcat1234 2020-10-12
  • Thomas - 2020-10-12

    It is an function, not a FB. == >> Not necessary to declare a variable

     
    • mrgoodcat1234 - 2020-10-12

      thank you Thomas! I correct with the full name of the function and it works!

       

Log in to post a comment.