This is actually more involved than just giving a sample macro. Many things will come into play such as Probe type, usage or trigger type (how it's powered), machine type, machine control type, mapping method, variable or data storage method available for mapping and calcs, output string and type, etc, etc.
The question would be, what are you measuring for? Control points for nurb output? pointcloud? other types of spline definition? linear plotting or true surface plotting?
What you're asking is very open ended. What I would suggest is to contact the factory for the probing system you are using. They often will have macros you may be able to use based on your machine and configuration or will write one for you (with some pay of course). There are also many after-market companies that write these types and other macros for specific configurations.
If what you're doing is much simpler than that and all you're looking to do is to gather point data, then just do so based on the macros you have (which should be sufficient based on that scenario). You can simply the data collection by using DPRINT or similar commands to output the collected data.... or write it all to a bunch of machine variables to be gathered after the fact.