Means for controlling the clamping or opening of the moulds