I have two ufl interface one store the string and one store the float
String
[INTERFACE]
PLUG-IN=ASCIIFiles.dll
[PLUG-IN]
IFM=\\10.73.3.198\pims\out\UN2PI*._OK
IFS=C
REN=_DONE
ERR=BAD2
PURGETIME=2d
PFN=true
NEWLINE=13,10
[SETTING]
DEB=4
MAXLOG=10
MAXLOGSIZE=512
MSGINERROR=\\10.73.3.198\pims\ERR\Error2.log
OUTPUT=\\10.73.3.198\pims\log\LogFile2.log
LOCALE=en-us
[FIELD]
Field(1).NAME="Timestamp"
Field(1).TYPE="DateTime"
Field(1).FORMAT="yyyy/MM/dd hh:mm"
Field(2).NAME="TagName"
Field(2).TYPE="String"
Field(3).NAME="Value_String"
Field(3).TYPE="String"
FIELD(4).NAME="UnitOM"
FIELD(4).TYPE="String"
FIELD(5).NAME="Method"
FIELD(5).TYPE="String"
FIELD(6).NAME="Description"
FIELD(6).TYPE="String"
FIELD(7).NAME="CompletionDate"
FIELD(7).TYPE="String"
FIELD(8).NAME="LoginDate"
FIELD(8).TYPE="String"
FIELD(9).NAME="ProcessTime"
FIELD(9).TYPE="String"
FIELD(10).NAME="LabTime"
FIELD(10).TYPE="String"
[MSG]
MSG(1).NAME="BatchFL"
MSG(1).EPC="String"
[BatchFL]
BatchFL.FILTER = C1=="*"
' Field extractions (variables)
'
' Send the values to PI Archive
' Numerical value
'
TagName=["(*),*,*,*,*,*,*,*,*,*,*"]
Description=["*,(*),*,*,*,*,*,*,*,*,*"]
Timestamp=["*,*,(*),*,*,*,*,*,*,*,*"]
LoginDate=["*,*,*,(*),*,*,*,*,*,*,*"]
CompletionDate=["*,*,*,*,(*),*,*,*,*,*,*"]
ProcessTime=["*,*,*,*,*,(*),*,*,*,*,*"]
LabTime=["*,*,*,*,*,*,(*),*,*,*,*"]
Value_String=["*,*,*,*,*,*,*,*,(*),*,*"]
UnitOM=["*,*,*,*,*,*,*,*,*,(*),*"]
Method=["*,*,*,*,*,*,*,*,*,*,(*)"]
StoreInPI(TagName + "_Value",Description,Timestamp,Value_String,,,"UOM: " + UnitOM + " Method : " + Method + " ProcessTime: " + ProcessTime + "m LabTime:" + LabTime + "m")
StoreInPI(TagName + "_CompletionDate",Description,Timestamp,CompletionDate,,,"UOM: " + UnitOM + " Method : " + Method + " ProcessTime: " + ProcessTime + "m LabTime:" + LabTime + "m")
StoreInPI(TagName + "_LoginDate",Description,Timestamp,LoginDate,,,"UOM: " + UnitOM + " Method : " + Method + " ProcessTime: " + ProcessTime + "m LabTime:" + LabTime + "m")
Float
[INTERFACE]
PLUG-IN=ASCIIFiles.dll
[PLUG-IN]
IFM=\\10.73.3.198\pims\out\UN2PI*.csv
IFS=C
REN=_OK
ERR=BAD
PURGETIME=30m
PFN=true
NEWLINE=13,10
[SETTING]
DEB=4
MAXLOG=10
MAXLOGSIZE=512
MSGINERROR=\\10.73.3.198\pims\ERR\Error.log
OUTPUT=\\10.73.3.198\pims\log\LogFile.log
LOCALE=en-us
[FIELD]
Field(1).NAME="Timestamp"
Field(1).TYPE="DateTime"
Field(1).FORMAT="yyyy/MM/dd hh:mm"
Field(2).NAME="TagName"
Field(2).TYPE="String"
Field(3).NAME="Value_Number"
Field(3).TYPE="Number"
FIELD(6).NAME="UnitOM"
FIELD(6).TYPE="String"
FIELD(7).NAME="Method"
FIELD(7).TYPE="String"
FIELD(8).NAME="Description"
FIELD(8).TYPE="String"
FIELD(9).NAME="ProcessTime"
FIELD(9).TYPE="String"
FIELD(10).NAME="LabTime"
FIELD(10).TYPE="String"
[MSG]
MSG(1).NAME="BatchFL"
MSG(1).EPC="Float32"
[BatchFL]
BatchFL.FILTER = C1=="*"
' Field extractions (variables)
'
' Send the values to PI Archive
' Numerical value
'
TagName=["(*),*,*,*,*,*,*,*,*,*,*"]
Description=["*,(*),*,*,*,*,*,*,*,*,*"]
Timestamp=["*,*,(*),*,*,*,*,*,*,*,*"]
Value_Number=["*,*,*,*,*,*,*,(*),*,*,*"]
UnitOM=["*,*,*,*,*,*,*,*,*,(*),*"]
Method=["*,*,*,*,*,*,*,*,*,*,(*)"]
ProcessTime=["*,*,*,*,*,(*),*,*,*,*,*"]
LabTime=["*,*,*,*,*,*,(*),*,*,*,*"]
StoreInPI(TagName,Description,Timestamp,Value_Number,,,"UOM: " + UnitOM + " Method : " + Method + " ProcessTime: " + ProcessTime + "m LabTime: " + LabTime + "m" )