FB_HVACMux8

This function block evaluates the FIFO memory from FB_HVACRedundancyCtrlEx. The inputs are mapped to the respective outputs according to a FIFO table.
If this function block is used, for example, to control speed-controlled fans, then the setpoints from a controller cascade can be assigned to the respective outputs (drives). To do this, the setpoints are applied to the inputs of FB_HVACMux8. The processing takes place with the aid of information from the FIFO memory (which drive is running and in which order did switch-on take place).
Example:
There are 4 drives with speed controllers (SetFC1 – SetFC4), of which a maximum of three should be running. The control range of 0 to 300% is divided into 3 setpoints (Set1 to Set3). The output arrFiFo of FB_HVACRedundancyCtrlEx supplies FB_HVACMux8 with the assignment description. In the example the array contains: 2,3,0,0,0,0,0,0. Therefore Q2 was switched on first and then Q3. As a result rIn1 is now output on rQ2 and rIn2 on rQ3 in FB_HVACMux8.
VAR_INPUT
arrFiFo : Array[1..8] of INT;
rIn1 - rIn8 : REAL;
arrFiFo: Contains the assignment table with a maximum of eight values. The first value indicates where the first input was copied to, the second value where the second input was copied to and so on. Identical values are permitted. No assignment takes place with "0".
rIn1 - 8: Setpoints to be mapped.
VAR_OUTPUT
rQ1 - rQ8 : REAL;
bErr : BOOL;
rQ1 -rQ8: Actuator setpoint, input value mapped according to the FiFo table.
bErr: Value range in the FiFo table was exceeded; 0 to 8 is permissible.
Requirements
Development environment | required library | required function |
---|---|---|
TwinCAT 3.1 build 4022.16 or higher | Tc2_HVAC V3.3.1.0 | TF8000 | TC3 HVAC V1.0.0.0 |