Professional Documents
Culture Documents
NET
How to use Adam.NET Library to develop
WinCE Application
Kuei Chen
ACL IAG Technical Support Team
2006/8/4 1
Agenda
Introduction
-- UNO+ADAM modules Architecture
-- What is Framework Class Library?
Setup Develop Environment
Building connection between Host PC and
UNO-2160
-- with TCP/IP support (SDAuthUtilDevice.exe )
Programming (COM port example)
-- use Adam.NET
2006/8/4 2
Architecture VS.NET +
AdamNET
UNO
de m
Null Mo
Host PC
RS-232/485 Ethernet
……………..……… ……………..………
2006/8/4 3
Develop Tools
HW requirement SW requirement
2006/8/4 4
Summary
• Framework Class Library
As you have probably figured out from its name, the class
library is merely a collection of classes and related
structures that can be leveraged as base building blocks
for application development. As such, it is safe to think of
this collection of classes as an API: They are a boundary
interface between our applications and the operating
system. The class library is a massive library, and
Framework Class Library can be extended.
2006/8/4 5
Microsoft .net framework
V isual
C ++ C# JS cript® …
B asic
V isu aall S tu d io .N E T
Adam.NET
C Library
om m on Langu age S p ecificatio n
.N E T Fram ew ork
2006/8/4 6
Adam.NET Classify
• Advantech.Adam.dll
-- Advantech.adam.Com (control ADAM-4K/5K component)
-- Advantech.adam.Socket (control ADAM-5KTCP/6K component)
• Advantech.Common.dll
-- Parent Class of Advantech.Adam
• Advantech.Protocol.dll
--For ModBus protocol function
• Advantech.CF.Graph.dll
-- For graphic control component
2006/8/4 7
The version of Adam.NET
• It is not released version (In developing)
• We only support on WinCE.NET up to now
• Now it is a ZIP file, need to un-zip to
specified path
• More and more enriched in the feature.
2006/8/4 8
Adam.NET Feature
• Short user’s development circle
• Easy to maintain application
• More User Friendly and visually
• Class framework
2006/8/4 9
New a Project (VB.NET)
z use “Smart Device Application Wizard” to New a VB.NET
Project
2006/8/4 10
Choose a Platform
2006/8/4 11
IDE Framework
2006/8/4 12
Building Connection(1)
2006/8/4 13
Building Connection(2)
2006/8/4 14
Building Connection(3)
• Please execute “SDAutoUtilDevice.exe” to
list UNO’s IP Address
2006/8/4 15
Building Connection(4)
2006/8/4 16
Building Connection(5)
2006/8/4 17
Complete the connection
2006/8/4 18
Connect to Device
2006/8/4 19
Show status
2006/8/4 20
Add Adam.NET component to
our project
2006/8/4 21
Add graphic control component
2006/8/4 22
Select DLL
2006/8/4 23
6 Graphic control component
2006/8/4 24
List on Toolbar
1. AdamIndicator
2. AdamLight
3. AdamMeter
4. AdamNumLed
5. AdamSwitch
6. AdamTrend
2006/8/4 25
Add Reference
• Add Advantech.Adam and Advantech.Common
into project
2006/8/4 26
Select Class Library
2006/8/4 27
List on reference
2006/8/4 28
Programming
• After setting all environment, including
“building connection”, “Graphic
component”, “Reference”…so on.
• Use Adam.NET to edit source code
2006/8/4 29
Advantech.Adam.Com for COMPORT
2006/8/4 30
Advantech.Adam.Com for COMPORT
2006/8/4 31
Advantech.Adam.Com for COMPORT
2006/8/4 32
Reading AI Input
z AdamCOM.AnalogInput(Index)
-- Index is ID number
z AdamCOM.AnalogInput(Index).GetValue(channel)
-- Channel is channel number
2006/8/4 33
AI Display
• AdamMeter_Room.NeedleValue()
z AdamNumLed.DigitNumber
2006/8/4 34
Others
• Configuration
– AdamCOM.Configuration()
2006/8/4 35
Hand on beginning
2006/8/4 36
Thank you!!!!!
2006/8/4 37