CompactLogix: Implementing HTTP requests & XML Data Transfer via TCP/IP

guitarguybs07

Member
Join Date
Aug 2017
Location
Albany, NY
Posts
2
Hello, I have a project where I need to use a CLX to communicate with a 3rd party device that exchanges data via XML formatted commands and HTTP POST/GET requests. I've done quite a bit of searching around the web and haven't really found anyone else doing this exact type of method.

Here is an example of a messages I would need to send/receive:

2hpn52Ql.png


I know using SCADA or another intermediary device to handle the data exchange is probably the proper way to do it...but in the interest of figuring out all potential options would this also be possible with using the tcp/ip open sockets? Or is that asking for too much time and trouble lol Would using SCADA or other intermediary device to handle the data exchange be easier?

Thanks!
 
Last edited:
Welcome to the PLCTalk forum community !

This is an ideal application for some external helper software or device. We have a colleague on this forum who is one of the foremost A-B open sockets experts and I'm interested to learn if he's seen any users take HTTP traffic further than "well, probably".

If it were my system, I'd be buying a DIN-rail mounted Raspberry Pi compute module based device and doing the HTTP and XML parsing work there with the low-code Node-Red platform.

In fact, I bought one specifically for that sort of application, because it will be more reliable in the field than the handful of Raspberry Pi's littering my desk. It's a Kunbus Revolution Pi Connect, their lowest-end model. The 24V buffered power and long-life eMMC should make a huge difference in reliability compared to the hobbyist-grade devices.

In my opinion, learning Javascript and Node-Red from absolute scratch would be faster than figuring out how to do this with open sockets and ControlLogix string datatypes.
 
Last edited:
In my opinion, learning Javascript and Node-Red from absolute scratch would be faster than figuring out how to do this with open sockets and ControlLogix string datatypes.

Excellent! Thanks for that great jumping-off point. Yeah, the consensus from the people I've heard from around the web seems to be that trying to manage that type of data within the PLC itself is way to cumbersome.

I've been looking for an excuse to start learning PLC tools outside of the usual ladder/STX/SFC, etc...sounds like I found the perfect project to do it!
 

Similar Topics

Hi everyone, i have a compact logic 1769-L18 PLC and I'm using FTalk View ME for the display. I wanted to do some visualization on Grafana. At...
Replies
1
Views
96
Does anyone know what the data transfer rate for this series of CompactLogix PLC's? 1769-L24ER-QB1B to be exact. Cheers.
Replies
1
Views
98
Does this instruction calculate values during a single scan, or does it require number of scans based on element count in the array? For Example...
Replies
3
Views
116
Hello all, and thank you in advance for any assistance you may be able to provide! This is my first post, so if I need to reformat or change...
Replies
8
Views
483
We are trying to poll data coming from a PLC for remote monitoring we have the IP address of the PLC and the default port number and the path is...
Replies
25
Views
582
Back
Top Bottom