They aren't really scheduling though. They can feel when their udders get full. It actually can be painful if you don't milk them on time. Its comparable to eating or drinking, they go eat when they feel hunger. It is pretty cool that they learn to associate the machine though, its not like it smells the way food does, or like there is any instinct involved.