Thanks i was now able to draw the fish.
Currently im working on communication via python.
It works fine. But i was wondering if i could make the init sequence faster because the stepper motor is really moving slow to its destination (zero point). Well i could do it by hand but i want to make some tests.
How to setup the plotter for g-code use
Also using a serial read command in python shows me what happens after every command is done i get a list of this:
init
Waiting 60 Seconds for init Sequence
Sequence 1
ok
Sequence 2
OK
Sequence 3
Grbl 0.8
Sequence 4
OK
Sequence 5
OK
Sequence 6
OK
you can ignore the Sequence thats a print i made for my self
but it looks like sometimes he uses āOKā, āokā and āGrbl 0.8ā These are the Gcode Commands i give to the plotter at the diffrente Sequences:
Sequence 1
G01 X100 Y100 Z30 F2500
Sequence 2
G01 X80 Z30 F2500
Sequence 3
G01 X70 Z30 F2500
Sequence 4
G01 X60 Z30 F2500
Sequence 5
G01 X50 Z30 F2500
Sequence 6
G01 X40 Z30 F2500
why isnt there always the same command comming back, you have any idea?
Looks like Iāve got bugs.
The only time you should see āGrbl 0.8ā is at the end of the init sequence where āstartā was returned before. I see that on line 93 thereās also a āGrbl 1.0ā so thatās probably a bug but itās in the Makeblock repository. Iām canāt explain why you see that āGrbl 0.8ā except that maybe the board got reset but then youād also expect to see an āinitā in the log.
I uppercased all of the "ok"s except the one in the stepper control file. Interestingly that is also where the āinitā comes from (goto_machine_zero). So my strong suspicion is that your python code is out of sync with the board.
Hereās a possible timeline:
- Init starts and āinitā is sent
- Your code waits 60 seconds
- Your code sends Seq 1
- The board finishes its move to zero and sends āokā
- Your code gets āokā and sends Seq 2
- The mainboard responds with an āOKā to Seq 1 (?)
- You send Seq 3
- The board finally finishes init and sends āGrbl 0.8ā
- Your code sends Seq 4
- The board responds with an āOKā to Seq 2
- Your code sends Seq 5
etc.
If this is completely accurate then you should see a series of "OK"s at the end corresponding to the command queue. Itās also possible that the first three commands are just getting dropped on the floor and the "OK"s are for the sequences that are actually requested.
I think you have to watch the machine very carefully to see which commands are executed when and also make sure that whatever else your code does it outputs everything that it gets via serial regardless of when it comes in and whether it thinks itās finished or not.
Edit: actually I think the fix is probably for the script to wait for the āGrbl 0.8ā before sending any commands because anything before that is just pre-initialization messages.
Hi Charlieb,
I may not get the details for that. While it looks like that the Port 8 may not control the RJ25 adapter very properly. Then our engineer changed to Port 6,7 and have updated all the new document to use Port 6,7.
You were right now it works. I just filter it with a normal if like if string contains āGrbl 0.8ā then go onā¦
Iām a bit reluctant to mess with that stuff because I donāt want any chance of damaging anything. Iām sure thereās some parameter that can be increased to make it move faster but Iāve never gone looking for it. I guess it wouldnāt be too bad since itās not supposed to be configured for 1/16 steps but the larger 1/8 steps.
Anyway my answer is to manually move the carriage close to zero before powering up so that it has less distance to move and so takes a bit less time,