The cube will want to accelerate at g. It is stopped by the plate as long as the acceleration of the plate is < g, hence they act in union. When the plate accelerates at just greater than g, the cube will lose contact with the plate as the cube will move under gravity, but the plate is accelerating away. With SHM, this will first occur at a peak.