CNC Automated Edge Finding/Zeroing touch plate

Has anyone tried this with a RAMPS?
If so, what do I need to do?
Will it work with Repetier or do I have to use Estlcam?

Like this:

I’m guessing treating the plate like a mechanical end stop using “S” and “-” lines might work. Would you not have to use the plate to signal all three of X,Y, and Z though? Then you need to factor in the offset of the plate to set the machine to zero on the actual cutting stock correct?

Anyone try this with RAMPS ?