Mick Posted June 21, 2017 Report Share Posted June 21, 2017 Hello! I make a program for a battery charger. For charge the battery i need two voltage level (Floating at 270V and Boost at 276V) : The piece of programm is in the attached file. I use two set point ( I can increment or decrement the two set point on the screen) : - MI20 : Floating voltage set point - MI22 : Boost voltage set point Then, i use a SUB function to obtain MI4 : the difference between MI22 and MI20 Next , i use a ADD function to obtain MI23 : The sum of MI20 and MI4 The MI23 is linearized and send to the analog output MI21 This doesnt work because the out of the math function not include the state of the bit MB 31 at the input. In fact, i would send 270V (MI22) to the analog output when the MB31 is off, and send 276V (MI20) to the analog output when the MB31 is ON. Would anyone have a solution? And sorry for my english! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.