Sending Data over Rs232 for Reprap-controller
21 Feb 2011 13:59 #7348
by goaran
Sending Data over Rs232 for Reprap-controller was created by goaran
Hello,
i designed a small microcontroller board, which can receive data over the rs232 and then controll some FETs to controller a heater for a reprap kind rapid prototyping machine.
Now i need to make EMC2 to send some commands over rs232.
for example if there is an M-Code
M104 S190
it shoud send this command over the serial port
It also has to receive data from the rs232, for example if a M105 is exectuted, the M105 should be send to the microcontoller board, which sends back the current temperature (to display it in a bar or something)
How can i implemnt these thing?
Thanks in advance
i designed a small microcontroller board, which can receive data over the rs232 and then controll some FETs to controller a heater for a reprap kind rapid prototyping machine.
Now i need to make EMC2 to send some commands over rs232.
for example if there is an M-Code
M104 S190
it shoud send this command over the serial port
It also has to receive data from the rs232, for example if a M105 is exectuted, the M105 should be send to the microcontoller board, which sends back the current temperature (to display it in a bar or something)
How can i implemnt these thing?
Thanks in advance
Please Log in or Create an account to join the conversation.
21 Feb 2011 20:33 #7359
by cmorley
Replied by cmorley on topic Re:Sending Data over Rs232 for Reprap-controller
Please Log in or Create an account to join the conversation.
21 Feb 2011 22:02 #7362
by goaran
Replied by goaran on topic Re:Sending Data over Rs232 for Reprap-controller
thanks.. ill check tose links...
Please Log in or Create an account to join the conversation.
27 Feb 2011 16:26 #7490
by andypugh
Replied by andypugh on topic Re:Sending Data over Rs232 for Reprap-controller
Can you send data to the serial port with something like PRINT# in BASIC?
It just seems logical that you should be able to send a text string with something like
print "turn the heater to eleven" > tty.0
If that _is_ possible then making that into a bash script and using it as a custom M-code seems simple and easy.
It just seems logical that you should be able to send a text string with something like
print "turn the heater to eleven" > tty.0
If that _is_ possible then making that into a bash script and using it as a custom M-code seems simple and easy.
Please Log in or Create an account to join the conversation.
18 Mar 2011 13:18 #7920
by goaran
Replied by goaran on topic Re:Sending Data over Rs232 for Reprap-controller
thanks a lot, that should work, i think i'll do it this way
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds