I'm "thinking" that you're looking for an off-the-shelf solution, and there are such things readily available. For example.
https://www.amazon.com/uniquegoods-W...gateway&sr=8-1
All you need are two limit switches. The instruction manual (linked at the bottom of the page on Amazon) shows how to attach two NPN proximity switches (
https://www.amazon.com/Twidec-Induct...s%2C204&sr=8-7 and from the photo that you provided in post 12, I'd simply drill two holes in the side-wall an inch or so above the moving sled, one at each end of travel, and fit the proximity sensors there; Add a short piece of angle steel attached to the bolts on the linear blocks (you show 8 bolts in the image) to project up to provide a moving vane to actuate the proximity sensors when the sled is in the two end positions.
Job done.