FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
08-01-2024 12:59 PM
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'
#
Solved! Go to Solution.
08-01-2024 10:18 PM
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:
09-02-2024 10:09 AM
@Tasty_Tech Are there any news? Is this still open or can the topic be closed?