We have demonstrated a monolithically integrated optical phase lock loop based on a foundry fabricated photonic integrated circuit. The InP chip contains PIN photodiodes integrated with a 1.5 µm DBR laser which can be phase stabilised with respect to an external optical reference tone at all wavelengths throughout its 1 THz (8 nm) tuning range. The frequency offset between the two lasers can be set to any value between 4 GHz and 12 GHz. The phase noise of the heterodyne signal is also reported. Such an OPLL, together with an optical frequency comb and broad-bandwidth photodetector, could be used for high purity, tuneable mm-wave / THz signal generation.