function [stat,post] = blksum(path,prop,bstr,bint,bflt,parent,name)
%BLKSUM Specifies a summation and subtraction of vectors.
%

% Initial coding by A S Bozin, 6-7-97
% Copyright 1997-2000 The MathWorks, Inc.
% $Revision: 1.5 $ $Date: 2000/06/14 16:11:17 $

   stat = 0;			   		   % Error flag
   nInputs = bint(5);
   nOutputs = bint(6);
   %
   % Build mux and demux if necessary
   %
   nChannels = nInputs/nOutputs;
   channels = zeros(1,nChannels)+nOutputs;
   [post,rect] = blkio('port',channels,nOutputs,prop,path);
   %
   % Get the input channel signs
   %
   indInt = bint(18);
   indSign = bint(indInt+1)+indInt;		   % Skip icon data
   chRange = 1:nChannels;
   signs = char(44*ones(1,nChannels)-bint(indSign+chRange));
   %
   % Summation block
   %
   bh = add_block('built-in/Sum',path,...
		  'ForegroundColor',prop.fgColor,...
		  'BackgroundColor',prop.bgColor,...
		  'Orientation',prop.orientation,...
		  'DropShadow',prop.border,...
		  'Position',rect,...
		  'Inputs',signs);
   %
   % Connect the current block with the mux and demux blocks (if any)
   %
   blkio('line',channels,nOutputs,post,parent,name);
   return					   % Last card of BLKSUM
