Control KMtronic USB relays using Command Prompt BIN files

 

 

 

 

Example file for COM Port 1 (COM1)

 

 

KMtronic USB Relay control

 

 

 KMtronic USB Relay control

 

 


 

 

@echo off
cls
echo "--------------------------------------"
echo " KMtronic USB One Relay "
echo " example "
echo " "
echo " "
echo " "
echo " ON Command : 0xFF, 0x01, 0x01 "
echo " "
echo " OFF Command : 0xFF, 0x01, 0x00 "
echo " "
echo "--------------------------------------"

 

echo FF0100>off.txt

 

echo FF0101>on.txt

 

certutil -decodehex off.txt off.bin
certutil -decodehex on.txt on.bin

 

MODE COM1:9600,n,8,1
copy on.bin \\.\com1 /b
echo " Relay is ON"
copy off.bin \\.\com1 /b
echo " Relay is OFF"

 

del on.bin
del off.bin
del on.txt
del off.txt

 

 

 


 

 

 

Download

www.info.kmtronic.com/software/USB_Relays/KMtronic_USB_Relay_Command_Prompt.zip

 

 

 

 

 

 

 

 

Read 14940 times