Page 1 of 1

Scripts I make do not work.

Posted: Tue Jan 28, 2014 4:50 am
by Loukis
Hello,

When I type a script in iX Developer 2 and run it, it does not work.

I received a file from an acquaintance which has the same script, and it works.

However, when I open this file (sent by an acquaintance), cut and re-paste the script in the same location (without changing the script in any way), and run it, it doesn't work.

I guess that for some reason, my iX Developer 2 does not run scripts, and it most probably has to do with a setting on iX developer 2.

The scripts and tags I use are shown below.

Image

Image

Image

What should be happening using this script, but doesn't work, is that the SystemTagLatestLoadedRecipeName tag value should be loaded into RcpName_Hold tag when I load a different recipe, so that when the hardware is turned off and on again, the latest recipe should be automatically loaded.

Does anyone know what the problem is?

Thank you,

Loukis

Re: Scripts I make do not work.

Posted: Thu Feb 20, 2014 12:02 am
by Loukis
I found what the problem was.

I simply had to hook up the events in the scripts.

This is done by clicking on the required variable (in this case the LatestLoadedRecipe) and then right clicking on ValueChange and clicking Hookup Event.

This should also be done for the other variables/Screens (eg. Button1 and Button9).