A new method is elaborated for calculating Shockley-type surface states; this method is analogous to a certain modification of the OPW method, using a repulsive potential. The symmetry of the wave functions of surface states is discussed in this connection. Some concrete conclusions reached by this method are illustrated on the example of the energy spectrum of crystals having a diamond lattice.