04-10-2019 08:37 AM
Hello,
I have recently acquired the Ethernet/IP toolkit for LabVIEW 2018, and I am in the process of developing a PC based HMI. I come from the product development world, so this is my first time working with PLCs since college. I have an AB CompactLogix L24ER, with a test program loaded onto it by a Manufacturing Engineer. According to RSLogix, the controller name is HMI_TEST, the task is MainTask, and the program is called MainProgram.
I have the correct network address (10.244.244.91,1,0) in the Write And Read Tag.vi, but I am getting a CIP Error:
Extended status may be available CIP Status: 0x4 (Invalid segment type/IOI)
From what I understand, this is an error from the controller, typically returned when the PLC can't find the tag name. Examples of my tag names include:
Is there a specific syntax I need to add to the tag names to point the controller to program tags? In the extended help for the VIs, it breaks down the formatting for reading sub-elements, but I don't think that is helpful here.
04-10-2019 10:30 AM
I figured it out, but I would like to leave this here for any other newbies.
According to this document: https://logic-control.com/media/vendors/allen-Bradley-Controllogix-Ethernet-Manual.pdf
the syntax goes like:
Program: <program name>.<tag name>
So for my Counter_Sum tag in MainProgram
Program:MainProgram.Counter_Sum