loading
 
VBscript Com port communication
Anonymous
11 year
I'm trying to output some data to a usb relay (USB-RLY02). The only information the datasheet has is:

Decimal command 100 'All relays ON
Decimal command 110 'All relays OFF

How do I send this information to the relay device in Comport5 using the VBscript module. All the examples if found online don't seem to work.

I'm a total novice at this so am not really sure what I'm doing.

I've attached my .robo file
program.robo
Anonymous 11 year
It's OK. Finally got it working.

Set fs=CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("COM5:",True)
a.write chr(100)
a.Close

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index