Network variable formats – Echelon LNS DDE Server User Manual
Page 74
-p bool
For a variable monitored by polling, this option specifies
whether the poll messages should be sent with priority
service. May be set to True or False. The default is the
setting specified for the network in the Network
Configuration dialog.
-r nn
Specifies the retry count to be used for request/response
service used to poll network variables, where nn is a number
between 0 to 15. The default is the setting specified for the
network and is tool dependant.
-s ss
Specifies the protocol service to be used when updating the
network variable from the LNS DDE Server. The available
settings are ACKD (acknowledged), UNACKD
(unacknowledged), or UNACKD_RPT (repeated). The default
is the setting specified for the network and is tool dependant.
-t format_name
Specifies a format name to use for formatting the network
variable as described in the next section. If this option is not
specified, a format is selected by LNS. Use this option and
specify a format name to change the format. The format
name can be one of the five built-in formats (INTEGER,
DISCRETE, REAL, STRING, or RAW), a format name from the
standard resource file (for SNVTs and SCPTs), or a format
name from any user resource file. If the format name is RAW,
data will be returned in raw format.
When changing the data format using this parameter, the
change is applied to the entire data value. This may cause
unexpected results. For example, when reading a network
variable which is a floating point value, and changing the
format to an integer (-t INTEGER), the formatted value will
be an integer interpretation of the entire floating point
number, not just the integer part. The same thing applies
when changing the data type to floating point (-t REAL) for
an integer value. Make sure formats are compatible with the
network variable value.
Note:
Floating point values must be between –3.4E38 and
+3.4E38.
Network Variable Formats
Network variables have a default format stored in the LNS database. An LNS based
network tool such as the LonMaker browser can change the default format for any
network variable by changing the DSFormatType for the network variable in the
LNS database. For example, the LonMaker browser allows a user to assign a custom
format to any network variable by right-clicking the value and selecting the Change
5-4
Reading and Writing Network Variables