Ajay Garg

Newbie questions regarding reading data from 1766-L32BWA

3 posts in this topic

Hi All.

We have the Micrologix-1400 1766-L32BWA PLC, and we are in process of understanding how to read data from it using our custom, simple, external application in a high-level language (C in our case).

Following is what we have achieved so far :

  • Been able to connect the PLC with a laptop, and able to browse (via the PLC's embedded web-server) over PLC's-IP 192.168.1.102.
  • The PLC is pre-programmed, and have the (default) program-files and data-files (picture PLC-files.png attached).
  • Also, some data is shown (eg. N7-Data-File.png attached).

Also, we have following strict limitations :

  • Nothing is to be changed inside the PLC, so any (ladder-logic) programming inside the PLC is out of the question.
  • The only external interface available to us is the Ethernet (physical) interface. None of RS232, RS485 is available to us.

Now, for simplicity, let's say we want to read just the values in N7 data file (using our custom, simple, external application in a high-level language). Since 1766-L32BWA is a A-series PLC, so I guess Modbus-TCP is out of the question.

So, what would be the best way to read data from N7 data file via Ethernet (physical) interface. Ideally, we would want that our external application fires a command, and receives the appropriate response from the PLC. We have been reading that Ethernet/IP could be an option, but have been unable to find any concrete Request/Response example (of Ethernet/IP packet). 

 

I am sorry if I sound too noob.

Hoping to get some help from the experts ...

 

Thanks and Regards,

Ajay

PLC-Files.png

N7-Data-File.png

Share this post


Link to post
Share on other sites

You make two statements that contradict each other.  "Nothing is to be changed inside the PLC" and "external application fires a command".  Data collector instructs PLC to provide data means the PLC will need to see a command from the data collector, which will require a PLC tag and some logic.

Is the data collection to be time-driven (i.e., every X units of time, send Y blocks of data) or event-driven (i.e., datapoint Z has changed within a range, send Z datapoint).

Is handshaking required to insure the data was captured (i.e., are alarms needed to alert that data was not captured, that the system is not functioning)?

There are 3rd party tools for utilizing Ethernet/IP to obtain data from a Logix PLC.  RTA has a product for such.  https://www.rtaautomation.com/software-solutions/ethernetip-client-tagc

http://forums.mrplc.com/index.php?/topic/10088-control-logix-to-pc-via-ethernet/

1 person likes this

Share this post


Link to post
Share on other sites

You might want to look at AdvancedHMI to get information out of your PLC. This is a free software that can downloaded at the following URL:
https://sourceforge.net/projects/advancedhmi/

It already has the Allen Bradley Ethernet/IP Driver written for SLC,MicroLogix, PLC5, ControlLogix, and CompactLogix. AdvancedHMI was written in VB.Net and runs on Visual Studio. This means you can use your C programming within visual studio.

Here is some more information on AdvancedHMI and the AB Ethernet IP driver:
http://www.plctalk.net/qanda/showthread.php?t=51758

Hope this helps you out.
Regards,
Garry

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now