Control KMtronic relays via BAT files Example 04

 

 

 

 

KMtronic USB, RS485, RS232 BAT file control example

 

 

 

 

FILE: Menu.bat


ECHO OFF
:MENU
CLS
ECHO.
ECHO ...............................................
ECHO.
ECHO KMTronic USB Relay Control
ECHO.
ECHO PRESS (1), (2) or (3) to EXIT.
ECHO.
ECHO ...............................................
ECHO.
ECHO (1) - Turn Relay 1 ON
ECHO (2) - Turn Relay 1 OFF
ECHO (3) - EXIT
ECHO.
SET /P M=Type 1, 2, or 3, then press ENTER:
IF %M%==1 GOTO ON
IF %M%==2 GOTO OFF
IF %M%==3 GOTO END
:ON
D:\KMtronic\USBRelay.exe -c:5 -r:1#1
GOTO MENU
:OFF
D:\KMtronic\USBRelay.exe -c:5 -r:1#0
GOTO MENU
:END
D:\KMtronic\USBRelay.exe -c:5 -r:1#0


 

 

 

 

 

 

Read 1902 times