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.
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?
To step over, the ladder must stop at the breakpoint. If that happens, the PLC will actually stop, right??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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?
To step over, the ladder must stop at the breakpoint. If that happens, the PLC will actually stop, right??
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