Robpod Studio Docs
  • Get Started
    • Introduction
    • Download
    • Installation
      • Install Platform
      • Install Plugin
    • First Steps
      • Choose Studio Flavor
      • Welcome Screen
      • Create a Project
      • Create a Script
      • User Interface
      • New UI
      • Robpod Studio Assistant
    • License
      • Buy a License
      • Install a License
    • Safety
  • ROBOT
    • Robot Toolbar
      • Connect the Robot
      • Control the Robot
      • Get Positions
      • Move To
      • Run a Script
    • Robot Tool Window
      • Status
      • Teach Pendant Viewer
      • Variables
      • Digital I/O
      • Analog I/O
      • Debug
    • Robot Variables
    • Robot Logs
  • Advanced Scripting
    • Live Auto Completion
    • Templete Completion
    • Param Info
    • Code Inspections
    • Quick Doc
    • Python Scripting
    • Editor Settings
  • Synchronization
    • Upload On Robot
    • Download From Robot
    • Synchronize Project
    • Clean Robot Files
    • Synchronization Settings
  • Simulation
    • Connect a Simulator
    • Simulate a Script
    • Off-Line Programming
    • Simulator Viewer
    • Simulation Commands
    • Simulation Settings
    • Simulation Examples
      • Palletizing
  • HMI Designer
    • Introduction
    • User Interface
    • Installation
    • Design Steps
      • Create new HMI Panel
      • Add HMI Components
      • Edit HMI Components
      • Preview HMI Panel
      • Synchronize HMI Panel
      • Run HMI Program
    • HMI Components
    • HMI Charts
    • Display Conditions
    • HMI Commands
    • HMI Icon Generator
    • Desktop HMI Viewer
    • HMI and UR Polyscope
    • HMI and Doosan Robotics
    • HMI Tutorials
      • Beginner Tutorial
      • UR Polyscope Tutorial
      • Doosan Robotics Task Editor Tutorial
      • Doosan Robotics DRL Tutorial
    • Working Examples
      • Universal Robots
        • Pick and Place Example
        • Polishing Example
        • Machine Tending Example
        • Simple Pallet Example
        • Welding Example
        • Skrewdriving Example
        • Chart Monitoring Example
        • Production Mix Example
        • Pallet App Example
        • Camera QA Example
        • Assembly Example
      • Doosan Robotics
        • Pick and Place Example DR
  • Other
    • Updates
    • License FAQ
    • Customer Portal
  • LEGAL
    • License Agreement
    • Privacy Policy
    • Third Party Licenses
  • Appendix
    • Supported Robots
    • Robot Specific Functions
      • Universal Robots
        • URSim
    • Supported Simulators
    • Network Configuration
    • Security Settings
Powered by GitBook
On this page
  1. HMI Designer
  2. Working Examples
  3. Universal Robots

Chart Monitoring Example

PreviousSkrewdriving ExampleNextProduction Mix Example

Last updated 10 months ago

HMI Panel File

Robot Program File

# joints values
j1 = 0
j2 = 0
j3 = 0
j4 = 0
j5 = 0
j6 = 0

# TCP position
x = 0
y = 0
z = 0

# joints torque
t1 = 0
t2 = 0
t3 = 0
t4 = 0
t5 = 0
t6 = 0

# joints motor temperature
temp1 = 0.0
temp2 = 0.0
temp3 = 0.0
temp4 = 0.0
temp5 = 0.0
temp6 = 0.0

# controller outputs
o1 = 0
o2 = 0
o3 = 0
o4 = 0

# controller temperature
controller_tmp = 0

def bool_to_int(val):
    if val:
        return 1
    else:
        return 0
    end
end

# update thread
thread update():
    while True:
        joints = get_actual_joint_positions()
        j1 = joints[0]
        j2 = joints[1]
        j3 = joints[2]
        j4 = joints[3]
        j5 = joints[4]
        j6 = joints[5]

    	tcp = get_actual_tcp_pose()
    	x = tcp[0]
    	y = tcp[1]
    	z = tcp[2]

    	torques = get_joint_torques()
    	t1 = norm(torques[0])
        t2 = norm(torques[1])
        t3 = norm(torques[2])
        t4 = norm(torques[3])
        t5 = norm(torques[4])
        t6 = norm(torques[5])

        temp1 = get_joint_temp(0)
        temp2 = get_joint_temp(1)
        temp3 = get_joint_temp(2)
        temp4 = get_joint_temp(3)
        temp5 = get_joint_temp(4)
        temp6 = get_joint_temp(5)

        o1 = bool_to_int(get_standard_digital_out(0))+6
        o2 = bool_to_int(get_standard_digital_out(1))+4
        o3 = bool_to_int(get_standard_digital_out(2))+2
        o4 = bool_to_int(get_standard_digital_out(3))+0

        controller_tmp = get_controller_temp()
        sync()
    end
end

run update()
2KB
update_data.script
Script to get robot data
2KB
hmi_chart_monitoring.urp
Robot program
337KB
monitor_hmi.hmi
HMI panel file