A simple grasshopper plugin for online-control of a KUKA (KRC2/4) by modifying global Variables from Grasshopper using KUKAVARPROXY.
Download KUKAVARPROXY from it's Github page.
Warning: Changing the arm's ip address will break the connection between the controller and the arm. Proceed with caution.
Download the KukaVP_GH.ghpy
file and simply drag and drop to Grasshopper or copy to the Grasshopper's components folder.
Components folder default path
C:\ProgramData\Roaming\Grasshopper\components
OR
In Grasshopper go to
File > Special Folders > Components**
KUKAVARPROXY should be running on the robot controller and the robot should be connected to the computer. The connection is recommended to be tested by (as described in the troubleshooting section > Testing the communication) before using the plugin.
The communication is established using the Robot
component in the grasshopper. The output of the component is then used as the input for the Read
and Write
components.
By default, KUKAVARPROXY will terminate the communication after 30 seconds of inactivity. The
Read
andWrite
components will re-establish the communication if needed. However, re-establishing the communication will cause a delay in communicating the data. If this delay is a problem, in order to prevent the termination of the communication, theKeepAlive
component can be used. This component keeps sending data over the network every 25 seconds to prevent the communication from terminating.
Use the Robot
component to connect to the robot.
- ###### Inputs
- IP: text containing the IP of the robot. example: 192.168.1.100
- Connect: Boolean whether to establish to connection or not.
- ###### Outputs
- Robot: The Robot object to use with other components.
-
-
- Robot (ROB): The Robot output from the Robot component.
- Variable (VAR): Boolean whether to establish to connection or not.
-
- Value (VAL): The Value of the Variable in the robot.
-
-
-
- Robot (ROB): The Robot output from the Robot component.
- Variable (VAR): Variable to write to.
- Value (VAL): The value to write to the defined variable.
- Write (WR): Boolean to write to the robot.
-
- Done (OK): Boolean defining if the write is done.
-
-
-
- Robot (ROB): The Robot output from the Robot component.
- Keep (ALV): Boolean whether to keep the connection alive or not.
-