HMI Object Set

This MotoHawk™ block is part of the HMI Blockset and allows attributes of a graphic HMI (Human Machine Interface) Object to be set.

Block ID

HMI Object Set

Library

motohawk_HMI_lib

Description

This MotoHawk™ block allows attributes of a graphic HMI (Human Machine Interface) Object to be set.

An object can be referenced via its name, which is specified at build time, or via its runtime ID.

Block Parameters

Parameter Field Values Comments/Description
Select Object by Dropdown (Name, ID) Specifes how the the Object that is to be affected by the attribute set is referenced. The Object can be referenced via its Name or via its runtime ID.
Reference Object Name Single quote enclosed alpha-numeric text The name of the Object to be affected by the attribute set.

Only visible when Select Object by is Name.

Reference Display Name Single quote enclosed alpha-numeric text The name of the Display that the supplied object ID is associated with.

The runtime ID can be recovered from the HMI Object Get block.

Only visible when Select Object by is ID.

Set attribute Dropdown The attribute to be set.

Visibility will define whether the referenced Object (be it by Name or ID) is visible. Siblings of an object that is hidden will also be hidden.

Size will define the width and height of the referenced Object (be it by Name or ID). Graphics that fall outside of the size of the object are hidden.

XY Coordinates will set the XY coordinates of the referenced Object (be it by Name or ID). Coordinates are relative to the parent. (0,0) represents the top left most point of the parent. If the referenced Object's parent was a Screen then (0,0) would represent the left most point of the screen. However, if the parent was (say) a container object then (0,0) would represent the top left most point of that container, which could itself have coordinates that located the container in the middle of a Screen.