Maybe you need to set the acceleration that is going to integrated to 0 wenn the limits of the cylinder are reached. U can put out the saturation channel of Int2 (normally outputs 0, when limits reached outputs 1) and let it be input to a switch which the outputs 0 (for the first int. input)...