RobotStudio event

How to control solenoid valve with IRC5(ABB IRB 120)

Hello,
I have a question about how to control solenoid valve through the controller IRC5(https://abbcloud.blob.core.windows.net/public/images/1a88cd69-a3d8-4ada-a7c9-16f54234ec57/presentation.jpg). So, solenoid valve is powered by external 24 V power supply(I don't know how to use internal, from the ABB controller box) and is connected to the compressor and air input in the robot. Controller of mine ABB looks like this:
https://us.v-cdn.net/5020483/uploads/webwiz/450/Original.jpg
And photos of solenoid valve connected to the robot, power supply:
20160707_132403163_iOS.jpg
20160707_131216307_iOS.jpg
So my question is: how can I control this solenoid valve ? I have XS7 I/O cable(20160707_132425614_iOS.jpg), i guess this is the way but I'm freshman in robotics and I need help.
I can answer all of your questions if informations which I gave are insufficient. 

Sorry for my bad English. 
Regards, Paul.