Hi Warren,
One solution would be to make the two parts of the piston point to each other using the 'target" tag. It is important to use propper placement of pivot points (see image).
(others may know better solutions)
I hope things are clear, if not, just let me know...
Kind regards,
Filip