Dear BS2 fans,
I need your urgent help on this, I am running out of
time for this urgent programming requirement.
How to program the equation 1,2,3,4 and 5 into Bs2
code ?
The defination for 'Process Simulator':
This 'Process Simulator' will connect to a PID
Controller.
X=Input of 'Process Simulator' = Output from PID
Controller
X1 = (X + D)
-----------------------------------------------[1]
X2 = (X+D) (1-exp(-t/T1)) , T1,T2,T3 are delay values
---------[2]
X3 = X2.(1-exp(-t/T2))
----------------------------------------[3]
X4 = X3. Ka.(1-exp(-t/T3)), Ka rate of Change of input
gain ---[4]
Y= X4-0.5, Deduct 50 OR 3V
------------------------------------[5]
t =instantaneous time value, when X and D are changed,
may use AD
D= Disturbance Input
Ka=2=System Gain=Gain of rate of Change of X & D
X,D,T1,T2,T3 are set by hardware (rotation selector
switch as SW3,SW4,SW5 and SW6),
Ka and 0.5 are set by software.
Y=Output of 'Process Simulator'= Input of PID
Controller
t =instantaneous time value, when X and D are changed,
may use AD sampling time period , t = 0?.?
Thank you for the help.
Best regards.
Kam
=====
Thank you.
Best regards.
Kam Soon Cheng
=====
Thank you.
Best regards.
Kam Soon Cheng
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush