Author Topic: WAGO 750-891 Reading Address Issue  (Read 3348 times)

ahunteje

  • Newbie
  • *
  • Posts: 9
    • View Profile
WAGO 750-891 Reading Address Issue
« on: September 24, 2024, 07:28:48 AM »
Hello, I am VERY new to .NET as well as WAGO.  I connect to the WAGO via Kepware and see some addresses on an out-of-the box 750-891 WAGO.  However, when I use that address (100001) with AdvancedHMI I get errors.  How do I translate the addresses that I see in Kepware to usable addresses?  Again, sorry for such a noob question.  I am connecting via TCP.
« Last Edit: September 24, 2024, 07:47:06 AM by ahunteje »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: WAGO 750-891 Reading Address Issue
« Reply #1 on: September 24, 2024, 07:42:49 AM »
Are you using the ModbusTCP driver in AdvancedHMI?
« Last Edit: September 24, 2024, 07:46:51 AM by Archie »

ahunteje

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: WAGO 750-891 Reading Address Issue
« Reply #2 on: September 24, 2024, 07:48:41 AM »
Yes, and putting 100001 as the address.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: WAGO 750-891 Reading Address Issue
« Reply #3 on: September 24, 2024, 07:57:55 AM »
10001 is going to be a boolean value. Start with testing address 40001

I was looking at the manual found here in the download section:

https://www.wago.com/us/controllers-bus-couplers-i-o/controller-modbus-tcp/p/750-891#:~:text=Both%20interfaces%20support%20autonegotiation%20and%20Auto-MDI(X).%3C/p%3E%3Cp%3EThe

The Product manual in section 12.2.4 it defines the address, but refers to them as the function codes. This is what is highly confusing about Modbus. AdvancedHMI uses Modicon style addressing which uses the first digit to translate into function codes.

The Address section of this page helps break down the conversion:

https://advancedhmi.com/documentation/index.php/ModbusRTUCom

A quick example would be reading %MW0. The manual says this is FC3 at 12288. In Modicon address that would be 412289  (Modicon starts with 1, therefore the offset)

ahunteje

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: WAGO 750-891 Reading Address Issue
« Reply #4 on: September 24, 2024, 08:05:32 AM »
Thank you, so much!!!  40001 worked perfectly.  MODBUS is very confusing.  Thank you, again.

ahunteje

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: WAGO 750-891 Reading Address Issue
« Reply #5 on: September 24, 2024, 08:09:23 AM »
One more curious thing.  I added another Digital Panel and set the address to 40002 thinking it would read Digital Input 2 on the WAGO with an address of 100002.  However, when I trigger that input, my Digital Panel 1 reads as a 2 and if I turn DI4 true Digital Panel shows a 4.  I thought if they were boolean, it would just be a 1 or a 0.  Sorry for my lack of understanding.
« Last Edit: September 24, 2024, 08:12:43 AM by ahunteje »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: WAGO 750-891 Reading Address Issue
« Reply #6 on: September 24, 2024, 08:37:20 AM »
40002 should read the address %IW2

Each Modbus 4000 series address reads 2 bytes. The Wago address space is per byte. So 40001 will span %IB0 and %IB1 (aka %IW0). Then address 40001 will span %IB2 and %IB3 (%IW2)

ahunteje

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: WAGO 750-891 Reading Address Issue
« Reply #7 on: September 24, 2024, 08:51:42 AM »
Ok, thank you, so much!