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

Script instance creation issue

Script instance creation issue

8run0tti
New Poster

Dear ctrlX Community!

We tried to create a new script instance on datalayer, but we experienced the following error:

kxp.png

Anyway the script instance is created successfully, but the PLC starts flashing red.
The method of creation does not matter , the result is similar. (we tried the manual creation in datalayer menu and creation by IL_CreateScriptInstance in PLC program and creation in IDE)
The system image version is 1.20.4.

Could You recommend a solution to this problem?

Thanks in advance!

7 REPLIES 7

CodeShepherd
Community Moderator
Community Moderator

Please keep in mind that is always two steps. First create instance, 2nd execute script in that instance.

The mentioned error will always occur when the script running (step 2) in an instance will have programming errors or is not exited properly (see this topic).

Could you share your script you are trying to run?

Hi CodeShepherd!

Fortunately, we didn't experience any problems running a scripts on an existing script instance.

The mentioned error appears when we create a new script instance.

We now could reproduce this behaviour when no ctrlX CORE - Motion app is installed and track it as a bug. The error has no effect to your running system/application.

Thanks for mentioning we will improve this.

Unfortunately we experienced the same issue on newest (02.02.4) system image.
Do You have any news from the development team?

Thanks in advance!

As the behaviour is like intended there were no changes made.

As uncontrolled running axis are a risk for machines and workers when you kill a script all motion objects connected to a script will be stopped on purpose. This is done via creating the error. You will need to use function "exit(0)" or detach the motion objects by hand (in the code) before ending the script.

As I mentioned in the first post, this error happends, when we create a new script instance. In this case, the script is not running yet, so what you suggested is not effective.

You can simply reproduce this phenomenon by clicking 'Create' in the script/instances node in the Data Layer menu on WebUI. This only happens, when the Motion app is not installed on the Core.

Sorry for misunderstanding. I can confirm the behaviour mentioned and it will be fixed in version 2.04 of the automationcore app.

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