Author Topic: multi slave subscribe  (Read 1400 times)

Arif

  • Newbie
  • *
  • Posts: 5
    • View Profile
multi slave subscribe
« on: October 17, 2017, 02:53:00 AM »
I'm trying new project for myself with advancedHMI where I connect 4 plc through RS485 to get data array (each different length).

which method will be the best?
Set up driver for each slave, and then pair Datasubscriber2 to get data; OR
Set up one driver, then cycling the config after it receive some data.


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: multi slave subscribe
« Reply #1 on: October 17, 2017, 07:24:16 AM »
Use a separate driver instance for each PLC

Arif

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: multi slave subscribe
« Reply #2 on: October 18, 2017, 02:25:44 AM »
thanks archie :)
oh, and one more thing. What exactly the datasubscriber2 data return? I noticed I can input several address range at PLAddressValueItems. can I get Boolean array on one range and integer array on another?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: multi slave subscribe
« Reply #3 on: October 18, 2017, 08:50:32 AM »
You can mix any data types in the list. The event will fire separately for each item in the list. You can determine which item the value belongs to by using e.PLCAddress in a If-Then statement.