Dishwasher for dairy and meat

Hello Rabbi
I have one dishwasher can I use it for dairy dishes and then another cycle for meat dishes or does it have to be use only for either one?
Thank you!