TPC-651H/1251H: User Manual
TPC-651H/1251H: User Manual
TPC-651H/1251H: User Manual
User Manual
Copyright
The documentation and the software included with this product are copy-
righted 2010 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
Intel and Pentium are trademarks of Intel 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
when shielded cables are used for external wiring. We recommend the use
of shielded cables. This kind of cable is available from Advantech. Please
contact your local supplier for ordering information.
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.
Caution!
Danger of explosion if battery is incorrectly replaced. Replace only with
the same or equivalent type recommended by the manufacturer. Dispose
of used batteries according to the manufacturer's instructions.
General Information
Chapter 1 General Information
1.1 Introduction
• Fanless
By using a low-power processor, the system does not have to rely on
fans, which often are unreliable and causes dust to circulate inside the
equipment.
• Bright Display
The TFT LCD display suits industrial demands for clear interfaces.
• Windows CE Support
In addition to the OS support of Windows XP, Advantech offers plat-
form support for Windows CE and Windows XP embedded. The
optional Windows CE operating system specifically for Industrial
Touch Panel Computers is also available.
Safety
• FCC Class A
• CE certificated
• The front bezel is compliant with NEMA 4 and IP65
Environment
• Operating Temperature: -20 ~ 60° C (-4 ~ 140° F)
• Storage Temperature:-30 ~ 80° C (-22 ~ 176° F)
• Humidity: 40° C @ 10~95% relative humidity (non-condensing)
• Vibration: 2 grms (5~500Hz)
3 Chapter 1
1.3 LCD Specifications
TPC-650H TPC-1250H
Display Type TFT LCD TFT LCD
Backlight LED
1.5 Power
• Input Voltage: 18 - 32VDC (the fuse will become an open circuit if the
input level exceeds 33VDC)
• Typical: 24VDC@0.93Amp
The arrangement of the I/O ports is shown in in Figure 1.1 and 1.2.
5 Chapter 1
1.7 Panel Mounting
132
6
86.1
148
6
6
58
70.5
188.1
141.1
7 Chapter 1
6.50
4
247.2
311
180
186.3
237
170
3.50
6.50
54
4
301.5
227.5
System Setup
Chapter 2 System Setup
You can easily get TPC started by following the below steps.
• Step 1: Unpack the TPC package. Check the packing list at the begin-
ning of this manual to make sure all items have been included.
• Step 3: Connect the power connector to the 24 VDC power lines. The
power lines can either be of some power adapter or in-house power
source.
Note The drivers and utilities used for the TPC-651H and
TPC-1251H panel PCs are subject to change without
notice. If in doubt, check Advantech's website or contact
our application engineers for the latest information regard-
ing drivers and utilities.
Features in
Windows XP
Embedded
Chapter 3 Features in Windows XP
Embedded
TPC-1250H supports the embedded Windows platform. This section out-
lines the important features (EWF and HORM), that are provided in Win-
dows XP embedded.
3.1 EWF
EWF stands for Enhanced Write Filter. It provides an upper filter in the
storage device driver stack that redirects disk write operations to volatile
(RAM) or non-volatile (disk) storage. EWF protects a volume from write
access. The benefits are as the following.
Write-protect one or more partitions on your system.
Enable read-only media, such as CD-ROM or flash, to boot and run.
Prolong the lifespan of write-sensitive storage, such as CompactFlash.
HORM environment remains all along unless the following events occur:
Run EWF commit command (ewfmgr c: -commit) and then reboot sys-
tem.
Select “Discard hibernation file” by clicking F8 when system is starting
up
Also, HORM cannot fit your system if free space in C partition is not
enough. The hibernation file required is dependent on the RAM size you
use on the system. In other words, the hibernation file is 512MB.
15 Chapter 3
TPC-651H/1251H User Manual 16
A
APPENDIX
2
1 5
6 9
Pin Signal
1 NDCD
2 NRX
3 NTX
4 NDTR
5 GND
6 NDSR
7 NRTS
8 NCTS
9 NRI
19 Appendix A
3. Choose RS-485 or RS-422 for serial port and then save the
change.
APPENDIX
2
Watchdog Timer
Programming
Appendix B Watchdog Timer
Programming
B.1 Overview
The I/O port address of the watchdog timer is 2E(hex) and 2F(hex), 2E
(hex) is the address port. 2F(hex) is the data port. You must first assign
the address of register by writing address value into address port 2E(hex),
then write/read data to/from the assigned register through data port 2F
(hex).
Unlock
UnlockW83627
W83627
Select
Selectregister
registerof
of
watchdog
watchdogtimer
timer
Enable
Enablethe
thefunction
functionof
of
the
the watchdogtimer
watchdog timer
Use
Usethe
thefunction
functionof
of
the
the watchdogtimer
watchdog timer
Lock
LockW83627HF
W83627HF
25 Chapter B
Table B.1: Watchdog Timer Registers
Address of Attribute Description
register (2E)
Read/Write Value (2F)
and
description
87 (hex) ----- Write this address to I/O address
port 2E (hex) twice to unlock the
W83627HF
07 (hex) write Write 08 (hex) to select register of
watchdog timer.
29 Chapter B
Mov al,30h
Out dx,al
Inc dx
Mov al,01h
Out dx,al
;-----------------------------------------------------------
Dec dx ; Enable watchdog timer to be reset by mouse
Mov al,0f7h
Out dx,al
Inc dx
In al,dx
Or al,80h
Out dx,al
;-----------------------------------------------------------
Dec dx ; lock W83627HF
Mov al,0aah
Out dx,al
31 Chapter B
;-----------------------------------------------------------
Dec dx ; Enable the function of watchdog timer
Mov al,30h
Out dx,al
Inc dx
Mov al,01h
Out dx,al
;-----------------------------------------------------------
Dec dx ; Generate a time-out signal
Mov al,0f7h
Out dx,al ;Write 1 to bit 5 of F7 register
Inc dx
In al,dx
Or al,20h
Out dx,al
;-----------------------------------------------------------
Dec dx ; lock W83627HF
Mov al,0aah
Out dx,al
APPENDIX
2
Watchdog Timer
Programming on
WinCE
Appendix C Watchdog Timer Program-
ming on WinCE
There is a built-in watchdog timer in Windows CE 6.0 for TPC. You can
access it through the WIN32 API. TPC provides 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 pro-
grammers can use DeviceIOControl functions to enable/disable the
watchdog timer. The introduction below includes DeviceIOControl, the
definition of the parameter and an example.
C.1 DeviceIOControl
BOOL DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped );
35 Appendix C
C.2 How to Use the Control Code
There are 6 control codes for the operation codes in the WDT driver.
C.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.
C.2.5 IOCTL_WDT_SETTIMEOUT:
Sets the watchdog time setting.
lpInBuffer : The DWORD points 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, 5
means 45 seconds and 6 means 60 seconds. The default setting is 5 sec-
onds.
nInBufferSize:.unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
C.2.6 IOCTL_WDT_REBOOT:
If you want your application to trigger the watchdog by itself, please use
IOCTL_WDT_REBOOT to notify the watchdog driver timer (WDT).
Otherwise, the WDT will trigger itself automatically.
lpInBuffer :unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
37 Appendix C
C.3 Examples
#define WDT_CODE(ID)
CTL_CODE(FILE_DEVICE_UNKNOWN,ID,
METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_WDT_ENABLE WDT_CODE (0x900)
#define IOCTL_WDT_DISABLE WDT_CODE(0x901)
#define IOCTL_WDT_STROBE WDT_CODE(0x902)
#define IOCTL_WDT_GET_TIMEOUT WDT_CODE(0x903)
#define IOCTL_WDT_SET_TIMEOUT WDT_CODE(0x904)
#define IOCTL_WDT_REBOOT WDT_CODE(0x905)
// for compatibility reasons, you can define IOCTL as below:
// #define IOCTL_WDT_ENABLE 0x1001
// #define IOCTL_WDT_DISABLE 0x1002
// #define IOCTL_WDT_STROBE 0x1003
// #define IOCTL_WDT_GETTIMEOUT 0x1004
// #define IOCTL_WDT_SETTIMEOUT 0x1005
// #define IOCTL_WDT_REBOOT 0x1006
HANDLE m_hWDT=NULL;
TCHAR szClassName[60];
// assign the WDT driver name
wsprintf(szClassName, TEXT("WDT1:"));
// Open the WDT driver
m_hWDT = CreateFile(szClassName, GENERIC_READ
GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL);
if ( m_hWDT == INVALID_HANDLE_VALUE ) {
DebugMsg(CString("WDT driver fail"));
return;
}
DWORD dwTemp;
DWORD nIndex=2;
39 Appendix C
TPC-651H/1251H User Manual 40