RobotStudio event

Kinematics Servo X-Gun

Hello Forum,
I would like to kinematics a Servo X-Gun for a robot 7. axis.
How do I proceed here ? I also need an adjustment between the axis value and the opening value of the gun.
Optimal would be an example.
Thanks for your help

Michael