You have to code the pass you took from the guard to #2.

Enter code 2:
Change the pattern at top right to pattern 2.
Click the center of hexagons A, B, C, D to get red hexagons.
Click #7 arrow, #2 arrow, inside B, #2, inside B and inside C.
See the flashing OK. Automatically be pulled back with the coded magnetic pass.