Raw TCP/IP and Serial port Communication

Ya-hoo

Member
Join Date
Jan 2015
Location
Calgary
Posts
7
Hello All,

I am a newbie of PLC and Red Lion.
I am working on a project which has RedLion HMI which receives data through TCP/IP from a un-supported device and sends data to another un-supported device through serial port.

In this case, how do I use tags to pass data? Can RedLion establish connection automatically?

Any sample code that I can start from?

Any kind help would be greatly appreciated.
 
What protocol are the devices speaking, Modbus?
Red Lion will not set connections automatically- you will need to assign IP address and node #1, baud,etc on serial end.

You can use gateway blocks in the Crimson communication tab to send data to the other network.

A bit more information may get you some more replies.
 
Thanks buffalo for your reply.
The RedLion HMI receives data through TCP/IP and sends out same data through serial port.
Do you mean I will need to make custom code to establish TCP connection? RedLion HMI will be a listener.

Thanks,
 
Raw TCP/IP is called a raw port or just socket connection. I'm not sure how Red Lion handles it. You simply set a port to listen and on the other device create a socket connection. Then there should be functions to transmit and receive on both ends. The trickiest part with socket communication is keep the connection alive when you aren't actively using it.

For serial, the biggest thing is to make sure the baud rates, parity, etc match, then if one side sends the other receives the raw bytes automatically. Again, don't know the details on how Red Lion or your other device handles send receive.
 
Thanks buffalo for your reply.
The RedLion HMI receives data through TCP/IP and sends out same data through serial port.
Do you mean I will need to make custom code to establish TCP connection? RedLion HMI will be a listener.

Thanks,

I am not sure how it handles raw tcp/ip and transfers to serial. In my experience It has been Modbus TCP, BacNet IP, etc.
 

Similar Topics

Hi, I have a Siemens PLC which is connected to a Siemens RMC30, they were functioning fine communicating via Modbus TCP/IP but have now stopped...
Replies
4
Views
1,794
Dear, My problem is how to read special variables (pressure, temperature, ...) from tcp raw data stream generated each 100 milliseconds and use...
Replies
0
Views
2,489
Dear, I have a webserver 192.168.0.5:111, where it have data. How can I read those data on S7-1200?
Replies
0
Views
1,967
Anyone have any experience in connecting RL G3 or CSMSTRLE in order to access, on a raw TCP/IP level, internal words comming from a PLC? I...
Replies
2
Views
5,409
What is the raw count of Allen Bradley Flex Analog Output Module 5094-OF8 raw count?
Replies
1
Views
110
Back
Top Bottom