Annex E — Ports & Logistics

Sector annex to Morocco UNS Standard v0.1. Covers Moroccan port and inland-logistics operations: gate, yard, quay, reefer, customs, rail/road interchange. Strategic anchor: Tanger Med is Africa’s leading container port (top-5 globally on container performance) and the operational benchmark for the continent. Casablanca, Jorf Lasfar, Safi, Agadir, Nador West Med complete the network.


E.1 Scope

Covers terminal operations at maritime ports and connected inland logistics zones. Excludes vessel-side operations and customs policy; includes customs signals exchanged at the terminal.


E.2 Enterprise & Site archetypes

E.2.1 Enterprises

Enterprise segmentNotes
tanger-medTanger Med Port Authority
apm-terminalsAPM Terminals MedPort Tangier (TC1, TC4)
eurogate / marsa-marocContainer terminals
marsa-marocCasablanca, Mohammedia, Agadir, Jorf, Safi
somaportCasablanca
nador-west-medNador West Med (under construction)

For inland dry ports and 3PL: use the operating company slug.

E.2.2 Sites

Site segmentRegionNotes
tanger-med-portma-01Main port complex (TM1, TM2)
tanger-med-passengerma-01TMSA passenger port
casablanca-portma-06
jorf-lasfar-portma-06OCP-adjacent; coordinate with Annex A — Phosphate & Mining for OCP-loaded vessels
safi-portma-07OCP + general cargo
agadir-portma-09
nador-portma-02Existing
nador-west-medma-02Greenfield
laayoune-portma-11Phosphate, fisheries
dakhla-portma-12New deep-water port

E.3 Area inventory

Area segmentDescription
gateTruck gate, OCR portal, weigh-in-motion
yardContainer stack yard
yard-reeferRefrigerated container plug area
quay-<n>Quay/berth (numbered)
railOn-dock rail terminal
customsScanner, x-ray, declaration touchpoint
tosTerminal Operating System interface (virtual area for TOS-derived signals)
vtsVessel Traffic Service interface
power-substationShore-side substation, including cold-ironing where deployed

E.4 Equipment archetypes

Equipment segmentExamplesCommon signals
sts-crane-<n>sts-crane-04twin-lift-count, single-lift-count, energy-kwh, state, cycle-time-s
rtg-<n>rtg-12container-moves-count, energy-kwh, state
rmg-<n>rmg-03container-moves-count, state
reach-stacker-<n>reach-stacker-rs07container-moves-count, fuel-flow-lh, state
terminal-tractor-<n>tt-22route-id, fuel-flow-lh, state
agv-<n>agv-12battery-pct, state
gate-lane-<n>gate-lane-04truck-count, ocr-read-count, dwell-time-s
weigh-bridge-<n>weigh-bridge-01weight-t, vehicle-id
scanner-<n>scanner-x01scan-count, anomaly-count
reefer-plug-<n>reefer-plug-r247container-id, set-temperature-c, actual-temperature-c, energy-kwh, alarm-state
shore-power-<n>shore-power-sp01export-kw, vessel-imo

E.5 Mandatory signals

Per Site, the terminal operating system MUST publish (via a virtual tos/site-summary Equipment if no PLC owns these):

  • vessel-arrival-count, vessel-departure-count
  • containers-loaded-count, containers-discharged-count
  • gate-truck-count (in / out)
  • dwell-time-h-p50, dwell-time-h-p95
  • crane-productivity-moves-h

Reefer area MUST publish per-plug temperature alignment to the booking set-point with cndp_class: none but the booking ID MAY be personal if it carries shipper PII.


E.6 Code alignments

Where a value is defined in an external code system, the standard requires alignment, not invention:

FieldExternal code system
Vessel IDIMO number (string, 7 digits)
Vessel destinationISO 3166-1 alpha-2
Container IDISO 6346 (BIC code)
Cargo typeUN/EDIFACT 7085
Hazardous classIMDG class
Customs declarationMoroccan ADII reference

This makes the UNS interoperable with the Port Community System (PortNet) without translation.


E.7 CBAM exposure

For phosphate, fertilizer, and (future) cement/steel/aluminum exports, the port-loading signals are the apportionment hinge for CBAM declarations. Specifically:

  • containers-loaded-count and bulk total-loaded-t per vessel
  • vessel-destination-iso2 (only EU destinations are CBAM-relevant)
  • Time-correlation back to upstream production signals via batch-id

The port is therefore not just a logistics consumer of upstream UNS data; it is the closing boundary of the CBAM perimeter. Annex E flags all port-loading signals as cbam_relevant: true when the upstream Enterprise is itself CBAM-exposed.


E.8 Worked path examples

ma/ma-01/apm-terminals/tanger-med-port/quay-3/sts-crane-04/twin-lift-count
ma/ma-01/apm-terminals/tanger-med-port/yard-reefer/reefer-plug-r247/actual-temperature-c
ma/ma-06/marsa-maroc/casablanca-port/gate/gate-lane-04/dwell-time-s
ma/ma-06/marsa-maroc/jorf-lasfar-port/quay-2/sts-crane-01/total-loaded-t
ma/ma-01/tanger-med/tanger-med-port/tos/site-summary/crane-productivity-moves-h

E.9 Strategic notes

  • Tanger Med’s existing TOS (Navis N4) and PCS (PortNet) already centralize most of these signals; the UNS layer makes them broker-published and interoperable with upstream enterprise UNS deployments. This is the architectural argument for a port-side adoption pilot.
  • For CBAM, the port is the ledger boundary. An OCP–Tanger Med joint UNS deployment closes the loop from phosphate extraction to EU-bound vessel.
  • Cold-ironing (shore power) signals are the highest-leverage sustainability addition; each MW of shore power displaces ~50 kg/h of vessel diesel emissions in port.