Kris
28.02.07, 00:21
I just came across an "unexpected" behaviour of the Dacom 10-fach vergleicher
(EW : Eingangswert , VW*: vergleichswert)
EW=VW1 à Ausgang 1 = 1
EW=VW2 à Ausgang 2 = 1
…
This is what I would expect, however what I didn’t expect was that Ausgang 1 stays on 1 when the EW is no longer equal to VW1. The other ‘Ausgangen’ are not being reset to 0 if the EW is no longer equal to VW*.
I would expect that an Ausgang was set to 0 if a condition was no longer being met.
When you check the logic, it does say:
5012|1|"(EN[1]==EN[2])"|"1"|""|1|0|0|0
5012|1|"(EN[1]==EN[3])"|"1"|""|2|0|0|0
…
So it is working as designed,
but I would expect the logic to say:
5012|0|"(EN[1]==EN[2])"|"1"|""|1|0|0|0
5012|0|"(EN[1]<>EN[2])"|"0"|""|1|0|0|0
5012|0|"(EN[1]==EN[3])"|"1"|""|2|0|0|0
5012|0|"(EN[1]<>EN[3])"|"0"|""|2|0|0|0
Am I missing something important on the HS's Logical way of thinking here ??? :confused: The "ereignisgesteuerte" logik has fooled me before, so I'm not sure.
tx, kris
(EW : Eingangswert , VW*: vergleichswert)
EW=VW1 à Ausgang 1 = 1
EW=VW2 à Ausgang 2 = 1
…
This is what I would expect, however what I didn’t expect was that Ausgang 1 stays on 1 when the EW is no longer equal to VW1. The other ‘Ausgangen’ are not being reset to 0 if the EW is no longer equal to VW*.
I would expect that an Ausgang was set to 0 if a condition was no longer being met.
When you check the logic, it does say:
5012|1|"(EN[1]==EN[2])"|"1"|""|1|0|0|0
5012|1|"(EN[1]==EN[3])"|"1"|""|2|0|0|0
…
So it is working as designed,
but I would expect the logic to say:
5012|0|"(EN[1]==EN[2])"|"1"|""|1|0|0|0
5012|0|"(EN[1]<>EN[2])"|"0"|""|1|0|0|0
5012|0|"(EN[1]==EN[3])"|"1"|""|2|0|0|0
5012|0|"(EN[1]<>EN[3])"|"0"|""|2|0|0|0
Am I missing something important on the HS's Logical way of thinking here ??? :confused: The "ereignisgesteuerte" logik has fooled me before, so I'm not sure.
tx, kris