Ist es möglich mittels TNCCMD/TNCCMDPLUS festzustellen ob gerade ein Werkzeugwechsel durchgeführt wird?(Möglichst ohne den Maschinenhersteller zu befragen.)
Hintergrund: Ich möchte die aktuelle Platztabelle am PC verfügbar haben. Während des Wzg-Wechsels kommt es leider vor, dass dann 'Unsinn'
in der Tabelle steht.
Vielen Dank
So sieht das script momentan aus:
CODE
@ECHO OFF
ENVSET ToolPath S TNC:\TOOL.T
ENVSET PlacesPath S TNC:\TOOL_P.TCH
ENVSET timestampT S 0
ENVSET timestampTCH S 0
:READ_T
FILEINFO %ToolPath%
ON ERROR ALWAYS GOTO ENDE
ON OUTPUT 1 EQ %timestampT% GOTO READ_TCH
GET %ToolPath%
ON ERROR ALWAYS GOTO ERRORREAD
ENVSET timestampT O 1
:READ_TCH
FILEINFO %PlacesPath%
ON ERROR ALWAYS GOTO ENDE
ON OUTPUT 1 EQ %timestampTCH% GOTO NOCHANGE
GET %PlacesPath%
ON ERROR ALWAYS GOTO ERRORREAD
ENVSET timestampTCH O 1
:NOCHANGE
SLEEP 60
ECHO "ALIVE" > TNCPOLL.txt
ON ALWAYS GOTO READ_T
:ERRORREAD
ON ALWAYS GOTO READ_T
:ENDE