cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Textaul Coding IDE app

Textaul Coding IDE app

Tasty_Tech
Long-established Member

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.

Tasty_Tech_0-1722509928946.png

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'

#

2 REPLIES 2

Sgilk
Contributor

@Tasty_Tech ,

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

CodeShepherd
Community Moderator
Community Moderator

@Tasty_Tech Are there any news? Is this still open or can the topic be closed?

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist