Page 1 of 1

I need help to work with USB Eight Channel Relay Controller

PostPosted: Sun Mar 10, 2013 2:30 am
by sakismorGR
Hello to everyone.

I need your help to work with this controller:

Image
http://www.sigma-shop.com/product/8/-usb-eight-channel-relay-controller-rs232-serial-controlled-12v.html

It's a good quality controller that I order and I need maybe a plugin or a VB script to work with this or any other solution. So please if you have time to help me please check the link http://www.kmtronic.com/software-examples.html with all the solutions "How to make ON/OFF the relays". I know that is having a 'Windows Shortcut example' and 'Windows Command Line example' that is easy to control it but I prefer more a VB script or a plugin.

Any help from someone????

Best regards
Sakis Mor

Re: I need help to work with USB Eight Channel Relay Control

PostPosted: Sun Mar 10, 2013 4:14 am
by Scherzkeks
In C they just read/write to the serial port.

There was a Plugin called gtComm which could communicate with Serial Ports.
Serial Port in VBScript

I would use the Command line and create some Subroutines. You could also use graphics to visualize the Relay State.
Code: Select all
:Relay_Port_1_on
Run "usbrelay.exe" "-c:5 -r:1#1" "RunOnce+Wait+LoadComplete+Hidden" "" ""
SetVar "[Relay_Port_1_state]" "[PubDir]image_on.png"
Return

:Relay_Port_1_off
Run "usbrelay.exe" "-c:5 -r:1#0" "RunOnce+Wait+LoadComplete+Hidden" "" ""
SetVar "[Relay_Port_1_state]" "[PubDir]image_off.png"
Return

Re: I need help to work with USB Eight Channel Relay Control

PostPosted: Sun Mar 10, 2013 4:39 am
by sakismorGR
Great thank you!!!

I will make a test and I will tell you if it is OK. Any other solution is acceptable.

Thank you again!!!

Re: I need help to work with USB Eight Channel Relay Control

PostPosted: Wed Mar 13, 2013 10:51 am
by sakismorGR
Great it works. But I would like to know if the relays is open or close. Is that possible? I see that it having that. Please check this link: http://kmtronic.com/kmtronic-usb-relay-test-software.html
Maybe is it possible to have a plugin? I can pay for this if it is a normal price. I need this functions:
-I would like to know in which COM is connected
-To open and close the relays
-To know if a relay is open or close

Please if you have any solution or if it is possible to make me a plugin answer me.

Best regards