Author Topic: AvdHMI + AB micro820  (Read 3281 times)

Steven Hickey

  • Newbie
  • *
  • Posts: 2
    • View Profile
AvdHMI + AB micro820
« on: February 28, 2014, 01:02:06 PM »
I'd love to see AdvHMI working.
Set up a counter (Int) running on u820 (IP 192.168.10.99) and map this to 40100. Tried EthernetIPforCLXCom and ModbusTcpCom with IPAddress = 192.168.10.99, and DigitalPanelMeter with PLCAddressText =40100, PLCAddressValue =40100, PLCAddressVisible =40100.
Seems to be running but always 0 on DigitalPanelMeter.
What am I doing wrong? How to debug?

Thanks in anticip,
Steve

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: AvdHMI + AB micro820
« Reply #1 on: February 28, 2014, 01:35:03 PM »
I haven't actually worked with the Micro800 series controllers yet, so I won't be able to offer a lot of help. From what I read, they support Ethernet/IP tag addressing, which means the EthernetIPforCLXCom should work. But I also heard that is not implemented until a later firmware revision.

I haven't read anything on the ModbusTCP support, so I don't know how the modbus functions and addresses correspond to the tags.

Steven Hickey

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: AvdHMI + AB micro820
« Reply #2 on: March 02, 2014, 12:42:52 PM »
Thanks for the rapid reply Archie,
I have been running a combination of Scilab (with ModbusTCP) and DDE to Excel successfully.
The u820 modbus mapping has the registers at 40100. But Scilab gets these at modbus address 100.

Can you please explain the significance of PLCAddressText, PLCAddressValue, and PLCAddressVisible
in the panel meter properties?

I gather that the concept of TAGS is somewhat obsolete. The u800 series has variable names for
all the registers mapped in modbus.

So should I be using the variable name, full address e.g. 40100, or just 100, in the panel
meter properties (I've tried them all to no effect)?

An suggestions for where I can look in the source code to debug this?

Cheers,
Steve

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: AvdHMI + AB micro820
« Reply #3 on: March 02, 2014, 04:34:12 PM »
Under the hood. Modbus works on function codes and addresses. Address 40100 is typically function code 3 and address 100

AdvancedHMI uses the most common addressing, so 40100 will need to be used to get function code 3.

The properties prefixed with PLCAddress will link the value coming from the PLC to the corresponding property. For example, if you put 40100 in PLCAddressValue, then the value coming form the PLC will be put in the Value property. During design mode, you can put a number in the Value property to see what effect that property has.