RobotStudio event

Using Mechanical Axis Rotation Data in Cross Connection

I am wondering if anyone has or knows how to get the mechanical axis rotation angle and use it in a cross connection.  I would like to somehow fire an output if the station is in a specific position.