Controlling USB Relay via Macro Express

 

 

 

Macro Express contains hundreds of commands to automate practically any function on your computer.

Just press a key and let the macro do all the repetitive work for you.

 

 

Download from:

http://www.macros.com/download.htm

 

 

Download KMTronic "USB_Relay.exe" from:

http://www.info.kmtronic.com/software/USB_Relays/Macro_Express/USB_Relay.zip

 

 

Unzip in example in "D:\KMTronic_USB_Relay" folder

 

 

Connect USB Relay to PC and after driver installation check

what USB COM port using in Device Manager

(in this example COM5)

 

 

Run Macro Express and set:

 

This command will activate first channel USB relay connected to COM5

 

USB_Relay commands:
USB_Relay.exe -c:<COM port> -r:<RELAY>#<STATE>
-c: Com port
-r: Relay(s), State(s)


Example:
USB_Relay.exe -c:5 -r:1#1 (this will turn on relay channel 1)
USB_Relay.exe -c:5 -r:1#0 (this will turn off relay channel 1)

 

 

 

 

 

 

 

Read 3496 times