Source language: Translate to:

I need help to work with USB Eight Channel Relay Controller

Questions about NeoBook PlugIns

Moderator: Neosoft Support

I need help to work with USB Eight Channel Relay Controller

Postby sakismorGR » Sun Mar 10, 2013 2:30 am

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
User avatar
sakismorGR
 
Posts: 91
Joined: Sat Apr 29, 2006 10:21 pm
Location: Kavala-Greece

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

Postby Scherzkeks » Sun Mar 10, 2013 4:14 am

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
User avatar
Scherzkeks
 
Posts: 79
Joined: Mon Apr 04, 2005 3:04 am
Location: Switzerland

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

Postby sakismorGR » Sun Mar 10, 2013 4:39 am

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!!!
User avatar
sakismorGR
 
Posts: 91
Joined: Sat Apr 29, 2006 10:21 pm
Location: Kavala-Greece

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

Postby sakismorGR » Wed Mar 13, 2013 10:51 am

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
User avatar
sakismorGR
 
Posts: 91
Joined: Sat Apr 29, 2006 10:21 pm
Location: Kavala-Greece


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 3 guests