See https://forum.duet3d.com/topic/38754/rotational-a-axis-affected-by-g20-g21. Currently, when G20 is in effect all distance units get converted from inches to mm even when they refer to rotational axes.