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>
29 lines
889 B
Batchfile
29 lines
889 B
Batchfile
@echo off
|
|
REM ============================================================
|
|
REM CONFIG FIELD TEST MITSUBISHI - modifica questi valori
|
|
REM Compila una sola volta prima di lanciare gli altri script.
|
|
REM ============================================================
|
|
|
|
REM IP del CNC Mitsubishi (server FTP del controllo)
|
|
set IP=192.168.1.3
|
|
|
|
REM Porta FTP (default Mitsubishi = 21)
|
|
set PORT=21
|
|
|
|
REM Credenziali FTP del controllo (vuote se anonimo)
|
|
set USER=user
|
|
set PASS=pass
|
|
|
|
REM Numero programma usato nei test di Scarica/Invia.
|
|
REM ATTENZIONE: -path accetta solo INTERI (Int16, max 32767).
|
|
REM Vedi criticita C1/C2 nel README.
|
|
set PROGNUM=1
|
|
|
|
REM Percorso eseguibile (Debug = nessuna licenza richiesta)
|
|
set EXE=%~dp0..\bin\Debug\NcProgramManager.exe
|
|
|
|
REM Cartella risultati log
|
|
set RESULTS=%~dp0results
|
|
|
|
echo [config] IP=%IP% PORT=%PORT% USER=%USER% PROGNUM=%PROGNUM%
|
|
echo [config] EXE=%EXE%
|