Jump to content

How to save information in CHR


---
 Share

Recommended Posts

Goodnight
You could help me I am looking for the way that in CHR file certain information is kept like:
Cavity Number:
Date and Time:
Mold Number:
Operator number:
That would be all I need at the moment I hope you can orientate me
Link to comment
Share on other sites

Ill take a look at it tomorrow, i've never used chr files before so im not sure if calypso will create one.
I see you are using the extension ".PARA" in your add to file code.

I have code very similar to yours for a text file, but i like to set my directory path as a variable.

filePath = "X:\Org\CMM\REPORTS\XXX\WSPC_REPORTS\Part_Number-xxx\"+getRecordHead ("planid")+"\"
ext = ".txt"

N1 = getRecordHead ("planid")
N2 = getRecordHead ("lotid")
deleteFile(filePath + N1 + (" ") + N2 + (" ") + ext) //delete duplicate file
dirPath = filePath + N1 + (" ") + N2 + (" ") + ext

//#11
DIM11 = getActual("# 11 Dat C Distance").actual
//#12
DIM12 = getActual("# 12 Perpendicularity").actual
//#21 profile
DIM21 = getActual("# 21 Profile").actual
DIM21MAX = getMaxActual("# 21 Profile Min Max").actual/25.4
DIM21MIN = getMinActual("# 21 Profile Min Max").actual/25.4

addToFile(dirPath,(" "))
addToFile(dirPath,N2)
addToFile(dirPath,N1)
addToFile(dirPath,date()+ (" ") +time())
addToFile(dirPath,(" "))
addToFile(dirPath,("Dim 11 Distance : "),DIM11)
addToFile(dirPath,("Dim 12 Perpendicularity : "),DIM12)
addToFile(dirPath,("Dim 21 Profile : "),DIM21)
addToFile(dirPath,("Dim 21 Min/Max : "),DIM21MIN," / ",DIM21MAX)

Capture984654.JPG

Link to comment
Share on other sites

Roberto thanks your code helps me to complete the one I have.

but I have a question of chance you will know the route of calypso for the CHR format.
Link to comment
Share on other sites

Did you try changing the extension from TXT or PARA to CHR?
I was able to create a CHR report but since i don't have anything to open it with i don't know if its a legit file.
Link to comment
Share on other sites

 Share

×
×
  • Create New...