Jump to content

Python script to run scanning routine AFTER light has warmed up


---
 Share

Recommended Posts

I normally create a single script that runs a scanning template for a part. We use an older GOM machine and when it has been sitting idle for long enough, the blue light turns off. When the light is manually turned back on, it has to wait 15 mins before it has warmed up (light icon will turn from yellow to white). I want to add a couple of lines of code into my script so that the scanning routine will automatically start AFTER the light has warmed up. That is, I can hit the 'run script' button, walk away, and it'll wait until the light has warmed up to actually begin running.

Does anyone know how to do that?

 

TIA!

Link to comment
Share on other sites

Hello Monica,

maybe this python code will help you...

 

while gom.app.get ('sys_calibration_remaining_sensor_warmup_time') > 0:
	print('Waiting for a warmed up sensor...')
print('Starting scanning templete...')
...
...
...

 

Edited
Link to comment
Share on other sites

That would be great to adjust it so that the lamp does not turn off at all. How do you access the power control settings? I could not find it. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...