Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

OSCAT blinds and automatic calibration

dawidr
2021-03-25
2021-03-26
  • dawidr - 2021-03-25

    I'm using OSCAT library to control blinds. Everything works fine but I would like to get rid of automatic calibration after power failure built in the BLIND_CONTROL_S function block.

    As it is written in the last sentence the "The automatic calibration however can be prevented if both inputs UP and DN are FALSE". And it actually stops the blinds to be calibrated (basically moving up) but afterwards I can't control the blinds any more - UP and DOWN buttons are not working.

    BlindControl(
    UP := FALSE,
    DN := FALSE,
    S_IN := BlindSecurity.STATUS,
    PI := BlindSecurity.PO
    );

    BlindControl.UP := BlindSecurity.QU;
    BlindControl.DN := BlindSecurity.QD;

    Anyone has successfully turn it of?

     

    Last edit: dawidr 2021-03-25
  • ojz0r - 2021-03-26

    Without knowing further details i would assume that the prevention is only temporary and when you release the forced FALSE it will probably do a calibration cycle.
    The text in the picture says "..to move up all blinds, which is undesired some times in your absence." - so once you are present again you can do a controlled reset with calibration?

     
  • dawidr - 2021-03-26

    I was trying almost everything with no luck. With such an approach buttons works fine:

    BlindControl(
    UP := BlindSecurity.QU,
    DN := BlindSecurity.QD,
    S_IN := BlindSecurity.STATUS,
    PI := BlindSecurity.PO
    );

    But in this case there is an automatic calibration which I don't like. All blinds are going up and then down. I'm going to move in to new house within a week, I will be modifying my program a lot a the beginning , I don't want the blinds to move witch each download.

    Witch such approach the calibration is turned off (as suggested in the last sentence of the documentation):

    BlindControl(
    UP := FALSE,
    DN := FALSE,
    S_IN := BlindSecurity.STATUS,
    PI := BlindSecurity.PO
    );

    BlindControl.UP := BlindSecurity.QU;
    BlindControl.DN := BlindSecurity.QD;

    But then buttons doesn't work any more.

     

Log in to post a comment.