Machsupport Forum
Mach Discussion => Mach SDK plugin questions and answers. => Topic started 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
-
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 :)
-
Yo need to check with Henrik here : http://henriksplace.se/cnc/cnc_mach3_vb_serial.html
-
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 :)
-
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
-
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)
-
May be someone there is a class for working with usbhid device ?
-
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