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

Fb_exit debug

2017-01-16
2017-03-03
  • josepmariarams - 2017-01-16

    Dears.

    I need to debug some lines on a Fb_exit method.

    Breakpoints seems that doesnt works.

    Do you know if It is possible to launch logs from this method (something similar to printk)

     
  • rickj - 2017-01-16

    Use a global string array and index to implement your own message queue. You can display it on a visualization using a table widget.

     
  • josepmariarams - 2017-01-16

    Thanks.

    But i need it to use on Fb exit, which is called ending execution when tasks are stopped.

     
  • rickj - 2017-01-17

    Data is still retained in memory is it not? If debug strings are written to array elements prior to and during FB_exit() wouldn't they still be there for examination?

     
  • Joan M - 2017-01-24

    Oh, and another option (specifically for Beckhoff) https://infosys.beckhoff.com/content/1033/tcplclibsystem/html/tcplclibsys_adslogdint.htm?id=4109655218661787585

    It could help a lot in the kind of situation you propose...

    You can always ask the manufacturer of your software if this is implemented there if the message pragmas are not.

    Message pragmas work in all Codesys versions, but I have not found a way to show values other than predefined strings which is better than nothing.

     
  • josepmariarams - 2017-01-25

    Thanks Joan.

    I will test the pragmas.

     
  • josepmariarams - 2017-03-03

    At the end I have used this functions:

    IMG: Captura de 2017

     
  • Joan M - 2017-03-03

    Looks good Josep, along the lines of the ADSLOG Beckhoff specific functions. Nice.

    Thank you for sharing!

     

Log in to post a comment.