Its traditionally most studied function is that to encode prosody of oral speech, i.e., the prosodic rhetorical function; see, e.g., (Kirchhoff and Primus, 2014) and the references therein.
the comma is assumed to possess a strong rhetorical function (Nunberg et al., 2002).