Set ControllerType input of B31_REVERSE_ON_OFF_CONTROL_SEQUENCE



  • Re: How to set CONTROLLERTYPE to heating

    Hi Martin
    I'm againg on the same topic after some months.
    I'm not able to set (I'm using an ST program) the value of input "ControlType" of block B31_REVERSE_ON_OFF_CONTROL_SEQUENCE.
    I search into help but there is no example of ST program that explain how to set the input.

    I Tried

    PROGRAM B31_TEST
    VAR IN1, IN2:REAL;
    O1: BOOL;
    FB: LIB.CORE.V1_0.B31_REVERSE_ON_OFF_CONTROL_SEQUENCE;
    END_VAR
    FB(X:=IN1,CONTROLLERTYPE:=COOLING, W:= IN2);
    O1:= FB.OUT;
    END_PROGRAM

    but
    i get the error "can not find the object 'COOLING' in the current context"

    Antonio