In this paper we give a characterization of hexagonal systems, which enables us to construct an algorithm for generating all nonisomorphic hexagonal systems with given perimeters.