TPC-66 68 User Manual v2
TPC-66 68 User Manual v2
User Manual
Copyright
The documentation and the software included with this product are copy-
righted 2008 by Advantech Co., Ltd. All rights are reserved. Advantech
Co., Ltd. reserves the right to make improvements in the products
described in this manual at any time without notice. No part of this man-
ual may be reproduced, copied, translated or transmitted in any form or
by any means without the prior written permission of Advantech Co., Ltd.
Information provided in this manual is intended to be accurate and reli-
able. However, Advantech Co., Ltd. assumes no responsibility for its use,
nor for any infringements of the rights of third parties, which may result
from its use.
Acknowledgements
IBM, PC/AT, PS/2 and VGA are trademarks of International Business
Machines Corporation.
Microsoft Windows and MS-DOS are registered trademarks of
Microsoft Corp.
All other product names or trademarks are properties of their respective
owners.
iii
CE
This product has passed the CE test for environmental specifications.
FCC Class A
This equipment has been tested and found to comply with the limits for a
Class A digital device, pursuant to Part 15 of the FCC Rules. These limits
are designed to provide reasonable protection against harmful interfer-
ence when the equipment is operated in a commercial environment. This
equipment generates, uses and can radiate radio frequency energy and, if
not installed and used in accordance with the instruction manual, may
cause harmful interference to radio communications. Operation of this
equipment in a residential area is likely to cause harmful interference in
which case the user will be required to correct the interference at his own
expense.
Safety Instructions
1. Read these safety instructions carefully.
2. Keep this User's Manual for later reference.
3. Disconnect this equipment from any AC outlet before cleaning.
Use a damp cloth. Do not use liquid/spray detergents for cleaning.
4. For plug-in equipment, the power outlet socket must be located
near the equipment and must be easily accessible.
5. Put this equipment on a reliable surface during installation. Drop-
ping it or letting it fall may cause damage.
6. The openings on the enclosure are for air convection. Protect the
equipment from overheating. DO NOT COVER THE OPENINGS.
7. Make sure the voltage of the power source is correct before con-
necting the equipment to the power outlet.
8. Position the power cord so that people cannot step on it. Do not
place anything over the power cord.
9. All cautions and warnings on the equipment should be noted.
10. If the equipment is not used for a long time, disconnect it from the
power source to avoid damage by transient overvoltage.
11. Never pour any liquid into an opening. This may cause fire or elec-
trical shock.
v
Wichtige Sicherheishinweise
1. Bitte lesen sie Sich diese Hinweise sorgfältig durch.
2. Heben Sie diese Anleitung für den späteren Gebrauch auf.
3. Vor jedem Reinigen ist das Gerät vom Stromnetz zu trennen. Ver-
wenden Sie Keine Flüssig-oder Aerosolreiniger. Am besten dient
ein angefeuchtetes Tuch zur Reinigung.
4. Die NetzanschluBsteckdose soll nahe dem Gerät angebracht und
leicht zugänglich sein.
5. Das Gerät ist vor Feuchtigkeit zu schützen.
6. Bei der Aufstellung des Gerätes ist auf sicheren Stand zu achten.
Ein Kippen oder Fallen könnte Verletzungen hervorrufen.
7. Die Belüftungsöffnungen dienen zur Luftzirkulation die das Gerät
vor überhitzung schützt. Sorgen Sie dafür, daB diese Öffnungen
nicht abgedeckt werden.
8. Beachten Sie beim. AnschluB an das Stromnetz die AnschluBw-
erte.
9. Verlegen Sie die NetzanschluBleitung so, daB niemand darüber
fallen kann.
10. Es sollte auch nichts auf der Leitung abgestellt werden. Alle Hin-
weise und Warnungen die sich am Geräten befinden sind zu
beachten.
11. Wird das Gerät über einen längeren Zeitraum nicht benutzt, sollten
Sie es vom Stromnetz trennen. Somit wird im Falle einer Überspan-
nung eine Beschädigung vermieden.
12. Durch die Lüftungsöffnungen dürfen niemals Gegenstände oder
Flüssigkeiten in das Gerät gelangen. Dies könnte einen Brand bzw.
elektrischen Schlag auslösen.
13. Öffnen Sie niemals das Gerät. Das Gerät darf aus Gründen der ele-
ktrischen Sicherheit nur von authorisiertem Servicepersonal geöff-
net werden.
14. Wenn folgende Situationen auftreten ist das Gerät vom Stromnetz
zu trennen und von einer qualifizierten Servicestelle zu überprüfen:
a - Netzkabel oder Netzstecker sind beschädigt.
b - Flüssigkeit ist in das Gerät eingedrungen.
c - Das Gerät war Feuchtigkeit ausgesetzt.
d - Wenn das Gerät nicht der Bedienungsanleitung entsprechend
funktioniert oder Sie mit Hilfe dieser Anleitung keine Verbesse
vii
TPC-66/68 Series User Manual viii
Contents
Chapter 1 General Information ....................................... 2
1.1 Introduction ....................................................................... 2
1.2 Specifications .................................................................... 2
1.2.1 System Kernel ................................................................ 2
1.2.2 I/O Ports ......................................................................... 3
1.2.3 Storage ........................................................................... 3
1.2.4 Safety and Environment ................................................. 3
1.3 LCD Specifications ........................................................... 4
1.4 Touchscreen Specifications............................................... 4
1.5 Power................................................................................. 5
1.6 I/O Ports Arrangement ...................................................... 5
Figure 1.1:I/O Ports Arrangement ................................. 5
1.7 Panel Mounting ................................................................. 6
Figure 1.2:Panel Mounting ............................................ 6
1.8 Exploded Diagram............................................................. 7
Figure 1.3:Assembly Exploded ..................................... 7
1.9 Dimensions and Cutout ..................................................... 8
Figure 1.4:Dimensions and Cutout ................................ 8
Chapter 2 System Setup.................................................. 10
Figure 2.1:Unpack the Package ................................... 10
Figure 2.2:Power Connector and Power Lines ............ 10
Figure 2.3:Pin Assignment on the Power Receptor ..... 11
Figure 2.4:Power Line into the Power Receptor .......... 11
Figure 2.5:Turn on the System .................................... 12
Chapter 3 System Tuning ............................................... 14
3.1 LCD Tuning .................................................................... 14
Figure 3.1:Display ....................................................... 14
Figure 3.2:Display Properties ...................................... 14
Figure 3.3:Advanced Backlight Utility ........................ 15
3.2 Touchscreen Calibration ................................................. 15
Figure 3.4:Style ............................................................ 15
Figure 3.5:Stylus Properties ......................................... 16
Figure 3.6:Touchscreen Calibration ............................ 16
3.3 Buzzer Setting ................................................................. 17
Figure 3.7:Volume & Sounds Setttings 1 .................... 17
Figure 3.8:Volume & Sounds Setttings 2 .................... 17
Chapter 4 Windows CE .................................................. 20
Figure 4.1:Windows CE on TPC-66/68 ....................... 20
4.1 TPC Utilities.................................................................... 21
4.1.1 Soft-Keyboard .............................................................. 21
Figure 4.2:Soft-Keyboard ............................................ 21
4.1.2 TPC Configuration ....................................................... 21
ix
Figure 4.3:TPC Configurator ....................................... 22
Figure 4.4:General ....................................................... 22
Figure 4.5:Network ...................................................... 23
Figure 4.6:Advanced Network ..................................... 23
Figure 4.7:Watchdog Setting ....................................... 24
Figure 4.8:Misc Page ................................................... 25
Figure 4.9:Reboot Machine ......................................... 26
Figure 4.10:Registry Saving Success ........................... 27
Figure 4.11:Registry Editor ......................................... 27
4.1.3 Advantech Tools .......................................................... 28
Figure 4.12:Advantech Tools ...................................... 28
Figure 4.13:Remote Display Host Application ............ 29
Figure 4.14:Remote Display Application .................... 30
Figure 4.15:Connect .................................................... 30
Figure 4.16:Remote Display Host Application ............ 31
Figure 4.17: NotepadPlus ............................................ 31
Figure 4.18:TPC Version Information ......................... 32
4.1.4 Other Utilities .............................................................. 32
4.2 Networking...................................................................... 33
4.2.1 Network via Ethernet ................................................... 33
Figure 4.19:Network and Dial-up Connections ........... 33
Figure 4.20:Selected Connection ................................. 34
Figure 4.21:Setting IP Address .................................... 34
Figure 4.22:Setting Name Servers ............................... 35
Figure 4.23:Save Registry ............................................ 35
4.2.2 Network via Serial Port ................................................ 36
Figure 4.24:PC Connection .......................................... 36
Figure 4.25:PC Connection Properties ........................ 37
Figure 4.26:Change Connection .................................. 37
Figure 4.27:Change Connection .................................. 38
Figure 4.28:COM1 Set ................................................. 38
Figure 4.29:Microsoft ActiveSync .............................. 39
Figure 4.30:Select Connection Setting ........................ 39
Figure 4.31:Configure Connection Setting .................. 40
Figure 4.32:Get Connected .......................................... 41
Figure 4.33:Run Repllog.exe on the TPC .................... 41
Figure 4.34:Connection on the TPC ............................ 42
Figure 4.35:Connection on the Host PC ...................... 42
Figure 4.36:Explore the TPC ....................................... 43
4.2.3 Network via USB Client Port ...................................... 43
4.3 Application Program Development................................. 44
4.3.1 System Requirements for Developers .......................... 44
4.3.2 Building Windows CE Runtime .................................. 45
Figure 4.37:Starting a New Project .............................. 45
Figure 4.38:Selecting ................................................... 46
Figure 4.39:Compiling Your Program ......................... 46
TPC-66/68 Series User Manual x
Appendix A Watchdog Timer Programming................... 48
A.1 DeviceIOControl ............................................................. 48
A.2 How to Use the Control Code ......................................... 50
A.2.1 IOCTL _WDT_ENABLE: ........................................... 50
A.2.2 IOCTL _WDT_DISABLE: .......................................... 50
A.2.3 IOCTL_WDT_STROBE: ............................................ 50
A.2.4 IOCTL_WDT_GETTIMEOUT: .................................. 51
A.2.5 IOCTL_WDT_SETTIMEOUT: .................................. 51
A.2.6 IOCTL_WDT_REBOOT: ........................................... 51
A.3 Examples ......................................................................... 52
Appendix B Fuse Specifications ........................................ 56
B.1 Fuse Specifications.......................................................... 56
B.2 Fuse Replacement ........................................................... 56
Figure B.1:Fuse Replacement ...................................... 56
Appendix C Pin Assignments ............................................ 58
C.1 RS-232 Pin Assignment .................................................. 58
C.2 4-Wire RS-232/485 Pin Assignments ............................ 58
C.3 RS-485 Pin Assignment .................................................. 59
C.4 CAN Serial Port Pin Assignments .................................. 59
Appendix D Visual Settings ............................................... 62
D.1 Font Setting ..................................................................... 62
Figure D.1:Font Setting ............................................... 62
Figure D.2:Small Font Setting ..................................... 62
Figure D.3:Change Font Setting .................................. 63
Figure D.4:Small Font Display .................................... 63
D.2 Screen Rotation ............................................................... 64
Figure D.5:Screen Rotation ......................................... 64
Figure D.6:Screen Rotation Options ............................ 64
Figure D.7:90 Degrees Rotation .................................. 65
Figure D.8:Portrait Rotation ........................................ 65
xi
TPC-66/68 Series User Manual xii
1
CHAPTER
2
General Information
This chapter gives background infor-
mation for the TPC-66/68 series.
Sections include:
• Introduction
• Specifications
• LCD Specifications
• Touchscreen Specifications
• Power
• I/O Port Arrangement
• Mounting
• Exploded Diagram
• Dimensions and Cutout
Chapter 1 General Information
1.1 Introduction
1.2 Specifications
Note: It’s suggested to use hardware flow control to avoid data loss.
• 1 RJ-45 Ethernet port
• USB ports compliant with USB 1.1:
• USB Host x 1, Client x 1 (TPC-66SN/66T/68T)
• USB Host x 1 (TPC-66T-E2BE)
• 1 CompactFlash 2.0 type I/II slot
1.2.3 Storage
TPC-66/68 panel computers provide two methods for storage. One is the
on-board 64 MB NAND flash and the other one is a CompactFlash card.
The system boot-sequence is:
• If there is no CompactFlash card installed, the system will automati-
cally boot from the onboard NAND Flash.
• CompactFlash card only: the system will boot from CompactFlash card
5 Chapter 1
1.7 Panel Mounting
7 Chapter 1
1.9 Dimensions and Cutout
• Weight: 0.8 Kg
• Dimensions (WxHxD): 195 x 148 x 44.5 mm
• Cutout: 188 x 141 mm (suggested)
CHAPTER
2
System Setup
This chapter provides a brief explana-
tion for operating the TPC-66/68.
Chapter 2 System Setup
You can quickly get up and running by following the step-by-step
instructions below.
1. Open the package. Please check the packing list at the beginning of
this manual to make sure every item is there.
11 Chapter 2
4. Turn on the System
CHAPTER
2
System Tuning
Sections include:
The display settings let you control the backlight. Backlight provides a
screen saving function. The backlight can be automatically turned off
when the device is no longer used to lengthen the device life. Please go to
“Start” ‡ “Setting” ‡ “Control Panel” ‡ “Display” as shown in the Figure
below.
15 Chapter 3
The window of the stylus properties will display after you click the stylus.
There are two tabs in this screen: Double-Tap and Calibration. Double-
Tap is used to record the time period between the two taps when double-
tapping in Windows CE. Calibration is for users to calibrate the touch
screen.
17 Chapter 3
TPC-66/68 Series User Manual 18
4
CHAPTER
2
Windows CE
Sections include:
• TPC Utilities
• Networking
• Application Program Development
Chapter 4 Windows CE
The TPC-66/68 operator interface terminals are designed for Windows
CE. Windows CE is a compact operating system that occupies less stor-
age space and use less system resources compared with other operating
systems. By its modular nature, it is possible to choose the functions that
are useful for a specific application. This not only reduced the system
resources required, it also reduces start-up time. In the field of industrial
automation or for operator interface terminals, this is an appealing feature
because the impact of downtime is minimized. Furthermore, the small
storage space required makes it possible to install the operating system on
a reliable solid-state disk.
There are several utilities built into Windows CE in the TPC series.
4.1.1 Soft-Keyboard
The TPC-66/68 series also has a small-sized operator interface. Since it is
not convenient to attach a keyboard to such a small device, a software
keyboard is built into the standard Windows CE OS. Upon boot-up, a
small keyboard icon will appear on the status bar. Tap this icon with the
stylus to activate/hide this Soft-keyboard.
21 Chapter 4
Figure 4.3: TPC Configurator
General Page
This page displays the basic system information. There are two main
parts: system and memory. The system shows the OS image version and
CPU type. The second part includes total capacity, usage and currently
available capacity of the disk and the memory.
23 Chapter 4
Watchdog
Watchdog is a function to let the device automatically reset if a program
does not respond in time. This prevents system crashes and hangs to stop
your critical applications, as the watchdog will automatically restart the
machine when required.
Set the response time through the combo box as shown below. The timer
is the period that the watchdog will wait for a response.
Only when you select a time span and enable the watchdog, will the
response time be effective. When the watchdog is enabled and the "Test"
button is clicked, the NO resetting signal will be periodically sent to the
watchdog hardware onboard. The watchdog will suppose the machine to
be deadlocked and REBOOT it after the watchdog response time. If the
machine reboots as expected after the watchdog response time, the watch-
dog is proved to be working properly.
Startup Programs: You can easily set the startup programs without edit-
ing. The programs listed in the combo box will be automatically executed
after the system has successfully booted. Click the “Add” button to insert
a file to the startup. If you would like to remove the file from the startup
or the combo box, please click “Delete”.
25 Chapter 4
Reboot: You can reboot TPC-66/68 panel computers by clicking the
“Reboot” button. Once this button is clicked, the dialog below will be dis-
played.
There are two additional ways to reboot the system, clicking a small
machine icon on the status bar and executing a command, reboot.exe,
through a command line program.
Registry: You can click the “Save” button to save the registry to a solid
state disk, and click the “View” button to view, edit, create, or delete reg-
istry information. You also can backup or restore the registry setting by
clicking the backup or restore button.
Web Server Root: Input the root path of the web server here. The root
path will only be effective after the machine has been rebooted.
FTP Server Root: Input the root path of the ftp server here. The root path
will only be effective after the machine has been rebooted.
27 Chapter 4
4.1.3 Advantech Tools
There are several useful tools in the Advantech program. Please go to
“Start” ‡ “Programs” ‡ “Advantech” to run the tools as shown in Figure
4.12. The tools include “ActiveSync”, “Registry Editor”, “Registry
Saver”, “Remote Display Application”, “NotepadPlus”, “System Font
Setting” and “TPC Version Information”.
ActiveSync
This program synchronizes data and monitors the connection between
TPC-66/68 panel computers and their host computer. By default, it will
be executed automatically when you want to establish a connection to a
target device with ActiveSync.
Registry Editor
When Registry Editor is executed as shown in the Figure 4.11, you can
use this program to view, edit, enter, delete or save registry data.
In addition, you must run Remote Display Application on the panel com-
puter as shown in Figure 4.14. Click the “Connect” button and key in the
host name or IP address as shown in the Figure 4.15.
29 Chapter 4
Figure 4.14: Remote Display Application
Once the connection is successfully established, you can see the display
of the panel computer and control it from the host machine as shown in
Figure 4.16.
NotepadPlus
NotepadPlus is a text editor as shown in Figure 4.17.
TPC Configurator
TPC Configurator is an integrated utility to configure the basic settings of
the panel computer. Please refer to section 4.1.2.
31 Chapter 4
TPC Version Information
TPC Version Information shows the version information of the operation
system in the TPC-66/68 as shown in Figure 4.18.
Bright.exe [Level]:
Sets the brightness level of the display. The parameter is from 1 to 10.
Contrast.exe [Level]:
Sets the contrast of the display. The parameter is from 1 to 10.
Reboot.exe:
Saves the registry settings and reboots the panel computer.
Screen.exe [on/off]:
Turns the display on/off. Use “Screen.exe on” to turn on and “Screen.exe
off” to turn off the display.
4.2 Networking
1. Press Start in the task bar of Windows and select “Setting” -> “Net-
working and Dial-up connections”.
35 Chapter 4
4.2.2 Network via Serial Port
This section introduces how to setup the connection between the TPC
series and a host PC via Microsoft ActiveSync.
Please check the COM box and select your desired port from the list.
37 Chapter 4
Press the 'enter' symbol from the keyboard to confirm the change.
You can find the change is active. The connection is via serial1 - COM1.
39 Chapter 4
Configure the connection setting.
41 Chapter 4
The message shown below will show on the TPC once the TPC and the
host PC are connected.
A window will pop up as shown below on the host computer, once the
TPC and the host PC are connected. Select “No” and then press “Next”.
43 Chapter 4
4.3 Application Program Development
45 Chapter 4
Note The selected CPU type must be Win32 (WCE
ARM V4) or Win32 (WCE ARMV4I).
APPENDIX
2
Watchdog Timer
Programming
Appendix A Watchdog Timer
Programming
There is a built-in watchdog timer in the TPC-66/68 series. You can
access it through the WIN32 API. TPC-66/68 panel computers provide a
WDT driver to allow users to enable/disable the Watchdog timer. The
driver name is “WDT1:”. Programmers must open this driver before
using the resources. Then programmers can use DeviceIOControl func-
tions to enable/disable Watchdog timer. The introduction below includes
the DeviceIOControl, the definition of the parameter and an example.
A.1 DeviceIOControl
Parameters:
• hDevice
[in] Handle to the device that is to perform the operation. Call the Cre-
ateFile function to obtain a device handle.
• dwIoControlCode
[in] Specifies the control code for the operation. This value identifies
the specific operation to be performed and the type of device on which
the operation is to be performed. No specific values are defined for the
dwIoControlCode parameter. However, the writer of a custom device
driver can define IOCTL_XXXX control codes, per the CTL_CODE
macro. These control codes can then be advertised, and an application
can use these control codes with DeviceIoControl to perform driver-
specific functions.
• nInBufferSize
[in] Size, in bytes, of the buffer pointed to by lpInBuffer.
• lpOutBuffer
[out] Long pointer to a buffer that receives the operation’s output data.
This parameter can be NULL if the dwIoControlCode parameter speci-
fies an operation that does not produce output data.
• nOutBufferSize
[in] Size, in bytes, of the buffer pointed to by lpOutBuffer.
• lpBytesReturned
[out] Long pointer to a variable that receives the size, in bytes, of the
data stored into the buffer pointed to by lpOutBuffer. The lpBytesRe-
turned parameter cannot be NULL. Even when an operation produces
no output data, and lpOutBuffer can be NULL, the DeviceIoControl
function makes use of the variable pointed to bylpBytesReturned.
After such an operation, the value of the variable is without meaning.
• lpOverlapped
[in] Ignored; set to NULL.
• Return Values
Nonzero indicates success. Zero indicates failure. To get extended
error information, call GetLastError.
49 Appendix A
A.2 How to Use the Control Code
There are 6 control codes for the operation codes in the WDT driver.
A.2.3 IOCTL_WDT_STROBE:
Triggers the Watchdog. If your application uses IOCTL_WDT_ENABLE
to enable the Watchdog first and then sends IOCTL_WDT_REBOOT to
the WDT driver, your application must trigger the Watchdog once during
the Watchdog timer period. If your application has not triggered at the
specified period, the device will reboot automatically.
lpInBuffer: unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
A.2.5 IOCTL_WDT_SETTIMEOUT:
Sets the Watchdog time setting.
lpInBuffer : The DWORD pointer to your Watchdog time setting. The
Watchdog time setting is just a number. 0 means 2 seconds, 1 means 5
seconds, 2 means 10 seconds, 3 means 15 seconds, 4 means 30 seconds,
others means 40 seconds. The default setting is 5 seconds.
nInBufferSize:.unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
A.2.6 IOCTL_WDT_REBOOT:
If you want your application to trigger the Watchdog by itself, please use
IOCTL_WDT_REBOOT to notify the WDT driver. Otherwise, the WDT
will trigger itself automatically.
lpInBuffer :unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
51 Appendix A
A.3 Examples
HANDLE m_hWDT=NULL;
TCHAR szClassName[66];
53 Appendix A
TPC-66/68 Series User Manual 54
B
APPENDIX
2
Fuse Specifications
Appendix B Fuse Specifications
B.1 Fuse Specifications
APPENDIX
2
Pin Assignments
Appendix C Pin Assignments
C.1 RS-232 Pin Assignment
The following figure show the pin assignments for the DB-9 connector.
59 Appendix C
TPC-66/68 Series User Manual 60
D
APPENDIX
2
Visual Settings
Appendix D Visual Settings
There are two powerful and friendly utilities included to extend the visual
capabilities of TPC-66/68. The two utilities are used to set the font size
and rotate the screen.
63 Appendix D
D.2 Screen Rotation
65 Appendix D
TPC-66/68 Series User Manual 66