GRBL-Plotter icon indicating copy to clipboard operation
GRBL-Plotter copied to clipboard

DIY Pen Plotter with Automatic Tool Changer | CNC Drawing Machine

Open yifandianzi opened this issue 9 months ago • 74 comments

IS7P0{A9 K{LO IH4V_C0IF

May I ask how to set the tool table above the Y-axis? After setting, the pen position in the tool table is negative, and all the tool tables in the pictures are in the negative direction of the Y-axis

yifandianzi avatar Sep 14 '23 12:09 yifandianzi

Tool table positions must be set in machine coordinates - homig of the plotter is needed (or manual "homig" via hard reset on lower left position): image

image

svenhb avatar Sep 14 '23 12:09 svenhb

O}NQQ}~{) D5XA9QEF(NX Y 8J XH4IJA{V8ZSVI19L%QVX O36J %X%2ELS30LSQN06_S

The above image is set by me, and the following image is set by me referring to another producer

yifandianzi avatar Sep 14 '23 13:09 yifandianzi

Just change the 277 to 0

svenhb avatar Sep 14 '23 13:09 svenhb

H%09TL5$IN20}Y}6D9 GJPB

https://github.com/svenhb/GRBL-Plotter/assets/94118847/46c40b4b-b3ee-48c3-ac87-54c015b7c436

Hello, this is a demonstration set to 0

yifandianzi avatar Sep 14 '23 13:09 yifandianzi

You are right, there is a bug and the offset is not shown, but processed during streaming. Will fix it soon.

svenhb avatar Sep 14 '23 16:09 svenhb

You may try this version: https://github.com/svenhb/GRBL-Plotter/blob/master/GRBL-Plotter_Setup_1_7_0_2_i.exe

svenhb avatar Sep 14 '23 19:09 svenhb

https://github.com/svenhb/GRBL-Plotter/assets/94118847/1228b2b6-13a1-491b-bb9c-f4277c031af0

Hello, there is another issue now, which is that it can return to its normal position when returning to zero. When starting to work, the Z motor will rotate in the opposite direction, and then it can surprise the next step normally

yifandianzi avatar Sep 15 '23 12:09 yifandianzi

I don't exactly understand this issue. I assume the problem is the servo-position, when PWM is off. Compare behavior of PWM on/off here: image

Compare behavior of PWM low/high here: image

svenhb avatar Sep 15 '23 12:09 svenhb

Now I could watch your video on a PC - it's not a servo... I thing you need to "Zero Z" your Z axis before starting streaming.

svenhb avatar Sep 15 '23 16:09 svenhb

BD$3O7WH~ 093QO9ZLO_5QG Hello, I have reset all X, Y, and Z here to zero, but when starting work, they still rotate in the opposite direction. I think it may be due to incorrect settings elsewhere, and it should not be rotated without selecting a pen

yifandianzi avatar Sep 16 '23 13:09 yifandianzi

It is normal that the Z axis move to a save position on start. Example code after importing a simple line: image

Line 14 G00 Z2.00 move Z upwards to save position Line 17 move to start position Line 18 G01 Z-1 move Z down, to start drawing Line 19 draw the line Line 20 G00 Z2.00 mive Z upwards

svenhb avatar Sep 16 '23 14:09 svenhb

7S7WXMXO~T9A%)U84`9ORX0 XG43{Y)IQRDA_2H)(D%O84L Did I make the right changes here

yifandianzi avatar Sep 16 '23 14:09 yifandianzi

I don't know your hardware, I didn't saw a servo for a gripper... Do your gripper opens with M3 S100?

Did you check my site? https://grbl-plotter.de/index.php?id=auto-pen-change&setlang=en

svenhb avatar Sep 16 '23 15:09 svenhb

IMG_20230916_230411 Hello, I have looked at your website and it is slightly different from the position where I lifted and clamped the pen

yifandianzi avatar Sep 16 '23 15:09 yifandianzi

Looks like the Z-stepper should turn for a half turn maximum to move from lowest Z to highest Z. Did you setup $102 correctly?

svenhb avatar Sep 16 '23 15:09 svenhb

Should I set $102 correctly to $40? https://www.youtube.com/watch?v=ZxeStwRespc&list=RDCMUCJHZY4Tl6ovsnBrNocdDbAg&start_radio=1&rv=ZxeStwRespc&t=65 https://www.youtube.com/watch?v=The following link is mine_4S9PE

yifandianzi avatar Sep 16 '23 16:09 yifandianzi

Last video is not visible. I don't know your driver settings for micro-steps. Usually a stepper-motor needs 200 steps for a full turn, If I interpret your design correctly, you have a half turn for about 20mm Z-change. With full-step-mode you may set $102 = 5 (100 steps/half-turn divided by 20 mm) If you have half-step mode: $102 = 10

If your Z axis is spring loaded to keep it up, you may have a problem with step loss at the Z motor.

svenhb avatar Sep 16 '23 16:09 svenhb

https://www.youtube.com/watch?v=ZJZuB_4S9PE Hello, setting $102=10 and $102=5 will prompt an error, while setting $102=40 will not cause an error

yifandianzi avatar Sep 17 '23 00:09 yifandianzi

I have set these three places in the firmware RA4K2ELA)IJ@}4A)US2) E7

Do you think it's correct

yifandianzi avatar Sep 17 '23 02:09 yifandianzi

I don't understand how your z-axis works, in your video time 0.04, the stepper is moving, but the z-wagon is not moving.... Also I don't see an end-switch for z. So you can't use homing for z. You need to set: #define HOMING_CYCLE 0 ((1<<X_AXIS) | (1<<Y_AXIS)) if you have end-switches there

svenhb avatar Sep 17 '23 06:09 svenhb

https://www.youtube.com/watch?v=NDZsdDLbDDo Normally, it should start working after resetting to zero, and then X Y starts moving to the pen selection position and Z starts lifting. The problem now is that when the start button is clicked, the Z stepper motor has already started working, and then the Z limit is set off

yifandianzi avatar Sep 17 '23 07:09 yifandianzi

https://www.youtube.com/watch?v=ZxeStwRespc&list=RDCMUCJHZY4Tl6ovsnBrNocdDbAg&start_radio=1&rv=ZxeStwRespc&t=65 The author's point is that the Z-lift motor does not work when starting work after resetting to zero

yifandianzi avatar Sep 17 '23 07:09 yifandianzi

The main problem is, that pen selection positions are machine coordinate, which needs homing. Also the linked video shows a working z-homing - you need to change your mechanics... image

svenhb avatar Sep 17 '23 12:09 svenhb

Thank you for your great help. When you pointed out the location, I also raised the Z limit position to zero. Now, just as I was preparing to start the work, the Z stepper motor continued to raise and then raised again, triggering a limit fault

yifandianzi avatar Sep 17 '23 12:09 yifandianzi

https://www.youtube.com/watch?v=QQNdMw_KsNo After all X Y Z are reset, the execution starts at 0:53, and the Z stepper motor continues to rise

yifandianzi avatar Sep 17 '23 12:09 yifandianzi

After Z-homing, Z stays at top position which you may want to have at +2mm in work coordinates. After Z homing move 2mm down and press "Zero Z". Also important the choosen travel way for import - small enough for your hardware?: image

svenhb avatar Sep 17 '23 14:09 svenhb

VO{S~}7XIUGC@X%3%V(9Q%O Hello, where is the white area set and where can I reach the coordinates

yifandianzi avatar Sep 18 '23 12:09 yifandianzi

https://www.youtube.com/watch?v=qdFgPm4bOkc This is my complete operation steps, but there are still problems and I don't have a clue now

yifandianzi avatar Sep 18 '23 13:09 yifandianzi

Looks good so far.

  1. set your travel ranges via $130, 131, 132. https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration#130-131-132--xyz-max-travel-mm This will influence your homing machine coordinates: image

After this you go to setup and take over the ranges: image

svenhb avatar Sep 18 '23 14:09 svenhb

Here you need a value, close to your homing Y-value = ca. 350: image

svenhb avatar Sep 18 '23 14:09 svenhb