0

IDC Latch with QCODE

Luke@ARI 7 years ago in IQANdesign updated by Jonas Bengtsson 7 years ago 3

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" 

Image 1467

But, when I write what I thought was an equivalent statement in Qcode, the ICD functions as a momentary, and doesn't latch:

Image 1468


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:


Image 1469

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:

Image 1470

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.

0

Button action: send CAN message

vinicius oliveira 7 years ago in IQANdesign updated 7 years ago 3

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.

0

Application memory

Greg R 7 years ago in IQANdesign 0

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?

0

Access Levels

Kevin 7 years ago in IQANdesign updated by Gustav Widén (System support) 5 years ago 6

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:

Image 1449

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?

0

Reset user logic

Paulo Cupertino de Lima 7 years ago in IQANdesign 0
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
0
Answered

Local Variables

Joe 7 years ago in IQANdesign updated by Gustav Widén (System support) 7 years ago 2

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?

0
Answered

Destination Address

Rainer Vermaasen 7 years ago in IQANdesign updated by Gustav Widén (System support) 7 years ago 2
I have the following problem with a J1939 control on a Deutz engine: 
The PGN 65110 is sent with a Source Address / Destination Address (see screenshot IQAN analyze).

Image 1421

Is it possible in IQANdesign to activate the Destination Address?
(see screenshot IQANdesign)

Image 1422

Answer

Hello Rainer

In the J1939 protocol, you have different configurations of the 29 bits identifier, where the PGN number is part of.

When the PGN number is between 0 and 61184, the SA and DA are in the identifier.

IQAN analyse will show both.

From 61185 and bigger, we have broadcast messages. In these messages, there is no DA and IQAN will not show the DA.

I hope this helps

0

Date in Memorizing Channel in 5.04

Jared Bird - AA 7 years ago in IQANdesign updated 7 years ago 2

When I updated to IQAN 5.04, I four new errors that popped up that seemed to be related to the fact that it can't use a date data type in the memorizing channel.  This exact same program works in IQAN 5.03.

Image 1418

0

GFIN - add Enable parameter

Florent Mirieu de Labarre 7 years ago in IQANdesign updated 7 years ago 2

Dear could you add a enable parameter on all CanBus function. If we have some option material, it is easy to desactivate some CanBus function.

In generale it could nice to add Enable Parameter on all function.

Regards

0
Answered

Change MD3 address from 0 to 3

Kevin 7 years ago in IQANdesign updated by Gustav Widén (System support) 7 years ago 5

I have 2 x MD3's that previously had been used separately on different machines with an application that had the displays configured as address 0. I now wish to connect them to the same diagnostic bus and install new application software with one as address 0 and the other as address 3. I seem unable to change either of the displays from address 0 to 3. I have the correct ID tags inserted, tried safe mode, tried unplugging one of the displays, tried changing the display (just in case it was faulty), the resistance of the ID tags are correct. Still cant work it out, can anyone help?!

Image 1417

If i unplug one of the displays i can send an application that has a single display configured as address 3, but even with address 3 tag inserted in the rear of the screen it comes up with wrong ID tag on the display. Appears to be the same in IQAN design 3, 4, & 5.