TCP / IP & Profinet
Welcome to the TCP/IP & PROFINET section of our blog. Here, we dive into two of the most fundamental and widely used communication protocols in the world of industrial automation.
TCP/IP forms the backbone of modern networking — from office systems to industrial environments — enabling structured, reliable, and scalable data exchange. It’s the foundation upon which most contemporary communication networks are built.
PROFINET, on the other hand, is a specialized industrial Ethernet protocol designed for real-time communication, flexibility, and high reliability in controlling machines, sensors, and complex automation systems.
Through in-depth articles, practical examples, and real-world use cases, we explore how these two protocols compare, cooperate, and power today’s industrial communication networks.
Serial Communication
Serial communication is one of the most established and reliable methods for data exchange between electronic devices. Unlike parallel communication, which transmits multiple bits simultaneously, serial communication sends data bit by bit over a single wire or wire pair — making it a simpler and more cost-effective choice, especially for long-distance or electrically noisy environments.
These protocols are typically asynchronous, meaning the devices involved must agree on communication parameters such as baud rate, parity, data bits, and stop bits — but they do not share a common clock. This makes serial communication highly flexible and well-suited for point-to-point data transfer.
In this section, we explore the most common serial protocols used in industrial and embedded systems — such as RS-232, RS-485 and RS-422— their characteristics, advantages, and where they still shine in today’s automation landscape.
Carriage Return” + “Line Feed (CR + LF)
In the context of serial communication, CRLF (“Carriage Return” + “Line Feed”) refers to using both the \r (CR) and \n (LF) characters to signal the end of a line or command, which is a common practice on Windows systems and some serial devices to ensure a complete line break. The CR moves the cursor to the beginning of the line, and the LF moves it down to the next line, effectively resetting the “printer” to the start of a new line for display or processing in a serial terminal.
How CRLF works in serial communication
Mechanical origin
The concept comes from typewriters, where a “carriage return” lever moved the carriage back to the left margin, and a “line feed” advanced the paper down by one line.
\r (Carriage Return)
This character (ASCII 13) moves the cursor or print head to the beginning of the current line.
\n (Line Feed)
This character moves the cursor or print head down to the next line without returning to the start of the line.
- \r\n (CRLF) -ASCII
- 0D 0A (CRLF) – HEX
Together, they ensure that the next line begins at the far left of the display, which is the standard for Windows and many devices communicating over serial ports.
Why CRLF is important for serial communication
Terminal behavior
Serial terminal emulators often allow you to select the line ending mode you want to use. Selecting CRLF tells the terminal to interpret both characters as a line terminator, crucial for proper data formatting.
Data integrity
Without the correct line termination, data may be misinterpreted, truncated, or displayed incorrectly, leading to communication errors between the computer and the serial device.
Comparison Table
| Feature | RS-232 | RS-422 | RS-485 |
| Communication | Point-to-point | 1-to-many (uni-dir) | Multi-point (bi-dir) |
| Signaling | Single-ended | Differential | Differential |
| Max Distance | ~15 meters | ~1,200 meters | ~1,200 meters |
| Max Devices | 2 | 1 TX, 10 RX | 32+ (with repeaters) |
| Noise Immunity | Low | High | High |
| Typical Use | PC ↔ Device | Long-distance TX | Industrial networks |
Troubleshooting Tips
- No communication? Check baud rate, parity, stop bits — both sides must match.
- Noise/interference? Use twisted-pair shielded cables, especially for RS-485.
- Multiple device conflict (RS-485)? Ensure only one device is transmitting at a time in half-duplex setups.
- Missing termination? Add 120 Ω resistors at both ends of RS-485 bus.
- Wrong pinout? Verify TX and RX are correctly wired (especially in RS-232).
- Line idle/unstable? Add biasing resistors to stabilize RS-485 idle state.

Leave a Reply