A robot in a robot cell always picks up the top sheet from a magazine for further processing. Thanks to the OGL angled light barrier with high switching precision and reproducibility down to 0.03 mm, the next sheet is repositioned. During this, the OGL also checks the removal of the sheet and switches off accordingly. Configuration and diagnostics are carried out via IO-Link. Thus, no access to the dangerous area of the robot cell is necessary.