Reply To: Wonderware script subtraction problem!

#3697
MrincredibleMister Incredible
Participant
  • Topics: 8
  • Replies: 16
  • Total Posts: 24
Karma: 48
Rank: Padawan

Hi Marc,

It is difficult to say from your post here without seeing your script etc. Have you considered doing the math in the controller? Basically create three integer words, i.e., Flow_Old, Flow_New and then a Flow_Result that will store the result of the subtraction between Flow_Old and Flow_New. Then just send the result to inTouch which you say is working no problem.

Probably not the answer you’re looking for but maybe a work-around until you get your script sorted out.

Cheers!