General Category > Support Questions

RE: Display Position By Integer Value

(1/1)

zach_a_ary:
hello Archie, in a previous topic named "Display Position By Integer Value" you mentioned adding this property "PLCAddressLeft". I added this property to a basic indicator and it worked. Is there a property for vertical position? I tried "PLCAddressUp" and "PLCAddressDown" just to see if it would work and it did not.

Archie:
The reason PLCAddressLeft worked is because of an AdvancedHMI feature known as Auto Properties. The software will look for properties with the name PLCAddress*. It will strip the PLCAddress off those properties then use what's left to see if a property exists by that name. If so, it will use the value from the PLC to push into that property.

The BasicIndicator has a property named Top that will set its distance from the top of the form (or container that it exists in). If you modify the BasicIndicator by adding :

Public Property PLCAddressTop as string

AdvancedHMI's Auto Property feature will link the PLC value from the tag/register to the property Top.

zach_a_ary:
awesome, that worked, thanks Archie

Navigation

[0] Message Index

Go to full version