beautypg.com

Analogfbset, Analogfbset -14, 3 analogfbset – Echelon i.LON 100 e2 Internet Server User Manual

Page 151

background image

9.2.1.3 AnalogFBSet

Use the AnalogFBSet function to create new Analog Function Blocks, or to overwrite the
configuration of existing Analog Function Blocks. The Analog Function Blocks to be created

or written to are signified by a list of elements in the parameter. The

properties that you must define within each element are the same, whether you
are creating a new Analog Function Block or modifying an existing Analog Function Block.

The previous section, AnalogFBGet, describes these properties.

NOTE: When modifying an existing Analog Function Block, any optional properties left out

of the input string will be erased. Old values will not be carried over, so you must fill in every

property when writing to an Analog Function Block, even if you are not changing all of the
values.
You can create up to 20 Analog Function Blocks per

i.

LON 100. The AnalogFBSet function

will generate the AnalogFB.XML file in the /root/config/software directory of your

i.

LON 100,

if the file does not already exist.

The example below uses the AnalogFBSet function to create an Analog Function Block that

calculates the maximum of the values of two input data points, NVL_nviClaValue1 and

NVL_nviClaValue2, and stores the result in NVL_nviClaValue1.

Parameter



Bielefeld AFB 1

100

10.0

80.0

nInterval>

OV_DEFAULT

0

0.0

0

value

0


1

value

0


When creating or modifying an Analog Function Block with AnalogFBSet, you may want to
use output from AnalogFBGet as the basis for your parameter. You would then only

need to modify the values of each property to match the new configuration you want, as

opposed to re-creating an entire string like the one shown below, to generate your input.

FN_GT

FN_MAX

0.0

CPTindex>

NVL_nviClaValue_1

NVL_nviClaValue_2

NVL_nvoClsValue_2

i.

LON 100 Internet Server Program

9-14

mer’s Reference