Is it possible to use debug functions such as Step Execution while the PLC ladder is in Running?

imuser
2024-01-16
2024-01-16
  • imuser - 2024-01-16

    Hello, I am a student learning CODSIS.
    Lately, I've been curious about something. During the actual PLC run, that is,
    Assume that the I/O is connected to a physical device and the analog value is updated in real time.

    1. Is it possible to use a feature like Codesys’ Debug-Step Over-Step IN? If possible..... How do I process the values of analog values (pressure sensor, temperature, current, etc.) that are being updated in real time?

    2. To step over, the ladder must stop at the breakpoint. If that happens, the PLC will actually stop, right??

     
  • TimvH

    TimvH - 2024-01-16

    Yes, it is possible to set breakpoints and use step into / step over (also in Ladder diagram).
    Yes, the PLC will actually stop, so be carefull with this.

    How a PLC works is that at the start of the execution of the Task, the Inputs are read, then the code is being executed and then the outputs are written. So if you set a breakpoint, you will not see your analog inputs changing, because the task cycle is interrupted and the inputs and outputs are not refreshed.

    For detailed information, see:
    https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_using_breakpoints.html

     

Log in to post a comment.