Author Topic: How to use the plcaddresstext field from a basicbutton?  (Read 1465 times)

UchihaKurt

  • Newbie
  • *
  • Posts: 11
    • View Profile
How to use the plcaddresstext field from a basicbutton?
« on: July 10, 2015, 08:14:14 AM »
Hi, i want know if i can change button name using plcaddresstext field, if yes what should i do?
What kind of command i've to do in the plc to do it?
thanks. =D

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: How to use the plcaddresstext field from a basicbutton?
« Reply #1 on: July 10, 2015, 12:16:11 PM »
When you put a valid PLC address in the PLCAddressText property, that value will be read from the PLC and displayed on the button. If you wanted to show different words, then your PLC would need to support strings. Any data type can be used for this.

Another option for switching text is to use PLCTextAlternate. If the value read from this is True, then the text put in the TextAlternate property will be displayed, otherwise the value in the Text property will display.

UchihaKurt

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: How to use the plcaddresstext field from a basicbutton?
« Reply #2 on: July 11, 2015, 10:20:01 AM »
Thanks, just one more question.
in the VB, there a command to write a string in the plc?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: How to use the plcaddresstext field from a basicbutton?
« Reply #3 on: July 11, 2015, 11:03:47 AM »
What communication driver are you using? The Write function send data to the PLC. For example, if you are using the EthernetIPforCLXCom:

EthernetIPforCLXCom1.Write("MyStringTag","ABCDEF")

UchihaKurt

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: How to use the plcaddresstext field from a basicbutton?
« Reply #4 on: July 12, 2015, 03:47:37 PM »
thanks