FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
07-24-2023 01:06 PM
Dear ctrlX Community!
We tried to create a new script instance on datalayer, but we experienced the following error:
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!
Solved! Go to Solution.
07-26-2023 08:13 AM
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?
07-26-2023 12:57 PM
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.
07-31-2023 03:59 PM - edited 07-31-2023 04:00 PM
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.
11-07-2023 04:17 PM
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!
11-08-2023 08:18 AM - edited 11-08-2023 08:18 AM
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.
11-08-2023 10:00 AM - edited 11-08-2023 10:41 AM
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.
11-08-2023 02:05 PM - edited 11-08-2023 02:23 PM
Sorry for misunderstanding. I can confirm the behaviour mentioned and it will be fixed in version 2.04 of the automationcore app.