Dear brother ConstantineTG,
The canonical definition of excommunication as the Catholic Church holds today rests only in the distinction between latae sententiae excommunication and ferendae sententiae excommunication. The penalites attached to these excommunications is a separate matter.
The spiritual meaning of excommunication, as you call it, is equivalent to latae sententiae excommunication.
The Church used to have 4 categories of excommunication:
(1) Minor Excommunication; (2) Major Excommunication; (3) Anathema; (4) Anathema Maranatha.
This distinction is no longer utilized. Today, “excommunication” is distinguished according to whether it is latae sententiae or ferendae sententiae, and, secondarily, according ot the penalties established by the competent ecclesiastical authority.
Blessings,
Marduk