Hi,
I cut and pasted the script into a file. I edited some values for inch system and hard coded the plate thickness. Here's the code.

PlateThickness = .063 'Z-plate thickness
...
Code "G31Z-.25 F10" 'probing move, can set the feed rate here as well as how far to move
...


In Mach3, I selected Probe input to pin 15, and active low. In the BOB, I connected pin15 to +5v and to the external lead to the plate.

Back in Mach3, I selected the pull-down "operator>VB Script Editor". I found the script file and run it from there.

Problem is that the script makes Mach3 hang indefinately. I hope I gave you enough info to help me trouble shoot the hanging program. What am I doing wrong?