ezeio2:expref:this

Holds the index number of the current field or alarm

Description

THIS

THIS is useful to self-reference a field or alarm. For example to let a field self-increment, the following code can be used:

f(THIS)

THIS is also useful in reverse math expressions to scale the field value to a suitable register value. This example scales a 0-10 mA value in the field to uA and offsets it to industry standard 4-20mA.

f(THIS)*1600+4000

Parameters

Not applicable

Return value

Returns the index value of the current field or alarm.

  • ezeio2/expref/this.txt
  • Last modified: 2019-09-25 00:20
  • by andreh