InTouch Example
Description
This document describes how to work with the InTouch example. It contains the
following sections:
Using the LNS DDE Server Examples 2
Using the Example LNS Database 2
Sequence of Operation 4
Using the InTouch Example 6
WonderWare InTouch Client Example 6
InTouch Example Introduction 6
InTouch Overview 7
InTouch Example Tutorial 8
InTouch Animation and I/O Tags 8
Network Variable Monitoring 13
Changing the Default Formula 15
Display Unit Conversion 15
Using the InTouch DDE Link Wizards 16
Other Topic Types 19
© 1998 Echelon Corporation. Echelon, LON, L
ON
W
ORKS
, LonBuilder, L
ON
M
ARK
, LonManager, LonTalk, Neuron, 3150, 3120, and the Echelon logo are trademarks
of Echelon Corporation
registered in the United States and other countries., LonMaker, is a trademark of Echelon Corporation. Other brand and product names are trademarks or registered trademarks of their
respective holders.
2
InTouch Example Description
Using the LNS DDE Server Examples
Two example applications are provided with the LNS DDE Server. They are an InTouch 7.0
application and an Excel 97 spreadsheet. These examples are
installed if you select the
Example
applications
option during the LNS DDE Server installation procedure. You can
rerun the LNS DDE Server installation program and select the
Example applications
option
if you did not initially install the examples.
Using the Example LNS Database
The LNS database for both examples was created using the LonMaker for Windows Integration
Tool. A LonMaker backup file is provided in the
LNS DDE Test.zip
file in the
LNSDde
folder.
This backup file contains a LonMaker drawing and an LNS database
for use with the Excel and
InTouch examples. The following figure is the LonMaker drawing for the LNS DDE Test example.
InTouch Example Description
3
Digital
SW- 1
Digital
SW- 2
Digital
SW- 3
Digital
SW- 4
D1
D2
D3
D4
Digital_Out
Mode_Out
Mode Simulator
Digital
Enable
Mode
Feedback
InWarmup
Digital
Enable
Mode
Feedback
InHeat
Digital
Enable
Mode
Feedback
InAuto
Digital
Enable
Mode
Feedback
LED 4
LED 1
LED 2
LED 3
Analog
OA Temp
Analog
SA Temp
A1
A2
A_Out
SA Temp Reset
Auto_Man
Enable
Mode
Man_Value
PV
SP
Auto_Man_Out
CV
SP_Out
SA
Temp PID
Analog
Enable
Mode
Feedback
Meter
Analog
Enable
Mode
Feedback
HW Valve Actuator
Enable
Enable
Enable
Mode
Mode
Mode
Mode
Mode
D3 D2 D1
Mode
0 0 0
OFF (6)
0 0 1
MRNG_WARMUP (2)
0 1 0
HEAT (1)
0 1 1
HEAT (1)
1 0 0
AUTO (0)
1 0 1
AUTO (0)
1 1 1
AUTO (0)
Data_In
Data_Out
TransTempP
Data_In
Data_Out
TransTemp
Out:[HVAC_MRNG_WRMU
P]
Channel 2
Channel 1
LNS Network Interface
RTR- 1
AI- 1
AO- 1
DI- 1
DO- 1
SCH- 1
4
InTouch Example Description
The LNS DDE Test example includes 5 application
devices and a router, which matches the hardware in a
LonPoint Demo Kit. If you do not have LonPoint devices to use with the examples, you can still open the
examples in engineered mode to see Excel and InTouch usage examples for the LNS DDE Server.
Following is a list of the 5 application devices defined in the LNS DDE Test example:
•
AI- 1
. A LonPoint AI-10 Analog Input Interface Module.
Used to monitor a simulated
temperature and a temperature setpoint dial.
•
AO- 1
. A LonPoint AO-10 Analog Output Interface Module. Used to control a simulated hot
water valve acuator, and an analog meter monitoring the input to the valve.
•
DI- 1
. A LonPoint DI-10 Digital Input Interface Module. Used to monitor 4 input switches.
Three of the switches are used to control the system mode, simulating
the output of a system
mode generator. The fourth switch is used as a system enable.
•
DO- 1
. A LonPoint DO-10 Digital Output Interface Module. Used to control 4 LEDs. Three of
the LEDs are used to display the system mode. The fourth LED is used to display the system
enable status.
•
SCH-1
. A LonPoint SCH-10 Scheduler Module. This device is not used in the example. Its
operation is simulated by the mode simulator on the DI- 1 device.
These five devices contain L
ON
M
ARK
objects that are shown as functional
blocks on the LonMaker
drawing. Each functional block has network variable inputs and outputs that are shown as triangles
on the functional blocks. These network variables are connected as shown on the LonMaker
drawing. The following list summarizes the Sequence of Operations for the LNS DDE Test
example.