Yes now analysing the code it does appear to refer to the different cordinate systems, but that is what parameter #16 (#516) shows, not sure why in two places or if different.
Maybe cnc takes the 516 parameter as the INITIAL value of setting # 16 inside ENG file .. And not the current coordinate system modified in gcode, but i do not know exactly