User Value: 10 V
Calc: 0, 1, 2, .... 10
My Problem: Let's say the current value (hardware device) is 8 V. If I I restart the IOC and put a new value like 10V i want to continiou ti increase 8, 9, 10V. But The after restarting the IOC my first Calc-Value is 0.
Current Value: 8V
SetVolt: 10V
Calc: 0, 1, 2, 3, 4 ... 10.
Is there other possibility? And my second problem is I want to make a seq-record to increase after 30, 60 and 90 seconds.
For example (epics and css):
User Volt Selection: 1000V, 1500V and 2000V
User Slew Rate Option: 5V, 10V, 15V / per Time
Time: 30 seconds, 60 seconds, 90 seconds
record(ao, "SetVolt") {
field(EGU, “V”)
field(LOPR, “0”)
field(HOPR, “28”)
field(DRVH, “28”)
field(DRVL, “0”)
field(VAL, “0”)
}
record(ai, "SetVoltReadback"){
field(DTYP, “stream”)
field(INP, "@xyz.proto read($(xyz)) $(device)")
field(SCAN, “1 second”)
field(FLNK, "VoltCalc PP")
}
record(calcout, "VoltCalc") {
field(DESC, “Write Voltag Out”)
field(SCAN, “1 second”)
field(CALC, "A:= ((C<(A-B)) ? (A-B) : ((A+B)>C ? C : (A+B)));A")
field(INPA, "VoltCalc.VAL")
field(INPB, “SlewRate”) /* standard:1 */
field(INPC, "SetVolt")
field(OUT, "WriteOut.VAL PP")
field(OOPT, “On Change”)
field(DOPT, “Use CALC”)
}