In what type of PLC? Typically a normal input is slower, typically requiring 10ms or so to change state. A High speed input, which could be used for input pulses from a rotary encoder, can be up to 200,000 cycles per second depending on the manufacturer and PLC type.