Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: Xylotica on August 17, 2016, 12:51:16 PM

Title: BUG : Output instruction not written in .src file
Post by: Xylotica on August 17, 2016, 12:51:16 PM
Hi !

I have updated my 2D cutting definition to integrate the I-O s of my plasma cutter.
Just to be sure that the output which triggers the plasma is "OFF" or "False" at the start of the program, I have added a command from the "Set digital" component at the very beginning of the command stack.

Sadly, this does not seem to register in the .src file (see attached).

Cheers
Title: Re: BUG : Output instruction not written in .src file
Post by: Johannes @ Robots in Architecture on August 17, 2016, 05:27:34 PM
Hello,

Thanks for letting me know, I'll look into that. In the meantime, you can use the Reset IO State option in the Code Generation settings! Or alternatively create a custom KRL pattern where you set your output at the beginning.

Best,
Johannes
Title: Re: BUG : Output instruction not written in .src file
Post by: joaocosta on November 15, 2017, 05:09:12 PM
Hello,

Has this issue been resolved?
I'm experiencing the same problem: digital outputs won't show up in the .src file.
Am I missing anything?

Thanks!
Title: Re: BUG : Output instruction not written in .src file
Post by: Johannes @ Robots in Architecture on November 16, 2017, 09:27:17 AM
Hello,

IOs start with a state of OFF, so an additional OFF will not register.
You can override this behaviour by using a Custom-KRL component instead with e.g.
$OUT[1]=TRUE

Best,
Johannes