How to Send Data from Siemens PLC to Zebra Printer using TCP - Benefits and Guidance Needed

Question:

I own a Siemens 315 PLC and need to send data to a Zebra 105SL Plus barcode printer. I have the option to connect with either serial or Ethernet TCP. While I initially considered getting a serial interface card, I am now contemplating the benefits of using TCP instead. This would eliminate the need for a serial card and cable. However, I am unfamiliar with TCP and would appreciate any guidance from those who have experience in this area. Any advice would be greatly appreciated.

Top Replies

I have successfully established a TCP connection using Siemens' available function blocks. These function blocks, such as TCON, TSND, TRCV, and TDSCON, can help facilitate connecting, sending, receiving, and disconnecting data over a TCP connection.

Are you currently utilizing a CP343 Ethernet module or a 315 PN/DP communication processor? Which one is more suitable for your industrial networking needs?

I am using the CP343 specifically for the customer network.

For more information on Siemens blocks, check out this link: http://support.automation.siemens.c...objaction=csview&extranet=standard&viewreg=WW

Thank you, KJ. I will explore this option to determine the possibilities and challenges it presents. I will share any progress or setbacks with updates.

If you're not too familiar with TCP, it may seem a bit intimidating at first, but it's quite a robust method for data transmission once you get the hang of it. It provides reliable, ordered, and error-checked delivery of a stream of bytes. Moreover, using Ethernet TCP would give you the flexibility of remote data transmission, which isn't typically possible using serial. This could be particularly useful if your PLC and printer aren't in close physical proximity. You might face some latency issues compared to serial, but they're usually minimal. Siemens also provides quite comprehensive guides on setting up TCP communications with their PLCs which should make your job easier. Give it a go and I'm sure you'll find it worth your while.

From my experience, using Ethernet TCP would definitely be the more versatile and modern choice. If your Siemens 315 PLC has an available Ethernet port, this could save you from buying additional hardware like the serial interface card. Moreover, TCP/IP communication is generally more robust and faster, and it allows for remote data access if you ever needed to monitor or troubleshoot the printer from a different location. Learning to use it might require a small time investment upfront, particularly if you're unfamiliar with it, but there are plenty of online resources and tutorials that can guide you. Granted, every situation is unique and serial might be perfectly fine for your needs, but overall, I would lean more towards Ethernet TCP in this scenario.

I'd definitely recommend going with the Ethernet TCP option. In my experience, it offers greater flexibility, as it allows multiple devices to connect without needing specific interface cards for each one. Plus, TCP-based communication tends to be more robust and reliable over longer distances compared to serial. It certainly might feel a bit daunting if you're unfamiliar, but once you get the hang of it, it could greatly simplify your setup. There's an abundance of informative guides and tutorials online to help you understand the basics of TCP/IP networking. Don't let unfamiliarity deter you from making a beneficial choice!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. What are the benefits of using TCP for sending data from a Siemens PLC to a Zebra printer? - Using TCP eliminates the need for a serial interface card and cable, simplifying the setup and potentially reducing costs. 2. How can I send data from a Siemens PLC to a Zebra printer using TCP? - To send data using TCP, you would need to establish a TCP/IP connection between the PLC and the printer, configure the network settings accordingly, and ensure proper communication protocols are followed.

FAQ: 3. What guidance can be provided for someone unfamiliar with TCP but looking to implement it for their setup?

Answer: - It is recommended to seek advice from individuals with experience in TCP communication or refer to documentation and tutorials that explain TCP setup and usage in industrial automation applications.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’