Z Stage Straightness test
PowerScript
FX 장비 생산 시 Z stage의 Straightness를 확인하는 데 사용되는 script입니다.
main
0 files
Z Stage Straightness …..js
Z Stage Straightness …..js
1062 bytes
baseDir = 'C:/Users/admin/Desktop/OXY Test/1/'
classification = 'Z_'
initialFocusPos = 41000
initialZPos = 40000
distance = -100
for(i = 0; i < 3; i++) {
var testNum = i + 1
spm.focusstage.moveTo(initialFocusPos)
spm.zstage.reset()
spm.zstage.moveTo(initialZPos)
path = baseDir + classification + 'testNum_' + testNum +'.txt'
print(path)
app.setLogFile(path)
app.setLogFileEnabled(true)
print('a')
spm.addChannel('A-B')
spm.addChannel('lfm')
spm.addChannel('Intensity')
for(j = 0; j < 200; j++) {
ab = spm.readChannelAveraged('a-b', 10, 10)
cd = spm.readChannelAveraged('lfm', 10, 10)
intensity = spm.readChannelAveraged('intensity', 10, 10)
z = parseInt(spm.zstage.pos)
print(ab, cd, intensity, z)
spm.zstage.move(distance)
}
ab = spm.readChannelAveraged('a-b', 10, 10)
cd = spm.readChannelAveraged('lfm', 10, 10)
intensity = spm.readChannelAveraged('intensity', 10, 10)
z = parseInt(spm.zstage.pos)
print(ab, cd, intensity, z)
app.setLogFileEnabled(false)
}
Comments (0)
No comments yet. Be the first to comment!
Snippet Information
Author:
Youngseo.Park
Language: PowerScript
Created:
Oct 29, 2025
Updated:
0 minutes ago
Views: 34
Stars: 2