HMI Components
Last updated
Last updated
You can find in this section details about HMI components and how they interact with robot functions and variables.
Buttons are used to let users trigger robot actions.
Actions are expressed as robot commands. Any valid robot command can be linked to a button.
Valid command examples for Universal Robots:
movej([1.56, -1.93, 1.69, -1.33, -1.57, -0.01]) # robot function
my_function() # user defined function
x = 100 # assignment
c = c + 1 # command
Actions scope can be configured as MAIN or BACKGROUND.
The scope parameter is used to determine how the action will be executed by the robot. MAIN option is used to execute the command in the main thread, while BACKGROUND is used to execute the command inside a new thread.
Multiple BACKGROUND actions can be executed simultaneously, while MAIN actions can be executed just one at time.
You can also give the action a display name that will be shown on the HMI panel while the action is running.
Monitors can be used to display live runtime values on the HMI panel.
Monitors can be linked with robot variables of any type or with commands returning a value.
Valid linking examples for Universal Robots:
my_variable # user defined variable
get_actual_joint_positions() # robot function
my_function() # user defined function
x + y # command with return value
Inputs compnents are used to let users set or change a value assigned to a robot variable.
Inputs can be linked with any robot variables with type Int, Float or String.
Image components are used to display a fixed picture on the HMI panel.
Like buttons images can be used by user trigger robot actions.
Actions are expressed as robot commands. Any valid robot command can be linked to a button.
Valid command examples for Universal Robots:
movej([1.56, -1.93, 1.69, -1.33, -1.57, -0.01]) # robot function
my_function() # user defined function
x = 100 # assignment
c = c + 1 # command
Actions scope can be configured as MAIN or BACKGROUND.
The scope parameter is used to determine how the action will be executed by the robot. MAIN option is used to execute the command in the main thread, while BACKGROUND is used to execute the command inside a new thread.
Multiple BACKGROUND actions can be executed simultaneously, while MAIN actions can be executed just one at time.
You can also give the action a display name that will be shown on the HMI panel while the action is running.
See HMI Charts section.