Teach and store time needed from open to closed and closed to open position