Tuesday, 21 May 2013 05:29

Controlling USB Relay via Macro Express

Written by

 

 

 

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)

 

 

 

 

 

 

 

Tuesday, 14 May 2013 09:31

USB Power Control

Written by

 

 

Go to Device Manager

 

 

 

 

Open USB Root Hub Properties

 

 

 

 

Go to Power Management and un-check option

"Allow the computre to turn off this device to save power"

 

 

Click 'OK'

 

 

 

 

 

 

 

Thursday, 09 May 2013 08:00

PLC 2 relay remote control net for Android

Written by

 

 

PLC 2 relay remote control net

Vincenzo Scozzaro

 

2 channels WEB Relay board

 

 

https://play.google.com/store/apps/details?id=com.zeno.plc2relayonoff

 

 

 

 

 

 

 

 

 

 

Thursday, 09 May 2013 06:05

DEMO WEB and UDP boards

Written by

 

 

 

 

WEB 8 Relay DEMO

 

IP: http://88.87.31.201

Port: 80

 

 

 

 

 

 

 

 

8 relay UDP version DEMO board

 

IP: http://88.87.31.202

UDP Port: 12345

 

 

UDP Commands:

FF0000 - Status Read command

FF0100 - Relay 1 OFF command
FF0101 - Relay 1 ON command

FF0200 - Relay 2 OFF command
FF0201 - Relay 2 ON command

FF0300 - Relay 3 OFF command
FF0301 - Relay 3 ON command

FF0400 - Relay 4 OFF command
FF0401 - Relay 4 ON command

FF0500 - Relay 5 OFF command
FF0501 - Relay 5 ON command

FF0600 - Relay 6 OFF command
FF0601 - Relay 6 ON command

FF0700 - Relay 7 OFF command
FF0701 - Relay 7 ON command

FF0800 - Relay 8 OFF command
FF0801 - Relay 8 ON command

 

FFE000 - All relays OFF command
FFE0FF - All relays ON command

 

UDP Test Software example including source code (C#):

 

KMTronic UDP Test Software.zip
KMTronic UDP Test Software Source Code.zip

 

 

 

 

 

 

 

 

 

Tuesday, 30 April 2013 06:30

KMTronic UDP Test Software

Written by

 

 

 

UDP Test Software

 

 

 

UDP Test Software (C#)

KMTronic UDP Test Software.zip

 

Source code (C#)

KMTronic UDP Test Software Source Code.zip

 

 

 

Tuesday, 30 April 2013 06:00

Socat UDP control

Written by

 

 

2 channels UDP Relay board

 

 

8 channels UDP Relay board

 

 

---------------------------------------------------------------------------------------------------------------------------

 

Windows OS

 

Download SOCAT from:

http://blog.gentilkiwi.com/programmes/socat

 

First relay ON command:

echo FF0101 | socat - udp-datagram:192.168.1.199:12345

First relay OFF command:

echo FF0100 | socat - udp-datagram:192.168.1.199:12345

 

 

---------------------------------------------------------------------------------------------------------------------------

 

Linux, AIX, BSD, HP-UX, Solaris e.a. (UNIX)

 

Download SOCAT from:

http://www.dest-unreach.org/socat/

 

First relay ON command:

echo FF0101 | socat - udp-datagram:192.168.1.199:12345

First relay OFF command:

echo FF0100 | socat - udp-datagram:192.168.1.199:12345

 

---------------------------------------------------------------------------------------------------------------------------

 

 

 

Thursday, 25 April 2013 09:59

KMTronic LAN Ethernet IP 2 channels UDP Relay board

Written by

 

 

 

Manufacturer:
KMTronic LTD

Features:
- Each relay has an LED to indicate when it is operated.
- Relay outputs can be used to turn ON/OFF lights, motors and other devices.

Specifications:
Relays have Normally Open (NO) and
Normally Closed (NC) Contacts each capable of switching max:
- 12VDC/15A
- 24VDC/15A
- 125VAC/15A
- 250VAC/10A

Supply:
Requires external 12 volt DC / 500mA power supply

Operation Range:
Industrial (0°C to +80°C)

Dimensions:
105 mm / 51 mm / 20 mm (connectors mounted)

Default:
IP address: 192.168.1.199
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
UDP Port: 12345

 

UDP Commands:

FF0000 - Status Read command

FF0100 - Relay 1 OFF command
FF0101 - Relay 1 ON command

FF0200 - Relay 2 OFF command
FF0201 - Relay 2 ON command

 

FFE000 - All relays OFF command
FFE003 - All relays ON command

 

UDP Test Software example including source code (C#):

 

KMTronic UDP Test Software.zip
KMTronic UDP Test Software Source Code.zip

 

 

 

 

 

 

Thursday, 25 April 2013 09:59

KMTronic LAN Ethernet IP 8 channels UDP Relay board

Written by

 

 

 

 

Manufacturer:
KMTronic LTD

Features:
- Each relay has an LED to indicate when it is operated.
- Relay outputs can be used to turn ON/OFF lights, motors and other devices.

Specifications:
Relays have Normally Open (NO) and
Normally Closed (NC) Contacts each capable of switching max:
- 12VDC/15A
- 24VDC/15A
- 125VAC/15A
- 250VAC/10A

Supply:
Requires external 12 volt DC / 1000mA power supply

Operation Range:
Industrial (0°C to +80°C)

Dimensions:
108 mm / 150 mm / 25 mm (connectors mounted)

Default:
IP address: 192.168.1.199
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
UDP Port: 12345

 

UDP Commands ( ASCII Encoded ):

FF0000 - Status Read command

FF0100 - Relay 1 OFF command
FF0101 - Relay 1 ON command

FF0200 - Relay 2 OFF command
FF0201 - Relay 2 ON command

FF0300 - Relay 3 OFF command
FF0301 - Relay 3 ON command

FF0400 - Relay 4 OFF command
FF0401 - Relay 4 ON command

FF0500 - Relay 5 OFF command
FF0501 - Relay 5 ON command

FF0600 - Relay 6 OFF command
FF0601 - Relay 6 ON command

FF0700 - Relay 7 OFF command
FF0701 - Relay 7 ON command

FF0800 - Relay 8 OFF command
FF0801 - Relay 8 ON command

 

FFE000 - All relays OFF command
FFE0FF - All relays ON command

 

UDP Test Software example including source code (C#):

 

KMTronic UDP Test Software.zip
KMTronic UDP Test Software Source Code.zip

 

 

 

 

 

 

 

 

 

 

 

 

Manufacturer:
KMTronic LTD

 

Features:
- Each relay has an LED to indicate when it is operated.
- Relay outputs can be used to turn ON/OFF lights, motors and other devices.

 

Specifications:
Relays have Normally Open (NO) and
Normally Closed (NC) Contacts each capable of switching max:
- 12VDC/15A
- 24VDC/15A
- 125VAC/15A
- 250VAC/10A

 

Relays Datasheet:
http://www.info.kmtronic.com/manuals/RAS.pdf

 

Standby current at 12V DC:
(Relays OFF) - 58mA
One Relay on - 92mA
All Relays on - 370mA

 

Supply:
Requires external 9 to 24 volt DC  power supply

Maximum current drawn by digital circuitry at 9V - 500 mA
Maximum current drawn by digital circuitry at 12V - 370 mA
Maximum current drawn by digital circuitry at 24V - 200 mA 

Operation Range:
Industrial (0°C to +80°C)

 

Dimensions:
108 mm / 150 mm / 25 mm (connectors mounted)

 

Default:
IP address: 192.168.1.199
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Username: admin
Password: admin

 

Reset to Default Settings:
Hold Reset button for 10 seconds

 

http://www.info.kmtronic.com/e-mobile/web-8relay-box-mobile-12.jpg


Installation:

(1)

Connect power and LAN cable to router.

Open any Internet explorer and type: 192.168.1.199

If explorer open new window with request for USER and PASSWORD this is all.

If not ...

 

(2)

Check that IP your router LAN is 192.168.1.1

http://info.kmtronic.com/how-to-find-your-local-ip-address.html

If LAN IP your router is different that 192.168.1.1 (192.168.0.1 or 192.168.10.1) you need one time access to network 192.168.1.1 to change default settings.

 

(3)

Open any Internet explorer and type: 192.168.1.199

KMTronic IP 2 Relay

 

KMTronic IP 2 Relay

 

KMTronic IP 2 Relay

 

 

 

Toggle Commands


yourIP/relays.cgi?relay=1 - Toggle relay 1
yourIP/relays.cgi?relay=2 - Toggle relay 2
yourIP/relays.cgi?relay=3 - Toggle relay 3
yourIP/relays.cgi?relay=4 - Toggle relay 4
yourIP/relays.cgi?relay=5 - Toggle relay 5
yourIP/relays.cgi?relay=6 - Toggle relay 6
yourIP/relays.cgi?relay=7 - Toggle relay 7
yourIP/relays.cgi?relay=8
- Toggle relay 8



HEX-Binary Commands


ON Commands:
yourIP/FF0101 - Turn ON relay 1
yourIP/FF0201 - Turn ON relay 2
yourIP/FF0301 - Turn ON relay 3
yourIP/FF0401 - Turn ON relay 4
yourIP/FF0501 - Turn ON relay 5
yourIP/FF0601 - Turn ON relay 6
yourIP/FF0701 - Turn ON relay 7
yourIP/FF0801 - Turn ON relay 8

OFF Commands:
yourIP/FF0100 - Turn OFF relay 1
yourIP/FF0200 - Turn OFF relay 2
yourIP/FF0300 - Turn OFF relay 3
yourIP/FF0400 - Turn OFF relay 4
yourIP/FF0500 - Turn OFF relay 5
yourIP/FF0600 - Turn OFF relay 6
yourIP/FF0700 - Turn OFF relay 7
yourIP/FF0800 - Turn OFF relay 8

 


All relays command:
yourIP/FFE0xx

xx - HEX representaion of relays state
MSB - relay8
LSB - relay1

Example:
xx = A6; //0xA6 HEX
0xA6 as binary: 10100110

=>
MSB                         LSB
1   0   1   0   0   1   1   0
r8  r7  r6  r5  r4  r3  r2  r1
on  off on  off off on  on  off

 

 

 

 

 

 

Thursday, 28 March 2013 11:59

KMTronic LAN Ethernet IP 2 channels WEB Relay board

Written by

 

 

 

Manufacturer:
KMTronic LTD

Features:
- Each relay has an LED to indicate when it is operated.
- Relay outputs can be used to turn ON/OFF lights, motors and other devices.

Specifications:
Relays have Normally Open (NO) and
Normally Closed (NC) Contacts each capable of switching max:
- 12VDC/15A
- 24VDC/15A
- 125VAC/15A
- 250VAC/10A

Supply:
Requires external 12 volt DC / 500mA power supply

Operation Range:
Industrial (0°C to +80°C)

Dimensions:
105 mm / 51 mm / 20 mm

Default:
IP address: 192.168.1.199
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Username: admin
Password: admin


Installation:

(1)

KMTronic IP 2 Relay

 

 

(2)

 

KMTronic IP 2 Relay

 

 

(3)

 

KMTronic IP 2 Relay

KMTronic IP 2 Relay

KMTronic IP 2 Relay

Page 12 of 33