Windows batch harness + extensive IT README for on-site Mitsubishi CNC testing. Covers connect/invia/scarica/validator/offset/param scenarios. Documents C1-C8 criticità found in code review: - path mapping mismatch (download /PRG/<int> vs upload relative <path>/<name>) - Standardize leading \n may trip validator first-line gate - hardcoded /PRG/ ProgramDirectory, no CLI override - Int16 -path limit, ASCII-only FTP, plaintext credentials Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
27 lines
1.2 KiB
Batchfile
27 lines
1.2 KiB
Batchfile
@echo off
|
|
REM ============================================================
|
|
REM T05 - Tool offset / Work zero NON supportati su Mitsubishi
|
|
REM Attesi:
|
|
REM -tooloffset -> -205 "ToolOffset non supportato per questo produttore"
|
|
REM -workzero -> -206 "WorkZeroOffset non supportato per questo produttore"
|
|
REM (supportati solo da Fanuc via FOCAS). Conferma gating corretto.
|
|
REM ============================================================
|
|
setlocal
|
|
call "%~dp0config.bat"
|
|
if not exist "%RESULTS%" mkdir "%RESULTS%"
|
|
set LOG=%RESULTS%\t05_offset.log
|
|
echo === T05 OFFSET NON SUPPORTATI === > "%LOG%"
|
|
|
|
echo. >> "%LOG%"
|
|
echo ----- Scarica con -tooloffset ----- >> "%LOG%"
|
|
"%EXE%" -manufacturer=mitsubishi -azione=Scarica -ip=%IP% -porta=%PORT% -username=%USER% -password=%PASS% -path=%PROGNUM% -pathprogramma=%RESULTS%\dl_tool.txt -tooloffset >> "%LOG%" 2>&1
|
|
echo EXITCODE_tool=%ERRORLEVEL% >> "%LOG%"
|
|
|
|
echo. >> "%LOG%"
|
|
echo ----- Scarica con -workzero ----- >> "%LOG%"
|
|
"%EXE%" -manufacturer=mitsubishi -azione=Scarica -ip=%IP% -porta=%PORT% -username=%USER% -password=%PASS% -path=%PROGNUM% -pathprogramma=%RESULTS%\dl_wz.txt -workzero >> "%LOG%" 2>&1
|
|
echo EXITCODE_wz=%ERRORLEVEL% >> "%LOG%"
|
|
|
|
echo Log: %LOG%
|
|
type "%LOG%"
|
|
endlocal
|