Difference between macroID and localID for components

From here I understand that the macro id is generated on the introduction of a macro to the page/blog and it persists across versions.

Can someone please explain me as to what is the local id for a particular macro ?