How to change Multiple variable values through Serial Monitor
You are setting the input string's base to 16 instead of 10 in your strtol conversions, which is why you are getting 1280 when you expect 500.