anchor.diff:    if ((inp.plus = isOn) and (inp.minus = isOff)) then
      begin
       //je-li plus vstup 1
  -    if (Self.VyhStav.staveni_minus) then Exit;
  -    
  -    if (Self.VyhStav.staveni_plus) and (not Self.VyhStav.staveni_minus) then
  +    Self.VyhStav.polohaReal := plus;
  +    if (Self.VyhStav.staveni_minus) then Exit();
  +
  +    if (Self.VyhStav.staveni_plus) then
        begin
         Self.VyhStav.poloha := plus;
         Self.VyhStav.staveni_plus := false;
   
         // aktualizujeme spojku, aby pri volani udalosti byla v konzistentnim stavu
  -      if (Self.VyhSettings.spojka > -1) then
  -       begin
  -        Blky.GetBlkByID(Self.VyhSettings.spojka, Blk);
  -        if (Blk <> nil) then Blk.Update();
  -       end;
  +      if (Self.spojka <> nil) then
  +        Self.spojka.Update();
   
         if (Assigned(Self.VyhStav.staveniOKCallback)) then
          begin
  
positive.code:      and (Self.Zaver <> TZaver.staveni)) then
       begin
        for oblr in Self.OblsRizeni do
          oblr.BlkWriteError(Self, 'Není koncová poloha : '+Self.GlobalSettings.name, 'TECHNOLOGIE');
        JCDb.RusJC(Self);
       end;//if Blokovani
  
  
negative.code: 
  procedure TBlkVyhybka.UpdatePoloha();
  var inp, spojkaInp: TBlkVyhInputs;
      oblr:TOR;
      spojka: TBlkVyhybka;
   begin
  