0

How to link a screen button to logic in MC controller?

Deanne 4 weeks ago in IQANdesign updated by mdonaldson 2 weeks ago 3

Is there a way to link a screen button to logic located in the MC? Example, I am trying to integrate a "manual mode" in my program. I want to be able to press a button on the screen to enable/disable manual mode. Once manual mode is enabled, you can manually change the current value being sent to a motor.

I hope I'm not misunderstanding the question, but if I need a manual/automatic button I add a virtual digital channel in the main Application logic, calling it, for example,"ManualOrAutomatic" and in its channel Property's I'd turn on the Toggle capability.

In the display Id add a Text Button Control and in its channel Property select the action to be the virtual digital channel you created earlier.

Ive attached a project showing this as an IDSX  file so its small in size.I've also added 2 buttons that have different text depending on the state of the virtual digital channel. To use you put the buttons over the top of each other and only one of the buttons at any time will be visible.

Is that what you meant in your question?

Andy

VirtualDigitalExample.idsx

This is possibly a question regarding a multi-master system since there is mention of a screen and MC? which would be a master controller. There would need to be a CAN connection set up between these modules, both physically and in IQANdesign, either J1939 or a Master-bus:

Image 3370

Image 3371

IQAN will only let you define the Virtual digital in, in the display its used on.

If you want to be able to have a on-screen button but have the channel directly defined in the MCxx then you can use a digital parameter with the switch control screen item. I believe in this case it uses the diagnostic bus.