Author Topic: EthernetIPforCLXCom1  (Read 2978 times)

gbradley

  • Newbie
  • *
  • Posts: 10
    • View Profile
EthernetIPforCLXCom1
« on: September 27, 2013, 10:13:59 AM »
I was messing around with a Compactlogix processor, and I found that if I try to read a Program tag, I get an error.
Invalid Tag Address. CIP Status4

Controller tags work fine.
My solution is to Copy the Program tag array in the PLC over to a controller tag array.
I then referenced the controller tag because I know that works.

AdvancedHMIv35'

Is there something else that I could have done in order to read Program tags?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: EthernetIPforCLXCom1
« Reply #1 on: September 27, 2013, 11:26:28 AM »
To access program scope tags use the following format:

PROGRAM:ProgramName.TagName

gbradley

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: EthernetIPforCLXCom1
« Reply #2 on: September 27, 2013, 12:10:35 PM »
I tried MainProgram.MyArray[94], but no luck.
What would I use to read the value of 7812 (MyArray[94])?
maybe you can tell from the photo?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: EthernetIPforCLXCom1
« Reply #3 on: September 27, 2013, 12:24:03 PM »
Try it like this:

PROGRAM:MainProgram.MyArray[94]

gbradley

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: EthernetIPforCLXCom1
« Reply #4 on: September 27, 2013, 12:43:33 PM »
That did it
I think I had a space in there somewhere
Thanks a lot!