Author Topic: Using ethernetIPforCLX with AB tag database  (Read 1306 times)

GreatestUsernameEver

  • Newbie
  • *
  • Posts: 11
    • View Profile
Using ethernetIPforCLX with AB tag database
« on: July 17, 2020, 04:47:31 PM »
Ive been looking for the correct way to write a tag's value from an Allen Bradley Compact Logix to a component in VB. Currently I have been using the EthernetIPforCLX, inputting the IP address of the PLC, and using the Syntax (Program:MainProgram.TagName) in the place where I would typically put the modbus address of the tag. My issue is that when I run I get a PLC com error. Im not sure what my issue is, my only thought is that I would have to input the tag database but since I call the IP address of the PLC its seems redundant. Any help is appreciated.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Using ethernetIPforCLX with AB tag database
« Reply #1 on: July 17, 2020, 05:15:25 PM »
If you are getting a Com error, then it's not the tag name. That would be a connection problem with the PLC.

If you use a BasicLabel, what is the exact error message that show up?

GreatestUsernameEver

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Using ethernetIPforCLX with AB tag database
« Reply #2 on: July 20, 2020, 10:02:45 AM »
ERROR:= Address must be 4-11 digits Program:MainProgram.TagName

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Using ethernetIPforCLX with AB tag database
« Reply #3 on: July 21, 2020, 06:16:27 PM »
That is Modbus error and should indicate that you didn't replace the driver (ComComponent).
« Last Edit: July 21, 2020, 06:44:47 PM by Godra »