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

How to use new IDE with Motor

How to use new IDE with Motor

subwayfootlong
New Poster

Hello, 

This is a follow up on my previous post.

I already have the newer version 1.8, installed. Great work, it looks amazing.

I just have a few questions. Unlike the older versions, the newer one does not come with any examples or tutorials, so I am pretty lost on how to move the motor with code. Can someone upload a file which makes the motor move with code? A github link would also work. Thank you.

  

8 REPLIES 8

CodeShepherd
Community Moderator
Community Moderator

The main function of the blocks did not change but I will add an example in the next days.

There will also be a new ctrlX DevelopR series including a how-to video about the IDE app coming up end of the month.

See attached the project export that will be also used in the ctrlX DevelopR series. Simply load it via the import function of the visual coding part of the IDE app.

CodeShepherd_0-1617960962084.png

And don't forget to use the initialization before running.

EDIT:

Please see that I added some PLC code for controlling a imaginary gripper and access them via "pins" in the "Project Settings". If these variables are missing in your ctrlX CORE the project is not able to run. Path is "GVL/...".

CodeShepherd_0-1618237247876.png

PLC logic:

2021-04-09_13h25_31.png

 

Luschuerz
Long-established Member

Hi Thank you for the example.

 

I am in a similar situation. I wanted to use a simple program to move a virtual axis. I was able to add it to the IDE after creation in the Motion App Axis Configuration. However every time I try to compile it I get the error: No connection to target runtime.

I have the python runtime installed with the newest version as well as all System Apps updated. Do you have any Idea what could be the issue?

 

Luschuerz_0-1617977085212.png

 

However after this error shows, trying to deploy it to target still shows transfer successful, though I cannot find it on the core later.

 

 

MichaelB
Community Moderator
Community Moderator

Please double check, if you have run the "Initialization" in the "Project Settings":

MichaelB_0-1618037090933.png

MichaelB_1-1618037184545.png

 

 

Thank you sir shepard,

Unfortunately it seems you have forgotten to attach the project. 

A .png was uploaded instead

@ subwayfootlong

The projects are stored in .png files. So just import it.

@ Luschuerz

Please check if also the motion app is installed.

Otherwise you can send me a private message with your email address and I will contact you directly.

Luschuerz
Long-established Member

Hi,

 

Yes the motion app is installed. I figured out that the PLC app sometime caused some interference. after I disabled the PLC App I was able to get it to work. I am guessing it was because I forgot to turn off the program running on it...

The PLC Programm took the 1st axis created and tried to move it, same as the axis in TIGER.

 

Thank you for your reply.

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