The value on the screen turns red if used outside of the maximum defined value in Marlin. The logging however does nog show an error in either cases and the motors will not move.
Tried with different max values and both on reptier firmware for the printer and marlin firmware
13:05:47.209 : N12 G28 X0104 ; G28 manual Home X
13:05:47.834 : ok
13:05:49.162 : N13 G28 Y0104 ; G28 manual Home Y
13:05:49.771 : ok
13:05:54.099 : N14 G2838 ; G28 manual Home
13:05:59.271 : ok
13:54:11.700 : N23 G0 X1097 ; manual is inside max; turns red on the screen if X is outside of X_MAX_POS; no errors in log, no movement
13:54:11.700 : ok
13:54:25.825 : N24 G1 Y20*101 ; manual is inside max; turns red on the screen if Y is outside of Y_MAX_POS; no errors in log, no movement
13:54:25.825 : ok
Marlin
#define X_MAX_POS 100
#define X_MIN_POS 0
#define Y_MAX_POS 100
#define Y_MIN_POS 0
#define Z_MAX_POS 20
#define Z_MIN_POS 0