Bryan Goh Posted June 11 Report Posted June 11 I am trying to read the variables using python library pycomm3 using the cip driver and was wondering what is the service id, class id, etc to pull the whole tag list from the plc.
Mark- Posted June 11 Report Posted June 11 17 minutes ago, Crossbow said: Not aware that is even possible It is and it is not trivial. I added it to PeakHMI awhile back. I wrote a bare bones program to fetch "All" while I was testing, and I thought I posted it here. It was named LogixTagRead.exe. I know later I made some changes in PeakHMI for better collection and possibly fix an issue, and never updated the test program, was not using it any longer. Let me know if not here and someone wants it. I found it is still on our website. The link to the program is: http://www.hmisys.com/downloads/LogixTagRead.zip No, installer. Copy the files to a directory, set properties and select the “Fetch” button. And "awhile back" was 2017. HA. I know I made changes a couple of years ago for much faster fetching in the HMI.
IO_Rack Posted June 11 Report Posted June 11 https://assets.omron.eu/downloads/latest/manual/en/w465_cs_cj-series_ethernet_ip_units_operation_manual_en.pdf Assuming you are using a CS/CJ Series EIP module or a CJ2 built-in Ethernet port, there is a list of Object Services in the manual, section 9-2-1. 1
Mark- Posted June 11 Report Posted June 11 1 hour ago, IO_Rack said: Assuming you are using a CS/CJ Series EIP module or a CJ2 built-in Ethernet port, there is a list of Object Services in the manual, section 9-2-1. A quick look, at the section, it does not appear the PLC supports fetching tag names.
Mark- Posted June 11 Report Posted June 11 The pycomm3 website has this: My reading is the CIPDriver does not support fetching tag names. So for the OP, Crossbow was correct. You could always try the LogixDriver. Perhaps the PLC does support it, just not documented.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now