OXY Stage Accuracy Test 시 사용 코드

PowerScript

OXY Stage Accuracy 평가 시 사용되는 코드입니다. (Ox 방향 구동 평가용)

main 0 files
OXY Stage Accuracy …..js
OXY Stage Accuracy …..js 790 bytes
step=-120;
backlash_step=100
iter=20
repeat=4
default_vel=1000

if (step>0) {
	de_backlash=backlash_step;
}
else {
	de_backlash=-backlash_step;
}


spm.fx.optics.move(-de_backlash, 0, default_vel, default_vel)
spm.sleep(200)
spm.fx.optics.move(de_backlash, 0, default_vel, default_vel)


for (j=1; j<repeat; j++) {
	path = 'C:/Park Systems/SmartScan/vision/accuracy/OXstage' +j+'/'

	for (i=0; i<iter; i++){

		if (i<10){
			spm.vision.capture(path+'0'+i+'.png');
		}
		else {
			spm.vision.capture(path+i+'.png');
		}
		spm.sleep(200)
		spm.fx.optics.move(step, 0, default_vel, default_vel)
	
	} 
	spm.sleep(200)
	spm.fx.optics.move(-step*(iter+1), 0, default_vel, default_vel)
	spm.sleep(200)
	spm.fx.optics.move(step, 0, default_vel, default_vel)	
}
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: 69
Stars: 2