Error 2138 "name invalid for this type of constant"

Started by d2b Design, February 26, 2018, 07:52:50 PM

Previous topic - Next topic

d2b Design

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

Johannes @ Robots in Architecture

Hello Dante,

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


d2b Design