52 lines
2.0 KiB
Batchfile
52 lines
2.0 KiB
Batchfile
@echo off
|
|
echo ================================================================================
|
|
echo CNO8_MCM01 Compilation
|
|
echo ================================================================================
|
|
echo.
|
|
echo Project: CNO8_MCM01
|
|
echo L5X File: C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\generated_projects\\CNO8_MCM01\\CNO8_MCM01_20250829_183116.L5X
|
|
echo Output ACD: C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\generated_projects\\CNO8_MCM01\\CNO8_MCM01.ACD
|
|
echo.
|
|
|
|
echo Checking Python 3.12...
|
|
py -3.12 --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo ERROR: Python 3.12 not found
|
|
echo Please install Python 3.12 and ensure it's in PATH
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo Python 3.12 found
|
|
echo.
|
|
|
|
echo Checking Logix Designer SDK...
|
|
py -3.12 -c "import logix_designer_sdk; print('SDK import successful')" >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo ERROR: Logix Designer SDK not found
|
|
echo Please install Logix Designer SDK for Python
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo Logix Designer SDK found
|
|
echo.
|
|
|
|
echo Starting compilation...
|
|
echo Command: py -3.12 "C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\L5X2ACD Compiler\l5x_to_acd.py" "C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\generated_projects\\CNO8_MCM01\\CNO8_MCM01_20250829_183116.L5X"
|
|
echo.
|
|
|
|
py -3.12 "C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\L5X2ACD Compiler\l5x_to_acd.py" "C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\generated_projects\\CNO8_MCM01\\CNO8_MCM01_20250829_183116.L5X"
|
|
|
|
echo.
|
|
echo Checking compilation results...
|
|
if exist "C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\generated_projects\\CNO8_MCM01\\CNO8_MCM01.ACD" (
|
|
echo SUCCESS: ACD file created at C:\\Users\\ilia.gurielidze\\Projects\\PLC Generation\\generated_projects\\CNO8_MCM01\\CNO8_MCM01.ACD
|
|
echo.
|
|
echo Ready for Studio 5000!
|
|
) else (
|
|
echo ERROR: ACD file was not created
|
|
echo Check the output above for errors
|
|
)
|
|
echo.
|
|
echo ================================================================================
|
|
pause
|