Can I use Math to control AO from an Analog In channel instead of Alarms??
I am currently using a Siriusi Slice with AO, DO, AI and DI channels. I am controlling the an electrically controlled hydraulic directional valve to stroke and de-stroke load sensed piston pump to cycle hydraulic accumulators between 2000 and 300 psi.
I am using a pressure traducer to read manifold pressure to and use that reading to turn on on and off a relay to shift the solenoid. I am using one analog in and 2 alarms to turn two set 2 digital outputs to either one or zero. Then based off of the that value I turn one the analog out to 10 votls on and the other to off. I am using 2 alarms to one turn one or the other DO on/off. I am using 2 alarms so that I can overlap the time that the AO is on to reduce the cycle time. I am using real time in the performance menu with AO set to a .1 second buffer with 1% to minimize response time.
a.) I do not want to use alarms because I wold like to use them to set up email alerts if my test stand has an issue.
b.) Can I use math channels to do the same. I have tried this method without success.....
a.) Picture of performance settings
b.) I have attached my setup file and would appreciate any help.
Software Test Engineer I
I attached a setup created in simulation mode that should reproduce the alarm channels using math. For the test input channel I used an user inputs channel. In math I wrote all the conditions from the alarms using if sentences (Cond 1, cond 2, stop cond, ...) and then using one long if function I got the output for each alarm. You need to move the controler of the control channel slowly around the condition, because I only gave +/-10 psi tolerane around the condition and control channel change is instant (so we can detect the change). Please check the attached setup and if there need to any corrections to it or if you have any questions please let me know.