It might be either the cable is/is-not a null modem cable, and you have to check the Baud, parity, stop bits, # of bits, etc for them to communicate with each other.
Any serial printer will use the same ASCII protocol but may have widely different comm's settings. And since there is no modem between the HMI and the printer it may need a null modem cable but some of the newer ones know of this and need a straight through cable.