CALC block

Hi,

Is it possible to change the out(n) of a CALC block with 16 outputs based on an Input?

‘OUT(‘IN1.CV’).CV’ := ‘IN2.CV’;

Thanks

  • Best I can tell is with IF statements:

    IF IN1 = 1 THEN

    OUT1 := IN2;

    ENDIF;

    IF IN1 = 2 THEN

    OUT2 := IN2;

    ENDIF;

    etc.

  • Not as you have indicated. The out parameters are not an array, but are individual parameters.

    You cannot use the syntax indicated above. You'll have to have an explicit assign statement. Use IF THEN logic to conditionally execute the statement needed: IF IN1 = 1 then OUT1 := IN2 end if.

    Andre Dicaire