ezeio2:expref:this

This is an old revision of the document!


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.1569370802.txt.gz
  • Last modified: 2019-09-25 00:20
  • by andreh