Installation Guide: Tpsys SQL Interface Setup
Installation Guide: Tpsys SQL Interface Setup
Hardware and software mentioned in this document are subjected to continuous development and improvement.
Consequently, there may be minor discrepancies between the information in the document and the performance or
design of the product. Specifications, dimensions and other statements mentioned in this document are subject to
changes without prior notice.
Contents
TPSys SQL interface setup ......................................................................................................................... 1
Contents....................................................................................................................................................... 2
1. Introduction ....................................................................................................................................... 3
1.1 Purpose .................................................................................................................................. 3
1.2 Available data ........................................................................................................................ 3
2 Installation......................................................................................................................................... 4
2.1 Add PostgreSQL ODBC driver ............................................................................................. 4
1. Introduction
1.1 Purpose
This document describes how to set up a Windows XP PC to connect to TPSys SQL databases and retrieve
data from the database into an Excel sheet.
This setup is tested on Windows XP SP3, Excel 2003 and QlikView 9.00 SR4.
The mydbxxxxview_10_base views contain mainly the table header information and mydbxxxxview_10
views contain data from additional tables.
Example: mydbpcbview10_base view contains one line per PCB in the database (maybe thousands of lines)
but mydbpcbview10 has one line for each mount-line in all PCBs (hundred thousands of lines).
2 Installation
http://www.postgresql.org/ftp/odbc/versions/msi/
Please note that even on 64-bit version of Windows 7 the 32 bit version should be used.
3 Retrieving data
2. Open the Control Panel / Administrative Tools / Data Source (ODBC) / System DSN
4. Then you will be prompted to add some data about the data connection
Database: mydata_common_db
Password: viewsonly
3. Select the datasource you configured in chapter 3 above and press ‘ok’
Note the unchecked check box.
4. In the appearing window press the ‘Options’ button and set the check boxes as below and press ‘ok’:
5. From the ‘Add Tables’ window, select the datatype of your interest (say component) and add it to
the query and the press the ‘Close’ button.
6. Select the wanted columns from the component tables and drag them to the area below the tables.
7. Close Microsoft Query and import the data in excel by clicking ‘OK’
8. Close Microsoft Query and inserts the result into excel and get the result:
3. Connect to QDBC
totalassemblytime,
assemblytime,
assembled,
baddimension,
badeltest,
badpicked,
badplaced,
badother
FROM "mydata_common_db"."mydbmanlview_10".management;
8. Wait while data is read and Add All the Available Fields to Fields Displayed in Listboxes
9.
10. Move the Listboxes on the screen so you can see the data.
11. Now you can play with the data according to normal QlikView rules.
4 Edit data
It is possible to change carrier data only. It is done by using ODBC and calling UPDATE or INSERT query
on the mydbcarrview_10.carrier_magname table view. Some of the parameters are ignored and some of
them are generated. This is described in the column description chapter.
Password: mydata
UNKNOWN
“”
TAPE_MAG
“8mm”, “12mm”, “16mm”, “24mm”, “32mm”, “44mm”, “56mm”, “72mm”, “88mm”, “104mm”, “120mm”, “136mm”,
“152mm”, “custom”
VIB_MAG
“below10mm”, “above10mm”,
TRAY_MAG
“”
GFI_MAG
“”
magazinename Set to UNLOADED / Set to UNLOADED Used Valid transitions are: UNLOADED -> DISCARDED, UNLOADED -> SHELVED,
SHELVED -> UNLOADED
feeder Set to default / Set to default Ignored
carriertype Used / From similar last used Ignored Valid values: UNKNOWN, TAPE_MAG, VIB_MAG, TRAY_MAG, GFI_MAG
carriersubtype Used / From similar last used Ignored Has to be used in combination with carriertype and has to be valid for specific
carriertype set in that value (See 4.4)
angle Used / From similar last used Used
quantity Used / From similar last used Used Has to be greater than -1
amplitude From similar last used / From similar last used Ignored
duration From similar last used / From similar last used Ignored
frequency From similar last used / From similar last used Ignored
steplengthtrim From similar last used / From similar last used Ignored
xoffset From similar last used / From similar last used Ignored
servoadjustment From similar last used / From similar last used Ignored
hydrareachable From similar last used / From similar last used Ignored
yacc From similar last used / From similar last used Ignored
zacc From similar last used / From similar last used Ignored
quantityatnew Used / From similar last used Used Has to be greater than -1
maxtotaltime Used / From similar last used Used It is possible to change this value only for carriers without running timer
previousfeeder From similar last used / From similar last used Ignored