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

changing the type of an existing POU from FB to PRG

Easytherm
2012-12-08
2012-12-14
  • Easytherm - 2012-12-08

    Hello, I search if there is any simple way to change the type of an existing POU

    I have programmed a SFC as an FB (in order to have it persistent), but now it's getting quite big and I have to change the code from FB to PRG.

    Is there anyway to export the code from my FB module to a PRG ? (it is very simple with a text FB just copy and paste in a PRG), but I don't know how to do it with a SFC POU.

    thank you very much

    Jacques

     
  • shooter - 2012-12-08

    yes you can copy paste your SFC, select all you want except the init, and the jump
    with shift.
    watch the inputs and outputs as this is impossible in a program, and other vars and actions.
    however better is to have subfunction blocks when it grows too big, just have another SFC called by your first SFC.

     
  • Easytherm - 2012-12-14

    Thank you very much shooter, your suggestion saves me a lot of time

    merry christmas to you!

     

Log in to post a comment.