Textaul Coding IDE app

Hello Team,

I am trying to use the Motion inside the IDe Textaul coding app but I am not able to run the kinematics, could you please help me with that? I am using 2.6 Early adaptor version.

Simple progrma above

Error Code Below,

 

# /usr/bin/python3 "/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/DevelopR 1.py"

Traceback (most recent call last):

  File "/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/DevelopR 1.py", line 17, in <module>

    motion.kin_cmd_move_lin_abs(kin="Kinematics", pos=[400,200,150],coord_sys="WCS",vel=2000,acc=0.085,dec=0.085,jrk_acc=0,jrk_dec=0)

  File "/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/libraries/bosch/ctrlxpy/motion.py", line 1006, in kin_cmd_move_lin_abs

    return datalayer.run_command("/motion/kin/" + kin + "/cmd/move-abs",

AttributeError: module 'datalayer' has no attribute 'run_command'

#

Best reply by Sgilk

TechHarbour ,

How are you executing the script? I was able to run this fine attaching to a script instance on the CtrlX CORE. From the debug pane in the IDE, select "Launch Python in Script Engine" and select an existing or create a new script instance.

As an aside, your code will cause errors from the motion state being invalid. The axes kinematic must be powered on and grouped before executing a move.

App versions:

  • IDE 2.6.2
  • Python Runtime 2.6.0
  • Motion 2.6.1
View original
2 replies