Removed the variables Xout, Yout, Zout and replaced them with the X,Y,Z which had already been configured as outputs. This allowed the outputs to be read. The truth table now matches the simulated results