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

Ladder example please

stu1980
2012-11-19
2012-11-19
  • stu1980 - 2012-11-19

    Hi, has anyone got a good example of ladder using functions and function blocks? please.

    Stu

     
  • shooter - 2012-11-19

    you can use user function blocks in ladder when the first input and output are bools

    if you use the Enable block (just right from this one, you can use any function and block.
    just fill in the ??? fields with vars.
    and you will have to give each block its own name.

     
  • stu1980 - 2012-11-19

    shooter hat geschrieben:
    you can use user function blocks in ladder when the first input and output are bools
    if you use the Enable block (just right from this one, you can use any function and block.
    just fill in the ??? fields with vars.
    and you will have to give each block its own name.

    So if created a function block declared the inputs and outputs. Would i be able to use a contacts and coils to create an AND(well aware there is a standard function block). Reason why i ask just need to know the rules when creating my own function blocks,can you contact and coils or only boxes?

     

Log in to post a comment.