Autor Thema: Logic conditions in tour automatic ZFA  (Gelesen 3559 mal)

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Logic conditions in tour automatic ZFA
« am: 06. November 2015, 21:49:40 »
Hello ,
I have the following problem in tour automatic conditions:
The number of vehicules  condition when set to 0 does to count locomotives does not work.
See the example attached in PDF.
Basically I want to check that the train in AK 22 has no locos .
Fot this  logic condition must count loc = 0 on ak 22.
The problem is : the loco is seen as occupying 22 but it si counted as 0 and conditions is seen as true when it is false.
It work like this on all my vehicules counters when set to 0 .
Are you aware of this ?
One more strange thing : it works time to time in simulation mode.
I am loosing my french with this issue.

Thanks for your help.
If needed I will attach my project.
Regards.

Zu diesem Beitrag gehören 1 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #1 am: 12. November 2015, 17:27:22 »
Hello
This , to me sounds like a bug.
Can anyone from the developers side have a look at it or at least some coments?
Thanks.
Regards.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline Markus Herzog

  • Administrator
  • Senior-Mitglied
  • Beiträge: 16899
  • Ort: Rheinland Ort bei GoogleMaps suchen de
  • WDP-Entwickler
Re: Logic conditions in tour automatic ZFA
« Antwort #2 am: 17. November 2015, 22:10:50 »
Hello ebarra,

Sorry for the delay. I am busy at the moment (business trips and so on). I tried it, but on my layout it looked different.
Unfortunally I will not have time at the moment to invest more time in this. Maybe next week again.

Regards
Markus
  • Win-Digipet-Version:
    WDP 2021.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

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #3 am: 20. November 2015, 18:39:23 »
Hello  Markus,
Thanks for your reply.
I am impatient to see your reply.
In fact I do have some inconsistency with logical conditions which time to time stops working.
The cont loc issue is permanently not working.

Regards
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #4 am: 28. November 2015, 21:38:52 »
Hi Markus,
I made some more investigation to the case I introduced into thid subject and found the following in the example attached.
I used as you do into one of the demo file of windigipet the count any loco on C22 and it works in simulation mode while the count locomotives function does not work when adding or removing a loco on the ITDN.

Best regards.

Zu diesem Beitrag gehören 1 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline Markus Herzog

  • Administrator
  • Senior-Mitglied
  • Beiträge: 16899
  • Ort: Rheinland Ort bei GoogleMaps suchen de
  • WDP-Entwickler
Re: Logic conditions in tour automatic ZFA
« Antwort #5 am: 29. November 2015, 13:18:49 »
Hi ebarra,

Now I do understand.

In the current implementation programmed by me a condition like "Number of locos equals zero on contact 22" does only cover "A train with no loco (only waggons) is on contact 22", but not "No train or loco is at all on contact 22". I intended this condition espacially for shunting where it would be necessary how many locos or waggons a train consists
Maybe I will extend the logic in the future so your idea will be covered too. At the moment you can check if a train number display does contain any loco or train by using the condition "Train number 0 on contact 22" (train number 0 stands in this condition) for any train. This condition will be true if any train/loco has been registered to this train number display. If you put now this condition in a Not-Folder you will exactly get the opposite result.

Regards
Markus
  • Win-Digipet-Version:
    WDP 2021.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

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #6 am: 29. November 2015, 22:57:53 »
Hi Markus,
My intend was exactly what you meant: checking if the train on C22 had a loco or not.

If I now remove the loco from my train compostion (only wagons remaining ), I now get THe any loco on c22 = true which is now false.  See the picture attached .
I am today doing those things from my office version but I am nearly sure it does not work on the layout version.
I will have to try when I will go back to my club.
Regards
Eric.

Zu diesem Beitrag gehören 1 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #7 am: 27. April 2016, 20:52:46 »
Hi Markus,
Back to one of my previous question,
I still can not get the test condition working properly to check if my train has or not a loc in the ITDN?
See attached picture.
Thanks to clarify this .
regards.

Zu diesem Beitrag gehören 1 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline Markus Herzog

  • Administrator
  • Senior-Mitglied
  • Beiträge: 16899
  • Ort: Rheinland Ort bei GoogleMaps suchen de
  • WDP-Entwickler
Re: Logic conditions in tour automatic ZFA
« Antwort #8 am: 27. April 2016, 23:15:24 »
Hi ebarra,

as explained before, only possible checks are:
-is there any locomotive or train on the contact (the program does not dinstiguish if loco, train with loco or without loco) using the condition "Loco number 0 on contact 22"?
-are there in a train x locomotives using the "Count ..." condition

To be honest I do not understand what can not be done with this conditions:
1. If you want to check if there is a train on a contact containing 0 locomotives use "Count locos equal 0 on contact x"
2. If you want to check if there is any locomotive or train on a contact use "Loco number 0 on contact x"
3. If you want to get the condition true if there is a train with 0 locomotives is on the contact or if there is no train on the contact, then you can create the example condition in expert mode according to my attached picture:
-the upper part of the shown OR-folder will get true if no train, waggon or locomotive are on the contact at all and due to the placement in the OR-folder this condition will be true
-the lower part of the shown OR-folder will get true if there is a train on the contact and the number of locomotives in this true is 0

Regards
Markus

Zu diesem Beitrag gehören 1 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.
  • Win-Digipet-Version:
    WDP 2021.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

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #9 am: 28. April 2016, 10:50:14 »
Dear Markus,
I fully agree with you.
What I want to do is case one you described in your last answer.
What I do not understand is the results I got in the file I attached in my previous post.
With th steam machine picture : the count loco = 0 should be false? Correct?
 If not in the bottom screen shoot as there is only waggons on the train display so I should have a state change? Corect?
Thanks.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.

Offline ebarra

  • Senior-Mitglied
  • Beiträge: 239
  • Ort: Monaco Ort bei GoogleMaps suchen mc
Re: Logic conditions in tour automatic ZFA
« Antwort #10 am: 28. April 2016, 19:49:14 »
Markus,
OUAHOU!!!! I finally got it.
THe count loco is in a train. If loco alone does not work!!!
I was expecting tha a loco alone would be seen as one.
Thanks
Regards.
  • Win-Digipet-Version:
    2015
  • Anlagenkonfiguration:
    Intellibox and simultaneous 2 and 3 rails.