Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: d2b Design on February 26, 2018, 07:52:50 PM

Title: Error 2138 "name invalid for this type of constant"
Post by: d2b Design on February 26, 2018, 07:52:50 PM
Hi everyone,

I'm trying to run a simple PTP command to test our robot's functionality, and I'm getting a 2138 error when compiling the code on the KCP that states "Name invalid for this type of constant". The error occurs on line 16: BAS(#PTP_PARAMS,45)

I attached the .src file, the Grasshopper file, and the bas and $config files that are located in our R1 > System folder.

I'm running a KR200-2 (from a GM factory) with a KRC2 controller, and a v1 pendant, with KSS v4.1.6.

Any help is greatly appreciated!

- Dante
Title: Re: Error 2138 "name invalid for this type of constant"
Post by: Johannes @ Robots in Architecture on February 26, 2018, 09:20:42 PM
Hello Dante,

Try ticking the "Improved Compatibility with older KRC Controllers" box in the Code settings!
That should fix the issue!

Best,
Johannes
Title: Re: Error 2138 "name invalid for this type of constant"
Post by: d2b Design on February 26, 2018, 09:25:47 PM
Thanks, problem solved!