In Simulation Mode, logic is not executing

svn123
2023-12-25
2023-12-25
  • svn123 - 2023-12-25

    Please check the attached snapshot.
    I am converting an int to real and storing in rVlv01_SV and then scaling the value using LIN_TRAFO.
    In the bottom Status Bar of Codesys, both RUN and SIMULATION are visible. When I enter value 100 as input to INT_TO_REAL instruction and press Ctrl-F7, the value can be seen at the input but the logic seems not to work.
    I searched for help but could not find anything relevant. What could be the reason. Codesys ver3.5.11

    svn

     
  • svn123 - 2023-12-25

    I stopped the simulation and tried to rebuild. "Cloned Task0.task0. Priority already in use" error was shown after rebuilding. I used Build-Clean All option and rebuilt again. Now the logic started working.
    But I am not still sure what caused the error in first place. If somebody knows about this error, please enlighten me.

    Thanks
    svn

     

Log in to post a comment.