Direct answer: An exit loop opens the gate when a vehicle approaches from inside. A reverse loop helps keep a closing gate from closing on a vehicle. A shadow, or phantom, loop watches the gate path while the gate is open.
The exact input behavior comes from the control board, so wire each loop to the correct input.