Blocco PLC su lettura encoder in task Fast