I'm fairly sure that this is what the code does. Here is the explanation of the code that is on the link posted.
<Snip> http://www.rentron.com/PicBasic/PBP1-wire.htm
This project shows how to identify each 1-wire device prior to inserting them into the 1-wire network. By identifying each component you'll know the unique 64-bit ROM code for each 1-wire device, and be able to talk to individual components on your 1-wire network as necessary. You can use the 1-wire command Search ROM [$F0], but this doesn't tell you where each device is physically located on the 1-wire network. It only identifies all components on the network
<snip>
Bookmarks