There certainly are. The machine measures electrical impedence to calculate fat, so the body's water content really throws it off and must be standardised.
An example of such guidelines (not sure how much it varies between manufacturers, but if they have one specifically, follow that):
no food or drink within 4 hours of test,
no urinating within 30 minutes of test,
no exercise within 12 hours of test