
IDC Latch with QCODE
I'm writing more of my program with Qcode, and ran across something this morning that might help someone else:
I was trying to get an IDC to latch on with a momentary, rising edge signal, and then stay on when the signal goes off. Easy, using object list and a "latching or/and"
But, when I write what I thought was an equivalent statement in Qcode, the ICD functions as a momentary, and doesn't latch:
Obviously, this is a bad programming practice, because in just about any other structured text programming language, the IDC would become stuck on the first time the input went true, and would never turn off. However, that's NOT what it does. Try it for yourself; when the input goes false, the IDC also goes false, acting like this:
I don't think that those previous two code statements are equivalent, but I guess that's just an IQAN idiosyncrasy. So here's a work-around I came up with using a memorizing channel. It works as advertised as a latching IDC: when the input goes true, the MR channel latches on, and then when a different input goes true, the MR latches off:
Note the use of the ALWAYS TRUE IDC. As it's name suggests, it has a TRUE operator in it's activating channel so that it's always on. This allows the MR to latch to true.
So there you have it, a latching "IDC" in Qcode.
Luke.

Limit the number of run of a script
Hello,
I want to limit the number of times a script can be run on a machine. I want it to be run only once.
I created a digital parameter in my project, set as false as default and when I run the script, it changes the value of the parameter to true. This parameter can only be changed through this script or by authorized technician.
In my script, I want to check if the digital parameter is true or false. If it is false, it can run the fulll script and if it is true, the script does nothing.
I didn't achieve to check this. I tried to use If(Parameter) but it doesn't work.
Is it the correct way to do it ? Should it work with the If or can I use something else ?
Thanks in advance,

Button action: send CAN message
Hi all,
Sorry I'm very new to IQAN, I want to add button, and when it is pressed send CAN message.
Where I can find tutorials on how to implement this action? I could add the button but I dont know how to link with specific CAN message.
Best.
Vinicius.

Application memory
We have been using MD4s for many projects and we decided to split up the applications to MC43s. The application easily went over the 1.5MB limitation. Is there no way to increase this?

Access Levels
We have set up various different access levels for customers to access certain parameters using a multi master with MD4. These work great with IQAN Run for laptop or tablet, login as a user and get access to certain parameter to adjust. We would have also expected (once logged in using laptop or tablet) for these parameters to be shown in the 'adjust' menu on the display as per the note in IQAN Design:
Is there something we are doing wrong? It seems the only way we can get it accessible through the display using an access level password is by leaving access levels for the adjust group set to 'Allow all' and making it visible using a IDC thats linked to ID tags. Is this safe?
If we leave visible option as 'yes' and link to an access level other than 'allow all', we cannot get the display to show adjust items? This appears to be the same for measure as well, i cant believe its right, what have i missed?

Same license for IQANrun2 and IQANrun 5 ?
Hello,
Some of our technician customers will have to install IQANrun 5 in addtion to IQANrun 2 used until now.
It is not clear for me on what will happen about the license.
Can they use the same license number as the one they have for IQANrun 2 ? Will they have to update the license for free ?
Or is it needed to buy another license (I hope not !) ?
Thanks in advance,

Run script with IQANrun without IQANscript ?
Hello,
Is it necessary to have IQANscript installed on the computer to run a script from IQANrun ? The script was made with IQANscript of course and send by mail.
Thanks in advance,

In my understanding, you would only need IQANScript if you want to make a script.
To run it, you only need to have IQANRun.

Keep settings when converting from 2.63 to 5.04 version
Hello,
I have machine running in 2.63 version. I want to update them with a program (very similar to the one in 2.63 - same parameters) in 5.04. Big update !
How can I memorize all the settings from the machine in 2.63 to get them back in the 5.04 version of the program ?
The only solution I found was to check in the 2.63 version every settings to see if they are different from the default value and if so, change them manually after the upgrade in 5.04. It should work but it is not easy and takes a long time (50+ parameters).
Do you have an idea of how I could do this ? I try to Get settings in 2.63 IQANrun but they are not read in IQANrun 5.04...
Thanks in advance for your help !

Reset user logic
Good Morning , I have an application where I implemented a logic of several users and wanted to add a function to factory reset returning the names and passwords of users to a standard, the logic used is attached here would like to know if anyone can help me, thank youUser access example.ida4

Local Variables
Can't find this in the literature:
Are local variables always the same variable type as the channel. In other words, are local variables within an IMAC, integer values; local variables within a MAC - reals?
Customer support service by UserEcho