How to establish communication between Siemens S7 200 with serial printer?

Siemens S7 200 Plc communication with printer.Which type of protocol can be used for the communication of S7 200 programmable logic controller with serial printer?

If you have the S7224 or 226 series you can use one port for programming and the other for serial data transmission. If you have the single DB9 connector, you will have to use a digital input or some mechanism to release the port from PG to serial port. I have used these ports to communicate both RS232 to printers and also RS485 ModBus. Set up some registers to predefine control strings etc.