Cylinder A has an 6 inch stroke and the position sensor is inside the cylinder.
Cylinder B has an 8 inch stroke and the position sensor is attached to Plate A.
Plate B can be up to 2 inches above plate A. If cylinder B is holding position and cylinder A moves then cylinder B should move maintaining the distance from plate A to plate B.
Whats wrong with this setup?