Is it possible in Dispatcher?
 

Is it possible in Dispatcher?

Begonnen von Per Olsen, 20. Dezember 2025, 14:44:02

Vorheriges Thema - Nächstes Thema

Per Olsen

Hello.

In «Dispatcher»
I have put in some conditions.  When they are valid, there is another window "When conditions are valid (switch on)" where I put in the actions to do.  This works very find.

But now, I do have a special need to, in that window, set a counter to 2 different values, depending on the setting of a switch in the layout.  Is this possible in any way?  (Kind of like a sub-routine)

Regards,
Per
  • Win-Digipet-Version:
    WinDigiPet 2025
  • Anlagenkonfiguration:
    Tams Master Control. Maerklin C-tracks. 6xBolls boosters.  2xLittfinski HSI-88 USB.  Bolls RMDs.  Viessmann and Bolls switch-decoders.
  • Rechnerkonfiguration:
    Windows 11 2,7GHz CPU, 16Gb RAM.

Markus Herzog

#1
Hi Per,

use a complex calculation for the counter as show in the following pictures.
The used logic result folder in the calculation can be used to combine calculation and logic results in any way

Regards
Markus

P.S.: Other possibilities: you could also produce the result 0/1 by the logic folder and multiply it afterwards with constants etc. And if you summarize then multiple of these multiplications then you can make your choices.
  • Win-Digipet-Version:
    WDP 2025.x Beta
  • Anlagenkonfiguration:
    3-Leiter Anlage, Rollendes Material Märklin/Roco/Brawa/Mehano, Fahren: DCC, m3 via Tams MC, Schalten/Melden: Selectrix, BiDiB, Motorola (nur wenige Sonderaufgaben)
  • Rechnerkonfiguration:
    Intel i7

Per Olsen

Hello Markus!

Thank you!   I am sorry, I have tried and tried but cannot figure it out.  May I ask you to try to help me some more?

This is the situation:
In the layout I have a switch and a counter for this.  When the switch is "Red" I want the counter to be set to the value 1.  When the switch is "Green" I want the counter to be set to the value 10.  This must be done from the  window "When conditions are valid (switch on)", not from the "Conditions" window (that would be easy 😊 ) in the dipspatcher.

I know it is rather complex, and maybe cannot be done, but I hope it can 😊 otherwise I must re-write a bigger part of the Dispatcher contents.

Best regards,
Per
  • Win-Digipet-Version:
    WinDigiPet 2025
  • Anlagenkonfiguration:
    Tams Master Control. Maerklin C-tracks. 6xBolls boosters.  2xLittfinski HSI-88 USB.  Bolls RMDs.  Viessmann and Bolls switch-decoders.
  • Rechnerkonfiguration:
    Windows 11 2,7GHz CPU, 16Gb RAM.

Markus Herzog

Hi Per

Please take again a look at my pictures. These show exactly what you want.

The right part of the window does not show the condition part of the dispatcher but the calculation window which can be reached via the fx button in the counter calculation show in the left picture

Regards
Markus
  • Win-Digipet-Version:
    WDP 2025.x Beta
  • Anlagenkonfiguration:
    3-Leiter Anlage, Rollendes Material Märklin/Roco/Brawa/Mehano, Fahren: DCC, m3 via Tams MC, Schalten/Melden: Selectrix, BiDiB, Motorola (nur wenige Sonderaufgaben)
  • Rechnerkonfiguration:
    Intel i7

Per Olsen

#4
Hello Markus.

Sorry for bothering you with this, I think I am a bit slow :)

I will continue to try :)

Regards,
Per.
  • Win-Digipet-Version:
    WinDigiPet 2025
  • Anlagenkonfiguration:
    Tams Master Control. Maerklin C-tracks. 6xBolls boosters.  2xLittfinski HSI-88 USB.  Bolls RMDs.  Viessmann and Bolls switch-decoders.
  • Rechnerkonfiguration:
    Windows 11 2,7GHz CPU, 16Gb RAM.