I'm trying to understand what the ideal sampling time for an input change represented in the form of a timing diagram should look like, for a PLC.
I understand the relationship between the sampling rate and input change to an extent. The sampling rate must be faster (at a higher frequency) than the rate of the input changes.
If I consider an example of an input that stays on for 25ms then switches off (when the input changes to a high), what is the ideal sampling rate to always measure this change and why?