Files
DCU_ECAT_Master/launch/ecat.bat
T

11 lines
387 B
Batchfile
Raw Normal View History

2026-09-03 01:56:29 +08:00
@echo off
rem EtherCAT master tool for DCU LAN9252 (scan/flash/send/monitor)
rem Examples: ecat.bat status | ecat.bat flash | ecat.bat send --u64 0x1,0x2,0x3,0x4 --duration 5
rem 本文件在 launch\ 下, %~dp0 指向 launch\, 故 ROOT 取其上一层。
2026-09-03 01:56:29 +08:00
chcp 65001 >nul
set PYTHONUTF8=1
set "ROOT=%~dp0.."
cd /d "%ROOT%"
"%ROOT%\venv\Scripts\python.exe" ecat_tool.py %*
2026-09-03 01:56:29 +08:00
pause