If you're going to do as danw suggested, you should first convert the analog inputs to REAL or DINT variables. The raw data range in the %AI variables could be big enough that when you add two together, the result is greater than +32767, in which case you'll get an incorrect result if you add INT variables.