Echelon i.LON 100 e2 Internet Server User Manual

Page 191

Advertising
background image

i.

LON 100 Internet Server Programmer’s Reference

12-11

SET_STATE >100.0 0xFF

0

SET_STATE <=100.0 (setting value) 0

SET_NUL N/A 0xFF

0

12.2.1.2.1.8 SNVT_state_TO_16xSNVT_switch

Use this Type Translator Rule to translate a data point of type SNVT_state to multiple
output data points of type SNVT_switch. When you use this rule, you must reference the

SNVT_state input data point that is to be translated by its <UCPTpointName> in the

<InDataPoint> element.

The 16 SNVT_switch data points to store the result of the translation are signified by a list of

<InDataPoint> elements in the <Data> parameter. Each element must contain two

properties: <UCPTpointName> and <UCPTindex>. The <UCPTpointName> must identify a
SNVT_switch data point. The <UCPTindex> must be in the range 0-15.
Each output data point will be assigned a value based on its index number, and the value of
the corresponding field in the input data point. For example, the output data point using

index number 0 within the Type Translator will be assigned a value based on Bit0 of the

input data point. The output data point using index number 7 within the Type Translator
will be assigned a value based on Bit6 of the input data point, and so on.
If the value of a BitX field is 0, then the applicable SNVT_switch data point will be assigned

the value 0.0 0. If the value of a BitX field is 1, then the applicable SNVT_switch data point
will be assigned the value 100.0 1.

12.2.1.2.1.9 SNVT_switch_TO_SNVT_lev_disc

Use this Type Translator Rule to translate an input data point of type SNVT_switch to an

output data point of type SNVT_lev_disc. When you use this rule, you must reference the
SNVT_switch input data point that is to be translated by its <UCPTpointName> in the

<InDataPoint> element. You must reference the SNVT_lev_disc data point to store the result

of the translation by its <UCPTpointName> in the <OutDataPoint> element.

The SNVT_lev_disc output data point will be assigned an enumeration based on the value of

the state and value fields of the input data point each time a translation is made. The value
assigned to the output data point follow the rules described in Table 68.

Table 68 SNVT_switch_TO_SNVT_lev_disc

If the SNVT_switch Input Field Values Are....

State value

Then the SNVT_lev_disc Output Data Point Will

Be Set To...

0 N/A

ST_OFF

1 0.0

ST_OFF

1 1.0-25.0

ST_LOW

1 26.0-50.0

ST_MED

1 51.0-75.0

ST_HIGH

1 76.0-100.0

ST_ON

1 >100.0

ST_NUL

Advertising