Machsupport Forum

Mach Discussion => Mach SDK plugin questions and answers. => Topic started by: peu on June 06, 2011, 12:14:10 PM

Title: SImple RS232 interfacing?
Post by: peu on June 06, 2011, 12:14:10 PM
Few days ago I receive one of these simple usb-rs-232 converters for pcb integration: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=180532641086 I do like to play with small microchip PICs from time to time

I would like to know if there is a plugin to set toggles or buttons via rs-232 messages, something like this:

data sent from small PIC microcontroller via rs232 small text messages:

"1000=1" <- set led 1000 to on
"1000=0" <- set led 1000 to off
"1000=2" <- change status

same for oem triggers

In a nutshell, a plugin to implement simple text messages like is described here: http://machsupport.com/MachCustomizeWiki/index.php?title=Mach_specific_Subroutines/Functions_grouped_by_purpose#Serial_port

Thanks!!


Pablo
Title: Re: SImple RS232 interfacing?
Post by: peu on June 07, 2011, 07:34:59 AM
I guess no replies means there is nothing like I ask available? or maybe its not a good idea at all?

There is still hope :)
Title: Re: SImple RS232 interfacing?
Post by: BR549 on June 07, 2011, 12:11:58 PM
Yo need to check with Henrik here :  http://henriksplace.se/cnc/cnc_mach3_vb_serial.html
Title: Re: SImple RS232 interfacing?
Post by: peu on June 07, 2011, 12:53:34 PM
Thanks a lot for the link, after reading it I see that what I want to accomplish is not easily done using rs-232 it will be wise to go to other solutions instead of trying to kludge my idea :)
Title: Re: SImple RS232 interfacing?
Post by: BR549 on June 07, 2011, 02:21:51 PM
Mach does not have a good serial protocol if any at all . It was never developed as most hobbiest would never use it.

Just a thought(;-) TP
Title: Re: SImple RS232 interfacing?
Post by: cncstep on June 29, 2011, 01:27:15 PM
Use this class to create a plugin, you will have full access to the PC rs232 port.  8)
http://cncrouter.ru/files/class_comport.zip (http://cncrouter.ru/files/class_comport.zip)
Title: Re: SImple RS232 interfacing?
Post by: cncstep on June 30, 2011, 03:54:09 PM
May be someone there is a class for working with usbhid device ?
Title: Re: SImple RS232 interfacing?
Post by: BR549 on July 10, 2011, 10:35:53 AM
Pablo we have gotten things to work with SendSerial to a point with LCD devices over USB. So maybe there is a way to do simple things with your device.

(;-) TP