Author Topic: ComComponent runtime change  (Read 715 times)

GraemeTownsend

  • Newbie
  • *
  • Posts: 29
    • View Profile
ComComponent runtime change
« on: June 02, 2017, 01:03:08 AM »
Hi All,

I want to be able to change the ComComponent during runtime for various BasicLabel and BasicIndicator. Is this achievable? (I have seen hint of SubscribeToComDriver but struggle to find implementation).

Alternatively, (and perhaps even better), could a common AdvancedHMIDrivers.EthernetIPforSLCMicroCom have it's IP address changed at runtime?

Any advice welcomed.
Thanks,
Graeme.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5261
    • View Profile
    • AdvancedHMI
Re: ComComponent runtime change
« Reply #1 on: June 02, 2017, 07:36:05 AM »
You can do it either way:

BasicLabel1.ComComponent = EthernetIPforSLCMicroCom2

-or-


EthernetIPforSLCMicroCom1.IPAddress = "192.168.1.10"