Your calc record example is good.
Assume
record(calc, "ramp")
{
field(INPA, "ramp")
field(CALC, "A+1")
field(SCAN, "1 second")
}
In this case you _can_ display the record in a TextEntry field.
Most of the time, the record counts up on its own.
But you can also enter "0" or "1000" to reset the ramp, or move it ahead.
Somewhat tricky to decide inside the IOC if the VAL field should allow write access or not.
It's really up to the person who creates this database to decide:
Do I add access security to make it read-only?
Or do I allow writing, but only to those in-the-know, because on the displays I present it with a Text Update?
Or do I intent for this to be written by mere mortals, so I use a Text Entry on the display?
-Kay
|