Retrieving robot position via Secondary Interface

In one of my installation nodes, I want the user to be able to save the robot’s current position. I can connect via secondary interface and conceivably parse the data stream and extract the position that way. This isn’t trivial, so has anybody written any code to do this?

Or is there an easier way to accomplish the same thing?

I think you want to look at this example but it uses the realtime client though:

Ah brilliant. Thank you for the link!