SERIAL COMMANDS ISSUE

337 views
Skip to first unread message

DAVE HARESH

unread,
Nov 6, 2015, 7:04:45 AM11/6/15
to Smoothieware Support
Hello;
Sending realtime GCODEs and commands, this is best method, it will work fine but there are three issues. 
1. When giving G0 X999  or G1 command, it will not respond to M114 and get pos, progress commands until play in progress.
2. Also status check of limit switches, when G0 and G1 command issued not working.
3. It needs, status of current GCODE execution is completed and next to give  or next in pipe line. But how can it be known than
    current GCODE execution is completed.

In SD card playing;  at the of pause, previous and next GCODE can not be handled. If error in machine occurred, than machine is to be stopped by pressing pause button. There will be some GCODE executed that to be advanced, i.e. take back position. This function is not sure to be supported by SD card playing.

Arthur Wolf

unread,
Nov 6, 2015, 8:10:11 AM11/6/15
to Smoothieware Support
Hello.

Please avoid posting duplicates of your messages, there are many people subscribed to receive email updates to this list.

First let me ask you a question : how are you sending Gcode to the Smoothieboard ? Are you using Pronterface ? Another program ?

There is a very specific way you need to send Gcodes to the Smoothieboards ( you need to wait for Smoothie to answer "ok" to a line before sending the next line ), and if you do not respect that method, it can cause problems.

About your questions :

1. I don't really understand the question. If you are saying that when Smoothie is executing G1 or G0, it does not answer to M114, that is normal. Smoothie must finish executing a command before executing another one.

2. I don't really understand the question. If you are saying that when Smoothie is executing G1 or G0, it does not answer to M119, that is normal. Smoothie must finish executing a command before executing another one.

3. I don't understand the question at all.

I don't really understand the end of your message either. Would you have access to somebody that could help you make your message a bit clearer ?

Cheers.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Courage et bonne humeur.

DAVE HARESH

unread,
Nov 9, 2015, 12:30:00 AM11/9/15
to Smoothieware Support
Hello; Thanks. Sorry for duplicate messages. 
My problem as under.
Recently i purchased Smoothie board, it is working fine, all the commands are executing well as given in your web pages.

Setup  Description: Smoothie board applied 24V DC power, connected USB cable to computer, stepper motor is connected on X axis,Y axis and Z axis. On pc side, pronterface running.  Com port and baud selected,  applied connected command, OK, printer is now online,-- 

Problem Observed:  I am issuing command from Pronterface, by typing in text box and then pressing send button.

1. @help ->send-> response is OK,  list of commands displayed.
2. @version ->send-> response is OK , display reply.
3. M114 ->send- -> response OK, position replied and displayed.
4, G0 X9999 Y1111 Z6666 -->send ;  and motors are moving.
5. Now applying M114, no reply, it is waiting to complete G0 command, then giving reply.
 Now G0 executing longer time, about 4 minutes. During this time, no any command is executed.
When completed G0 executing, all the pipelined commands are executed sequentially.

Problem Description1:  During executing G0, no any other command responded. Also as your reply that "Smoothie must finish executing a command before executing another one" Now question is how i can abort G0 command, how to pause, how to check limit switches status during G0 executing, how to get - real time current position.  There is no any control during G0 command execution finish.  Similar issue is for G1 command.  I wanted to check limit switches status during execution of G0 command longer time.

Problem Description2: How i can know that current command execution is completed ? Example how can i know that G0 execution is completed ?  so i can give next command. 

I will test smoothie board in my OLD PCB drilling machine.  

Thanks in advance.

Arthur Wolf

unread,
Nov 9, 2015, 12:58:34 PM11/9/15
to Smoothieware Support
Hello.

You can not send a command while G0 is executing, and there is no way to stop G0 from executing.

Why do you want to check the limit switches *while* the machine is moving ?? What are you trying to do, *exactly* ?

About your other question, you can send the next command, when the previous command has answered "ok".

Cheers.


--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DAVE HARESH

unread,
Nov 18, 2015, 1:16:46 AM11/18/15
to Smoothieware Support
Hello,,thanks in advance.

I am not getting G0 execution complete OK reply. see response;
SENDING:G0 X00
>>>G0 X100
SENDING:G0 X100
>>>G0 X000
SENDING:G0 X000
>>>G0 X100
SENDING:G0 X100
>>>G0 X1000
SENDING:G0 X1000
>>>G0 X00
SENDING:G0 X00
>>>G0 X100
SENDING:G0 X100
>>>G0 X1000
SENDING:G0 X1000
>>>G0 X1000
SENDING:G0 X1000

How can i know that current G0 command execution is completed and next to be given.

DAVE


On Friday, November 6, 2015 at 5:34:45 PM UTC+5:30, DAVE HARESH wrote:

Arthur Wolf

unread,
Nov 18, 2015, 3:40:34 PM11/18/15
to Smoothieware Support
That is because pronterface is hiding the "ok". Use a serial terminal like cutecom, or connect via telnet using the ethernet connection if you want to see the answers.


Why do you want to check the limit switches *while* the machine is moving ?? What are you trying to do, *exactly* ?
I can't really help you much unless you answer this question.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DAVE HARESH

unread,
Nov 19, 2015, 12:26:16 AM11/19/15
to Smoothieware Support
Thanks, i used hyper terminal, it is replying OK for each command execution complete. Pronterface is hiding ok.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Used USB communication. Detailed information as below.

SMOOTHIE BOARD TEST RESULT AND OBSERVATIONS:
--------------------------------------------------------------------------------
APPLICATION :  PCB Drilling Machine
HARDWARE :  Smoothie board purchased from AKAR india, bangalore, www.akar3d.in.  
Supplied graphics display and sd card.

APPLICATION FUNCTIONS NEEDED :
1. G0 command to be executed from RS232/USB  - supported by smoothie
2. Status display for limit switches and current XYZ axis position on PC when 
job executing- not supported by smoothie
3. Homing command -  supported by smoothie
4. PCB - work zero - My application will handle this
5. Tool height measurement -  supported by smoothie
6. START / STOP/ PAUSE / RESUME commands from PC when JOB executing like G0 -  not supported by smoothie
7. Backward and forward - GCODE execution like as JOG control during pause state and in also 
idle stage - My application will handle this
8. JOG control during idle and pause state -  not supported by smoothie when paused
9. Feedrate setting, calibration support to be provided - supported by smoothie
10. Spindle speed setting - supported by smoothie using PWM control ( analog control )
------------------------------------------------------------------------------------------------------
TEST SETUP:
1. Connected smoothie board with USB connection to PC.
2. Applied 24V DC power to board and switched on.
3. Run pronterface.exe in PC
4. Three 17NEMA stepper motors connected. XYZ axis.

START UP CHECK :
1. USB cable connected to PC and Run pronterface.exe
2. COM8 and 115200 baud,  pressed connect button - reply was "printer is now online"
3. Issued following commands from pronterface, pressing send button
    @help - list of commands displayed.
    @version - response is OK, displayed message
    M114  - response  position replied and displayed.
    M119  - response limit switch status displayed
4. Applied motion command : G0 X9999 Y9999 Z9999, this command will take 4 minutes to complete. 
   All three motors moving.  
   Now applying M114, no reply, it is waiting to complete G0 command, then giving reply.
   During this time, no any command is executed. When completed G0 executing, 
   all the pipelined commands are executed sequentially.


TECHNICAL ASSISTANCE : received. Arthur Wolf ; November 9, 2015
1. You can not send a command while G0 is executing, and there is no way to stop G0 from executing. 
2. Why do you want to check the limit switches *while* the machine is moving ?? What are you trying to do, *exactly* ?
3. About your other question, you can send the next command, when the previous command has answered "ok".

OBSERVATIONS :

1. OK is not replied for each G0 command, how i can know that current G0 command execution is completed. 
   THIS PROBLEM IS SOLVED, I USED HYPERTERMINAL AND CHECKED. WORKING WELL. 
2. Need PAUSE command from PC, which will hold current execution, this will flush out pipeline of commands in board. RESUME command also.
3. START is given from PC - printfile command, also STOP command needed for safe shutdown. Each time emmergency shall not be used.
4. STATUS display for limit switches and current XYZ axis position
5. There shall be three types of commands : MOTION COMMAND and MACHINE CONTROL COMMAND, MACHINE CONFIG COMMAND
   MACHINE CONTROL commands like M119,M114,M26/25 etc...can be executed at any time like as interrupt
   MOTION COMMANDS shall be MODAL and pipelined in exection
   MACHINE CONFIG commands shall be executed only in idle state or shall be pipelined during G0/G1/G2/G3 motion/running state
6. Application is event driven and communication of RS232/USB has no issue with motion activity.  

Status display shall be handled in my application because G0 commands to be given from my application. 
So i will give status command after G0 command. But OK is not replied for each G0 command so how can 
   i know that G0 command execution is completed.   THIS PROBLEM IS SOLVED.

Also machine control commands shall be given at any time ir-respective of motion commands 
   execution state, they are PAUSE/RESUME/START/STOP.

---------------------------------------------------------------------------------------------------------------------------------------

On Friday, November 6, 2015 at 5:34:45 PM UTC+5:30, DAVE HARESH wrote:

Arthur Wolf

unread,
Nov 19, 2015, 4:42:43 AM11/19/15
to Smoothieware Support
On Thu, Nov 19, 2015 at 6:26 AM, DAVE HARESH <dav...@gmail.com> wrote:
Thanks, i used hyper terminal, it is replying OK for each command execution complete. Pronterface is hiding ok.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Used USB communication. Detailed information as below.

SMOOTHIE BOARD TEST RESULT AND OBSERVATIONS:
--------------------------------------------------------------------------------
APPLICATION :  PCB Drilling Machine
HARDWARE :  Smoothie board purchased from AKAR india, bangalore, www.akar3d.in.  

This is *not* a Smoothieboard.

If you want to get help from the community, you need to use a community-developped and supported board.

If you have problems with the aakar board, you should contact aakar support.
 
Supplied graphics display and sd card.

APPLICATION FUNCTIONS NEEDED :
1. G0 command to be executed from RS232/USB  - supported by smoothie
2. Status display for limit switches and current XYZ axis position on PC when 
job executing- not supported by smoothie

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DAVE HARESH

unread,
Nov 19, 2015, 7:07:35 AM11/19/15
to Smoothieware Support
Thanks. I will order following board. it will take time for 20 days. 


On Friday, November 6, 2015 at 5:34:45 PM UTC+5:30, DAVE HARESH wrote:
Reply all
Reply to author
Forward
0 new messages