Robots in Architecture Forum

Robots in Architecture, Art, and Design => General Discussion => Topic started by: Josh196 on July 23, 2019, 12:07:26 PM

Title: Does KUKA prc simulate I/O?
Post by: Josh196 on July 23, 2019, 12:07:26 PM
Hi! This is Josh.
I have a project in which I need my KUKA to halt its process until it gets an input from an Arduino. The trouble is simulating that on Grasshopper. I tried looking for a digital input component, but only output is available. I tried hooking up a CustomKRL component in the main comand weave but it doesn't quite work (details below).

Does KUKA prc actually simulate inputs at all? Have I missed something?

___________________________________________________________________

CustomKRL problems:
I learnt some KRL and plugged it in. I typed things like:

WAIT SEC 1

WAIT FOR $IN[14]

ajhsdgjahgfkjah

and none of those scripts seem to have any effect on the behaviour of the simulated KUKA.
Thanks in advance for the help!
Title: Re: Does KUKA prc simulate I/O?
Post by: Johannes @ Robots in Architecture on July 23, 2019, 12:40:39 PM
Hello Josh,

Unless you use e.g. mxAutomation for a real-time connection, KUKA|prc is offline, so there is no way to get your input data into the simulation.
If you use the Wait For component or Custom KRL, the actual robot will of course react accordingly.
If you want the robot to wait for a defined time, then use the Wait component and not Custom KRL.

Best,
Johannes