ottowayi / pycomm3

A Python Ethernet/IP library for communicating with Allen-Bradley PLCs.
MIT License
377 stars 88 forks source link

Q: What is the 'status' field in `get_plc_info`? #301

Open dakotahorstman opened 10 months ago

dakotahorstman commented 10 months ago

I'm using a Micro820 and retrieving the PLC's info for a heartbeat monitoring system. In the 'info' property, there is a 'status' field that isn't documented. What does this field reflect?

Colt-H commented 2 months ago

It's defined by CIP Volume 1 CH 5-2 under the identity object. I'm not sure about the copyright of posting from the exact CIP spec, but the short of it is basic device statuses such as minor/major faults, self testing, FW update in progress, IO connection status, etc.

dakotahorstman commented 2 months ago

Ah, got it. Do you happen to have a link to the specific document you're referencing, even if it is paywalled?

Colt-H commented 2 months ago

The document I have is the CIP specification from ODVA.

The CIP Networks Library Volume 1: Common Industrial Protocol