Scanning new motors with higher voltage

When scanning a low-voltage motor like the XL-330, do I need to also connect it to a 5V power source, or can I use a higher voltage 12V power source just for the purposes of setting its ID (and not actually running the motor)?

Sorry if this is a dumb question, thanks.

The XL-330 is rated for 5V for any purpose. Using 12V on them would most likely void their warranty.