Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 10:54:14 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  SImple RS232 interfacing?
Pages: 1   Go Down
Print
Author Topic: SImple RS232 interfacing?  (Read 800 times)
0 Members and 2 Guests are viewing this topic.
peu
Active Member

Offline Offline

Posts: 17



View Profile
« on: June 06, 2011, 11:14:10 AM »

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
Logged
peu
Active Member

Offline Offline

Posts: 17



View Profile
« Reply #1 on: June 07, 2011, 06: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 Smiley
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #2 on: June 07, 2011, 11:11:58 AM »

Yo need to check with Henrik here :  http://henriksplace.se/cnc/cnc_mach3_vb_serial.html
Logged
peu
Active Member

Offline Offline

Posts: 17



View Profile
« Reply #3 on: June 07, 2011, 11:53:34 AM »

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 Smiley
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #4 on: June 07, 2011, 01: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
Logged
cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« Reply #5 on: June 29, 2011, 12:27:15 PM »

Use this class to create a plugin, you will have full access to the PC rs232 port.  Cool
http://cncrouter.ru/files/class_comport.zip
Logged

cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« Reply #6 on: June 30, 2011, 02:54:09 PM »

May be someone there is a class for working with usbhid device ?
Logged

BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #7 on: July 10, 2011, 09: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!