Skip to content

Java lib. for Ethernet/IP (AllenBradley ControlLogix, Compact Logix PLCs)

License

Notifications You must be signed in to change notification settings

ornl-epics/etherip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Etherip

A Java library for reading and writing tags on AllenBradley Control Logix or Compact Logix PLCs via the Ethernet/IP protocol (aka DeviceNet-over-Ethernet or CIP-over-Ethernet).

This is a Java implementation of the same protocol that https://github.com/epics-modules/ether_ip provides in C. Like the C implementation, the Java code is based on

What this means:

  • The code can read and write tags from AllenBradley Control Logix PLCs. Works with older versions that had separate controller and ENET module as well as L8x series that combines ENET module with controller.

  • There is generic EtherNet/IP code for reading attributes of control net objects. You might be able to use that to access information on other types of EtherNet/IP devices, but as in the Control Logix example you might need details about additional, vendor-specific CIP service codes to get at the useful data.

See also the ICALEPCS 2001 paper "Interfacing the ControlLogix PLC over Ethernet/IP", https://accelconf.web.cern.ch/ica01/papers/THDT002.pdf

The C implementation provides EPICS device support for IOCs on top of the basic protocol library. This Java implementation is currently only the basic read/write library with unit tests to demonstrate the functionality.

For basic read/write, see test/etherip/EtherIPDemo.java or Main.java (called by etherip script) for a simple command line tool.

For a 'scan list' that reads tags all the time, but also allows writing them, see test/etherip/scan/ScanListTest.java

Building

Build with maven:

mvn  -DskipTests=true clean package

Develop in Eclipse via File, Import, Maven, Existing Maven Projects.

About

Java lib. for Ethernet/IP (AllenBradley ControlLogix, Compact Logix PLCs)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5