Universal Robots Forum

How to resolve syntax error

Hi, I am trying to run the robotics r1 script on the teach pendant but it keeps giving a syntax error at line 4148:theta = d2r(180)
does anyone know how to fix this problem?.
thanks

I am using URSoftware 5.9.1



I think this is the line of code that has the syntax error
Sorry i am inexperienced in coding can anyone help solve this issue
Thanks,
Geremy

Hi,

Obviously, you lost a “:” in the end of if((…) or (theta< d2r(-179.99)))

Thanks

1 Like

Sorry to Disturb you again but after solving this error there is another error



This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.