Communication protocol CR/LF

panthripu

Member
Join Date
Mar 2004
Posts
228
Hi
Can some one help me to understand CR/LF protocol. Is there any converter to convert modbus to CR/LF ?
Please help.
 
"CR/LF" stands for "Carriage Return / Line Feed".

These are functions from old-fashioned typewriters that were carried over into computers as part of the American Standard Code for Information Interchange (ASCII).

A "carriage return" means the return of the character position cursor to the left margin.

A "line feed" means the moving of the cursor one line down.

Both are typically used as the final characters in a single line of ASCII text.


There are two common variants of Modbus that can run on a serial communication link.

The most common one is called "Modbus RTU", and encodes its data in unprintable characters.

The less common one is called "Modbus ASCII", which encodes its data in printable characters. Modbus ASCII frames typically do end with a Carriage Return and a Line Feed.

So if your question is really "is there a device that can convert Modbus ASCII to Modbus RTU", the answer is "yes, many of them."
 
The less common one is called "Modbus ASCII", which encodes its data in printable characters.
Although the register values in a Modbus ASCII message are ASCII characters, each 16 bit register consists of four ASCII characters: 2 hexadecimal characters for each 8 bit byte. So a data value is 4 hex characters. A Modbus ASCII message might well be printable but it is not really readable.

L
 
At one time, printers used a form of a CR/LF protocol.

A printer protocol is data dump on a periodic basis, every time interval or on host demand/command .

The periodic basis time interval is not consistent with Modbus because Modbus is a master/slave protocol where the master requests data and the slave replies with the data. A device that spits out data on a periodic basis pays no attention to a Modbus master request.

Modbus was designed for dealing with quasi-realtime data, the most recent data value. Although there are a couple Modbus Function Codes that deal with transferring blocks of data, like a set of historical values, there are very few, if any, Modbus devices (Masters or slaves) that implement those Function Codes.

So the prospect of a Master requesting data from the past 5 minutes or past hour does not have a high probability of success.

I suspect that you need a custom algorithm to capture periodic bursts of data from whatever it is that is generating the data using a CR/LF protocol.
 

Similar Topics

Dear Experts , I have a system which contains 10 PLCs (1214C CPU) each PLC with GSM module (Teltonika RUT955) and 2 SCADA PCs at different...
Replies
2
Views
803
I have been asked to design a control system of which will have 24 winder stations. Each winder station will have its own control system of wich...
Replies
8
Views
1,933
Hello there, I am new to OMRON PLCs so need some help to communicate two PLC over FINS Protocol. Here are the description of the system...
Replies
0
Views
1,038
Dear All, I want to communicate with Arburg Selogica controller v3.09 of an old Arburg injection molding machine. The protocol by which this...
Replies
3
Views
2,611
Hi, I am working on the project that needs to communicate with FX1N PLC by serial port protocol from PC. I am using USB-SC09-FX cable to connect...
Replies
6
Views
2,698
Back
Top Bottom