[Ri...] Posted October 25, 2024 Share Posted October 25, 2024 I would like to create a notification via email of either a "Programmable Stop" dialog or if the CMM has stopped due to a collision (example, something in a diameter that causes the CMM to stop). 1. How do I get the event of either case above? 2. I think I can create an email with VBS based on item 1. Any help is appreciated. Link to comment Share on other sites More sharing options...
[To...] Posted October 25, 2024 Share Posted October 25, 2024 Zeiss has a software package that will monitor you machine and send out notifications for collisions and other events, i.e. temperature. I don't think it's too expensive Link to comment Share on other sites More sharing options...
[Cl...] Posted October 25, 2024 Share Posted October 25, 2024 Yes. We use it. Even a slight stylus collision and an email is sent. With the stylus systems name, stylus, speed, CMM, etc. Link to comment Share on other sites More sharing options...
[Je...] Posted October 28, 2024 Share Posted October 28, 2024 Please sign in to view this quote. I believe this is possible with both CMM Observer (free trial available) and Smart Services (free version + paid version). Connect with your AMS specialist to review your specific needs to assess which route is most appropriate. There are some additional options mentioned in the Portal Knowledge Base. I encourage you to search "email" and "batch" for some possibilities you may not have considered. Link to comment Share on other sites More sharing options...
[No...] Posted October 28, 2024 Share Posted October 28, 2024 I think there's no other possibillity to detect collisions than the software packages mentioned, because when a collision occurs, the Calypso program stops and all PCM code is halted, hence no further output is possible. We have the Smart Services Dashboard (free version) installed, but in my opinion collision e-mails come in somewhat delayed. Too delayed for a quick response. So better test thoroughly before you buy. As to the programmable stop, it should be sufficient to put some code in the presettings of the stopping feature and create a text file acting as a flag for an observing background task (whatever that may be) which creates the e-mail when the file appears. Delete the file either in the post settings or let the background task do it. Link to comment Share on other sites More sharing options...
[Mi...] Posted October 28, 2024 Share Posted October 28, 2024 Maybe this helps for the start: viewtopic.php?p=15386#p15386 Link to comment Share on other sites More sharing options...
[DW...] Posted November 1, 2024 Share Posted November 1, 2024 Jeff eluded to it being accomplished without PCM or the Smart Services Dashboard. Any time a crash happens, it is logged to a file. Using task scheduler and Windows Powershell, create a script that monitors the file attribute 'date modified' at certain intervals (1 second, 1 minute, 1 day, etc) of this crash log. This script will continuously monitor a specified file and write to the console whenever the "date modified" time changes. # Set the path to the file you want to monitor $FilePath = "C:\path\to\your\file.txt" # Get the initial last write time of the file $LastWriteTime = (Get-Item $FilePath).LastWriteTime # Start monitoring loop Write-Host "Monitoring changes to $FilePath..." while ($true) { # Sleep for a predetermined interval (e.g., 5 seconds) Start-Sleep -Seconds 5 # Get the current last write time of the file $CurrentWriteTime = (Get-Item $FilePath).LastWriteTime # Check if the last write time has changed if ($CurrentWriteTime -ne $LastWriteTime) { # Write a message to the console Write-Host "File modified at: $CurrentWriteTime" # Update the last write time $LastWriteTime = $CurrentWriteTime } } This example writes an alert to the console (Powershell ISE) when the crash log "date modified" attribute changes. Instead of writing to the console, you can have it execute an alert email via more scripting. ChatGPT is your friend here. Link to comment Share on other sites More sharing options...
[Je...] Posted February 10 Share Posted February 10 Expanding on this a little in the event you have PiWeb Monitor. There are additional options ZEISS Portal Link to comment Share on other sites More sharing options...
[Ri...] Posted February 11 Author Share Posted February 11 Thank you, Jeff. Definitely not on this particular seat though. I believe all of our seats have Basic PiWeb, if that matters. Link to comment Share on other sites More sharing options...
[DW...] Posted February 11 Share Posted February 11 Please sign in to view this quote. I looked at this in the portal and did not see a date listed for the document. Since May 2022 and forward if you are trying to send an email through a personal GMAIL address via scripting, you have to create an app password through your GMAIL account first. Tutorial here https://stackoverflow.com/questions/66044348/sending-mail-from-powershell-via-gmail-smtp. Just in case anyone gets frustrated with an authentication error! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in