The cantillation marks are divided into two groups: disjunctive (separating) and conjunctive (connecting). They serve three functions: musical, syntactical, and phonetical. The Poetical Books (Psalms, Job, and Proverbs) have a different system of cantillation marks than the Prose Books or 21 Books.
Read more here:
The Decalogue: The Cantillation on the Ten Commandments