0

Multimaster system & disconnected masters

Kevin 2 days ago in IQANdesign updated by Pierre Fagrell 1 day ago 1

We need a multimaster system that has (1 x MC43 and 1 x MD5) and (1 x MC43 & MD5) that exchange app in / out data when diagnostic and master bus is connected but continue to function with their own program using local IO when the systems are disconnected from each other. Each separate system has 1 x MC43 and 1 x MD5 display for viewing information inside the MC43. See system below showing the disconnection between the two separate systems:

Image 5016


The separate systems need to talk to each other using appin and appout, but still run separate control programs when disconnected.

Below is an extract from the IQAN user manual:

Image 5015

In this instance, I make the non headmaster optional in the settings so when the optional modules become disconnected from the headmaster, i get no errors in the headmaster and the headmaster. The headmaster continues to run its own application in a valid system state. 

In the optional module, when it disconnects from the headmaster, because the headmaster is not optional, will I get errors appear in system logs in addition to appin / appout for the timeout? I'm concerned it will log can bus module error state, the customer may be confused by these faults if it does this. Also this application will continue to run with its own local IO and control I have built into the application, so effectively becomes a standalone system that continues to run its logic even though its lost contact with the headmaster?

Any advice how I can handle the bus termination, as when we switch systems in and out, the bus configuration will change and we will loose termination at different points. Without the option to switch termination on and off unless the software is reloaded, I am unable to control this unless i switch relays on and off bringing in resistors at certain points on the bus. Maybe its easier to set up two separate applications that communicate when connected, can this be done with appin and appout in different application files?

You can use an "Initialization channel" to enable termination, so your technicians can turn it on/off from an adjust group depending on what modules are installed.

I would probably use two different applications and J1939 instead of application in/out channels.

(If both MC43 have the same functionality, it could of course be the same application loaded separately into each "system" and they each are their own headmasters)