The Cancel function can be used to cancel an action or to exit a certain screen, such as the receipt archive or the total screen.  Usually, the POS will provide the cashier with a Cancel button as a default setting but you can still use this function to set up workflows.