The blue/black wire goes from the ignition switch to the ECU. I assume it tells the ECU the switch is on and to fire the coils and injectors.
You need to get a service manual with a wiring diagram.
A forum community dedicated to Yamaha R6 motorcycle owners and enthusiasts. Come join the discussion about performance, modifications, troubleshooting, maintenance, and more!