0% found this document useful (0 votes)
12 views

Si Stat 3 Win e

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Si Stat 3 Win e

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

STP3STAT Converter

Service Information
Table of Contents

1 Table of Contents
1 Table of Contents ............................................................... 2
2 Introduction......................................................................... 3
2.1 Add-Ons ....................................................................................... 3
2.2 Output into ASCII file................................................................... 3
3 Settings in STP3STAT.INI .................................................. 4
4 Specification 0 .................................................................... 6
5 Specification 1 .................................................................... 6
6 Specification 2 .................................................................... 6
7 Specification 3 .................................................................... 6
7.1 Description of INI file:.................................................................. 6
7.2 Example of an ASCII File............................................................. 8
8 Specification 4 .................................................................. 10
9 Specification 5 .................................................................. 10
9.1 Description of INI file................................................................. 11
9.2 Example of an ASCII file created in FORMPAK....................... 14
10 Specification 6 ................................................................ 15
10.1 Description of INI file:................................................................ 16
10.2 Examples for ASCII files ........................................................... 18
10.2.1 Example file 1.................................................................................... 18
10.2.2 Example file 2.................................................................................... 18
Necessary changes in the UNIV2.INI files .................................................... 18
11 Specification 7 ................................................................ 19
11.1 Example INI file .......................................................................... 21
11.2 Example file from PC-Dmis ....................................................... 24

2 v2.3 22.07.03
Introduction

2 Introduction
2.1 Add-Ons
We have added to the STP3STAT Converter some input formats. In most cases,
the user can configure these formats. This is done in the corresponding *.INI-
Files. In order to be able to read in other input formats, some settings in the
STP3STAT.INI file must be changed.
These input formats concern essentially files that are created for example by
Formpak, Roundpak and Surfpak as CSV files. The files are transmitted to
STATPAK-Win or directly into the statistics file.

Possible specifics : 0, 3, 4, 5, 6, 7

0: NPA and TRF format


3: Only feature definition
4: Surfpak data format
5: Files, e.g. created by FORMPAK
6: Files that have been created for data bases, STAT_DB format
7: Files will be found through fixed positions

2.2 Output into ASCII file


Furthermore, you can output the files in an ASCII file. The output in an ASCII file
is not always possible.

Pay attention to how the data are read in.

22.07.03 v2.3 3
Settings in STP3STAT.INI

3 Settings in STP3STAT.INI
[Import]
Path=..\sta3data Directory in which are the files for the
converter
Extension=*.* Directory in which are the files for the
converter
TempDir=..\sta3err\ Directory, in which error files are copied
WaitTime=5000 Wait time in automatic mode
FileSpec=6 Specification of input format. Valid for:
0, 3, 4, 5, 6
;Name=UNIV2.INI Filename of specification; only read in for
This input is not specifics 3, 5, 6 3:
imperatively
Filename specification 3: CADAR.INI
required; therefore
Filename specification 5: UNIVERS.INI
commented;
Filename specification 6: UNIV2.INI

[Statistics]
CommTyp=0
Specification of
communication. Valid for:
0, 2, 3
CommTyp 0 Transmission to STATPAK-Win,
STATPAK-Win is started
CommTyp 2 Output in ASCII file
CommTyp 3 Directly in statistics file
;AsciiIniFile=..\INI\STP3QS.INI File name, in which is the
(input only if CommTyp=2, corresponding section for the
therefore commented; ) ASCII output.
;AsciiSection=DFD Section name of output format
(input only if CommTyp=2,
therefore commented; )

4 v2.3 22.07.03
Settings in STP3STAT.INI

[Users]
WaitTime=5000 Wait time for the communication between
PARTMANAGER-Win and STATPAK-Win
HelpDialog=1 Dialogue is displayed

[Debug]
Debug=0 STP3ASC file is created in the temp
directory
[Main]
OemToAnsi=0: Only valid for specification 0.
DOS character set is changed OemToAnsi=0
in Windows character set
File is created in the Windows OemToAnsi=1
character set

DelFile=1
Delete transcribed files DelFile=1
Not delete transcribed files DelFile=0

FileName=1: Part name corresponds to filename

DisplayInfo=1: Information box is displayed in automatic mode

CutFeatName=0
You always take 20 CutFeatName=0
characters for the feature
name
The feature name will be cut CutFeatName=1
when the seperator (,) is
found.

[Format]
Tabchar=44
Valid for specification 4 ASCII code of disconnection

Fixchar=46
Valid for Specification 4 ASCII code of decimal character

22.07.03 v2.3 5
Specification 0

4 Specification 0
Files, that corresponds to our NPA and TRF format.
See corresponding reports such as for example
"ASCII File Specification to Create COSMOS Parts" and
"Features for Statistics (NPA)"

5 Specification 1
Not available at the moment.

6 Specification 2
Not available at the moment.

7 Specification 3
In this specification, only a feature definition is possible. In each line is searched
for a keyword and is correspondingly transcribed. In each line, you only have one
keyword.
The default INI file belonging to it is called CADAR.INI. This file is built as follows:

7.1 Description of INI file:


[Main]
PartName=Component
Keyword for the part name
NoOfFeats=FEATURES
Keyword for the number of features
FeatName=FEATURE NAME
Keyword for the feature name
FeatNo=FEATURE NO
Keyword for the feature number
Nominal=TARGET VALUE
Keyword for the nominal value
UpperSpec=UPPER TOLERANCE
Keyword for the upper specification limit
LowerSpec=LOWER TOLERANCE
Keyword for the lower specification limit
UpperTol=
Keyword for the upper tolerance
LowerTol=

6 v2.3 22.07.03
Specification 3

Keyword for the lower tolerance


Unit=
Keyword for the unit
FixPoint=
Keyword for the number of digits after the comma
SampleSize=
Keyword for the sample size
FeatDefEnd=NEXT
Keyword for end of the feature definition. The next feature follows.
FileEnd=end
Keyword for end of file
ValueChar==
Keyword to find a number
StrStartChar="
Keyword for beginning a character string
StrEndChar="
Keyword for end of a character string

[Program]
FixPoint=2
General number of digits after the comma 2
SampleSize=1
General sample size 1

22.07.03 v2.3 7
Specification 3

7.2 Example of an ASCII File


Product Group = "FORD 05010 - ONWARDS"
Component = "07340 XS6U-FC/GC"
update type = 3
FEATURES = 9
----- FEATURE NAME = "1-2 15.00 OHMS"
FEATURE NO = 1
TARGET VALUE = 15
UPPER TOLERANCE = 15.3
LOWER TOLERANCE = 14.7
NEXT
----- FEATURE NAME = "1-3 22.40 OHMS"
FEATURE NO = 2
TARGET VALUE = 22.4
UPPER TOLERANCE = 22.8
LOWER TOLERANCE = 22
NEXT
----- FEATURE NAME = "1-4 37.73 OHMS"
FEATURE NO = 3
TARGET VALUE = 37.73
UPPER TOLERANCE = 38.13
LOWER TOLERANCE = 37.33
NEXT
----- FEATURE NAME = "1-5 53.05 OHMS"
FEATURE NO = 4
TARGET VALUE = 53.05
UPPER TOLERANCE = 53.58
LOWER TOLERANCE = 52.52
NEXT
----- FEATURE NAME = "1-6 83.70 OHMS"
FEATURE NO = 5
TARGET VALUE = 83.7
UPPER TOLERANCE = 84.54
LOWER TOLERANCE = 82.86
NEXT
----- FEATURE NAME = "1-7 114.35 OHMS"

8 v2.3 22.07.03
Specification 3

FEATURE NO = 6
TARGET VALUE = 114.35
UPPER TOLERANCE = 115.49
LOWER TOLERANCE = 113.21
NEXT
----- FEATURE NAME = "1-8 145.00 OHMS"
FEATURE NO = 7
TARGET VALUE = 145
UPPER TOLERANCE = 146.45
LOWER TOLERANCE = 143.55
NEXT
----- FEATURE NAME = "1-9 151.00 OHMS"
FEATURE NO = 8
TARGET VALUE = 151
UPPER TOLERANCE = 152.51
LOWER TOLERANCE = 149.49
NEXT
----- FEATURE NAME = "1-10 160.00 OHMS"
FEATURE NO = 9
TARGET VALUE = 160
UPPER TOLERANCE = 161.6
LOWER TOLERANCE = 158.4
NEXT
end

22.07.03 v2.3 9
Specification 4

8 Specification 4
Files in data format corresponding to SURFPAK Data Converter.
See corresponding reports, e.g. of
QVPAK / QSPAK data to STATPAK-Win

9 Specification 5
The ASCII file that must be read in must be according to the following criteria:
The line contains a keyword:
"Part Name";"New Part Name"
or
a separator divides the line into field positions:
"Feature1"; 10.000; 1.0; -1.0; 10.234; "12.09.00 13:40:33"; "OK“

With this specification, you can create features out of the ASCII file, and
measurement data can be transmitted.
In each line is searched for a keyword or a field position. Lines containing a
corresponding keyword out of the Main section are transcribed. Lines that do not
have a keyword are searched for field positions. You must indicate in the
Fieldpos. section if the line is supposed to be transcribed.
[Fieldpos]
Valid=13,"OK","NG-","NG+"

The default INI file belonging to it is called UNIVERS.INI. This file is built as
follows:

10 v2.3 22.07.03
Specification 5

9.1 Description of INI file


[Main]
Delim=;
Delimitations of field positions in a line
Deci=,
Decimal character
PartName="Part Name";
After the keyword follows the part name
Sublot="Sublot";
After the keyword follows the sublot
Operator="Operator";
After the keyword follows the name of the operator
;Marker="Marker";
After the keyword follows the marker

[Default]
SampleSize=1
General sample size 1
TextDelim="
Character strings begin and end
;FixPoint=4
(This input is not imperatively required; therefore commented;)
General number of digits after the comma 4.

[Date]
DateTime="Date/Time";
After the keyword follows the date and time
;Date="Date";
After the keyword follows the date
;Time="Time";
After the keyword follows the time
Day=/,1,L
After the first that has been found / the day is on the left
Month=/,2,L
After the second that has been found / the month is on the left
Year=/,2,R

22.07.03 v2.3 11
Specification 5

After the second that has been found / the year is on the right
Hour=:,1,L
After the first that has been found : the hour is on the left
Min=:,2,L
After the second that has been found : the minutes are on the left
Sec=:,2,R
After the second that has been found : the seconds are on the right
PM=PM
For the hour that has been found, you must add 12
[Fieldpos]
Valid=13,"OK","NG-","NG+"
Valid lines contain at the field position 13 the indicated character strings
FeatName=2:2:R,-,3:15:L
The feature name is composed of field position 2, the first 2 signs from the
right, - and 15 signs of field position 3 from the left
Nom=7
The nominal value is at field position 7
UT=9
The upper tolerance is at field position 9
LT=10
The lower tolerance is at field position 10
;USL=
The upper specification limit is at field position
;LSL=
The lower specification limit is at field position
Unit=14
The unit is at field position 14
Act=5
The measured value is at field position 5
;Sublot=
The sublot is at field position
;Marker=
The marker is at field position
DateTime=15
Date and time are at the field position 15
;Date=
The date is at field position
;Time=

12 v2.3 22.07.03
Specification 5

The time is at field position


Day=.,1,L
After the first that has been found . the day is on the left
Month=.,2,L
After the second that has been found . the month is on the left
Year=.,2,R
After the second that has been found . the year is on the right
Hour=:,1,L
After the first that has been found : the hour is on the left
Min=:,2,L
After the second that has been found : the minutes are on the left
Sec=:,2,R
After the second that has been found : the seconds are on the right
;PM=
For the hour that has been found, you must add 12
;FixPoint=
The number of digits after the comma is at field position
;SampleSize=
The sample size is at field position

22.07.03 v2.3 13
Specification 5

9.2 Example of an ASCII file created in FORMPAK

14 v2.3 22.07.03
Specification 6

10 Specification 6
The ASCII file, that must be read in must be according to the following criteria:
A line contains, divided through a separator into fields, all information of all
features. In the first line, the feature names must be indicated.
;;;;Outside diameter;inside diameter;distance;length;width
Lines containing measurement data should be built as follows or similarly:
12.8.98;13:08;Hans Mustermann;;28,555;24,680;8,424;
32,02;18,675
For creating parts and new features see section FeatureDef. In this section, the
line numbers with the corresponding information are registered. This way, it is
possible to read in files of STAT_DB created for Excel (see example 1).
The default INI file belonging to it is called UNIV2.INI. This file is built as follows:

22.07.03 v2.3 15
Specification 6

10.1 Description of INI file:


[Main]
Delim=;
Separators of field positions in a line
Deci=,
Decimal characters
SkipLine=
Lines without any information
PartNamePos=
The part name is at the field position
Sublot=3,-,4
The sublot is composed of fieldposition3 and fieldposition4
Operator=3
The operator is at field position 3
FeatStrt=5
The first feature name is at field position 5
;FeatEnd=8
The last feature name is at field position 8. This information is not
imperatively required if only feature names follow from FeatStrt.

[FeatureDef]
Nom=2
This line contains all nominal values
UT=3
This line contains all upper tolerance limits
LT=4
This line contains all lower tolerance limits
;USL=
This line contains all upper specification limits
;LSL=
This line contains all lower specification limits
;Unit=
This line contains all units
FixPoint=
This line contains all digits after the comma
SampleSize=

16 v2.3 22.07.03
Specification 6

This line contains all ranges of sample sizes


[Date]
;DateTime=15
Date and time are at field position 15
Date=1
The date is at field position 1
Time=2
The time is at field position 2
Day=.,1,L
After the first that has been found . the day is on the left
Month=.,2,L
After the second that has been found . the month is on the left
Year=.,2,R
After the second that has been found . the year is on the right
Hour=:,1,L
After the first that has been found : the hour is on the left
Min=:,2,L
After the second that has been found : the minutes are on the left
Sec=:,2,R
After the second that has been found : the seconds are on the right
;PM=
For the hour that has been found, you must add 12

22.07.03 v2.3 17
Specification 6

10.2 Examples for ASCII files


10.2.1 Example file 1
In this case, the part name corresponds to the file name; input in the
STP3STAT.INI file (FileName=1).
;;;;Outside diameter;inside diameter;distance;length;width
;;;;28,500;24,500;8,000;32,00;18,500
;;;;0,500;0,500;0,800;0,50;0,500
;;;;-0,500;-0,500;-0,500;-0,80;-1,500
12.8.98;13:08; Mustermann;;28,555;24,680;8,424;32,02;18,675
12.8.98;13:08; Mustermann;;28,289;24,344;8,109;31,70;18,888
12.8.98;13:08; Mustermann;;28,547;24,656;8,018;31,50;18,289
12.8.98;13:08; Mustermann;;28,328;24,609;8,241;31,30;18,015
12.8.98;13:08; Mustermann;;28,719;24,375;7,947;31,62;17,893

10.2.2 Example file 2


Necessary changes in the UNIV2.INI files
Delim=,
Deci=.
In STP3STAT.INI the
SkipLine=2 FileName=0 must be set
PartNamePos=1 because the part name in
FeatStrt=5 the UNIV2.INI file is at
Day=/,1,L PartNamePos=1.
Month=/,2,L
Year=/,2,R

PartNo ,Batch No,Date ,Clock time,Box No,Tray No,Name,PRR Max F,PRR


Ext F Max
-------,--------,--------,----------,------,-------,----,---------,------
-------
4489-1A,0004070B,06/10/00,09:43:43 ,3 ,6 ,PTS ,455.828
,12.1992
4489-1A,0004070B,06/10/00,09:43:50 ,3 ,6 ,PTS ,450.015
,12.2875
4489-1A,0004070B,06/10/00,09:43:57 ,3 ,6 ,PTS ,450.982
,12.0629
4489 1A 0004070B 06/10/00 09 44 10 3 6 PTS 447 64

18 v2.3 22.07.03
Specification 7

11 Specification 7
The converter reads files from e. g. PC-Dmis. Data in valid lines are found
through fixed positions or through keywords. The fixed positions and the
keywords must be defined in a file. The default name of this file is POSITION.INI.
The ASCII file that must be read in must follow the following criteria:
Either the line contains a keyword:
"Part Name";"New Part Name"

or
the line containes specified characters at a fixed position:

D1 PLANITU M 0.016585 0.000000 0.000000 0.020000 50


123456789012345678901234567890123456789012345678901234567890123456789012345
1 2 3 4 5 6 7

or
the line containes values for nominal, upper and lower tol. at fixed positions:
J 24.34 24.00 0.70 0.40
123456789012345678901234567890123456789012345678901234567890123456789012345
1 2 3 4 5 6 7

22.07.03 v2.3 19
Specification 7

With this specification, you can create features out of the ASCII file, and
measurement data can be transmitted.
A line is evaluated in the following order:
Search for a keyword that is specified in the ”Main” section. If one is found, the
line can be transcribed, otherwise
Search for characters at fixed positions that are specified as follows:
[Fieldpos]
Valid=15:16,M,X,Z,D,Y,A,TP
(Meaning: search for M or X or Z or D or Y or A at position 15 in the line, and
search for TP at position 15 and 16 in the line)
If one of these characters are found, the line can be transcribed.
If the variable “Valid” is not specified, the program searches for nominal, upper,
and lower tol. at fixed positions, specified as follows:
[Fieldpos]
Nom=18:22
UT=26:29
LT=33:36,Mul-1
(Meaning: search for a value at position 18 to 22, and search for a value at
position 26 to 29 and search for a value at position 33 to 36. All values must
exist!)
If all values are found, the line can be transcribed, otherwise it is not a valid line,
and the next line is read.

20 v2.3 22.07.03
Specification 7

11.1 Example INI file


[Main]
Deci=,
Decimal character
PartName=%52:;
After the keyword follows the part name
Sublot=%01:;
After the keyword follows the sublot
Operator="Operator";
After the keyword follows the name of the operator
Marker="Marker";
After the keyword follows the marker

[Default]
SampleSize=1
General sample size 1
;FixPoint=4
(This input is not imperatively required; therefore commented;)
General number of digits after the comma 4.

[Date]
DateTime="Date/Time";
After the keyword follows the date and time
;Date="Date";
After the keyword follows the date
;Time="Time";
After the keyword follows the time
Day=/,1,L
After the first that has been found / the day is on the left
Month=/,2,L
After the second that has been found / the month is on the left
Year=/,2,R
After the second that has been found / the year is on the right
Hour=:,1,L
After the first that has been found : the hour is on the left
Min=:,2,L

22.07.03 v2.3 21
Specification 7

After the second that has been found : the minutes are on the left
Sec=:,2,R
After the second that has been found : the seconds are on the right
PM=PM
For the hour that has been found, you must add 12

[Fieldpos]
Valid=15:16,M,X,Z,D,Y,A,TP
Valid lines contain at the string position 15 to 16 the indicated character strings
FeatName=2:12,-,16:20
The feature name is composed of string position 2 to 12, then a "-" is added, then
string positions 16 to 20 are added.
Nom=32:44
The nominal value is at string position 32 to 44
UT=58:69
The upper tolerance is at string position 58 to 69
LT=45:57,Mul-1
The lower tolerance is at string position 45 to 57, multiplied with -1
Valid for: Add, Sub, Mul, Div
;USL=
The upper specification limit is at string position
;LSL=
The lower specification limit is at string position
Unit=18:20
The unit is at string position 18 to 20
Act=20:29
The measured value is at string position 20 to 29
;Sublot=
The sublot is at string position
;Marker=
The marker is at string position
DateTime=73:82
Date and time are at string position 73 to 82
;Date=
The date is at string position
;Time=
The time is at string position

22 v2.3 22.07.03
Specification 7

Day=.,1,L
After the first that has been found . the day is on the left
Month=.,2,L
After the second that has been found . the month is on the left
Year=.,2,R
After the second that has been found . the year is on the right
Hour=:,1,L
After the first that has been found : the hour is on the left
Min=:,2,L
After the second that has been found : the minutes are on the left
Sec=:,2,R
After the second that has been found : the seconds are on the right
;PM=
For the hour that has been found, you must add 12
;FixPoint=
The number of digits after the comma is at string position
;SampleSize=
The sample size is at string position

[Special]
Valid=15:16,TP
After a line that contains at the string position (15 to 16) the indicated character
strings (TP) the following is valid:
The upper tolerance, that is contained in this line is valid for all following
tolerances if the upper tolerance is 0.00.

22.07.03 v2.3 23
Specification 7

11.2 Example file from PC-Dmis

24 v2.3 22.07.03

You might also like