Coherent population trapping (CPT) resonance formation is modeled numerically in a three-level Λ-system with one of the near-resonance fields being frequency-modulated. The model is based on density matrix equations in RW approximation with atomic relaxation properly taken into account. Slow modulation is shown to be equivalent to CW excitation with the frequency changed point by point.