How to use logic gates in Easergy Pro for P3 relays