Author Topic: Src. File not running - Error 2224 Constant Expected  (Read 202 times)

barrakd

  • Forum User
  • *
  • Posts: 2
    • View Profile
Src. File not running - Error 2224 Constant Expected
« on: October 17, 2021, 04:02:10 AM »
Hi,

I am having trouble running a .src file generated from KUKAPRC. I am copying the file using a USB stick to R1, but would get a red cross on my file which prevents me from running it. The error reads: "Constant Expected". I have double checked the KUKAPRC analysis which is error free and double checked that my tool and base calibration numbers are correct. I am uploading an image of the error  from my smartpad, as well as the .src file.

Many thanks!

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1224
    • View Profile
    • Robots in Architecture
Re: Src. File not running - Error 2224 Constant Expected
« Reply #1 on: October 17, 2021, 10:49:44 PM »
Hello,

It seems that the E1-E4 values of your start/end movement are set to NaN, which C# / Grasshopper sees as a valid number, but I guess KRL is looking for a variable with that name.
Did you set those values to NaN in the settings manually? If not, it would be great if you could send me your Grasshopper definition - feel free to substitute your commands with a single 6-Axis movement, I'm confident that if there is an error, it's in the settings and not the toolpath.

Thanks!
Johannes

barrakd

  • Forum User
  • *
  • Posts: 2
    • View Profile
Re: Src. File not running - Error 2224 Constant Expected
« Reply #2 on: October 18, 2021, 04:39:28 AM »
Thank you Johannes,

You were right. That solved it!

All the best,
Barrak

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1224
    • View Profile
    • Robots in Architecture
Re: Src. File not running - Error 2224 Constant Expected
« Reply #3 on: October 18, 2021, 07:10:53 AM »
Great, thanks for the update!

Best,
Johannes