In Marlin, what is the difference between M201 and M204? For example,

In Marlin, what is the difference between M201 and M204?

For example, if I set the following:
M201 X2000 Y2000 Z30 E10000
M204 S500.00 T3000.00

Is this essentially saying that the ‘default’ XY acceleration is 500mm/s^2 but that this default may be overridden and set as high as 2000mm/s^2? If this is the case, what gcode would the slicer generate to actually change the acceleration before/during a print?

Slic3r uses M204 S500, as an example, throughout the gcode of a print.