Z axis set up, How ?

221 views
Skip to first unread message

Rashad Arif

unread,
Feb 23, 2021, 6:24:18 PM2/23/21
to ope...@googlegroups.com
Hello guys,
I need help to set up and run the Z axis type of the photo below.
Thanks

image.png

duncan_...@colnewater.com

unread,
Feb 24, 2021, 4:17:16 AM2/24/21
to ope...@googlegroups.com

Hi Rashad,

 

If you search on this forum for ‘China Head’, you’ll find a lot of discussion about this.

 

Duncan

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAObNpuLE4o7zKtoYBBG2%3DO8WXGj1hFkC8DL2rSjgDuL-nP_9XA%40mail.gmail.com.

image001.png

Rashad Arif

unread,
Feb 24, 2021, 4:53:00 AM2/24/21
to ope...@googlegroups.com
Thanks Ducan for the reply,

Unfortunately there is only one discussion in this frum about the nozzle changer by using this type of head not more . In addition I want to set up the z axis of this head in config.txt and machine.hml "openpnp" because till now the z axis motor gives me strange movement , he can not push the nozzle correctly

Thorsten Wilmer

unread,
Feb 24, 2021, 5:57:33 AM2/24/21
to ope...@googlegroups.com
Hi
It's even bette, have a look for

ReferenceCamCounterClockwiseAxis



That the motor doesn't move is likely a problem of your cable/pinout. Check the motor on e.g. x axis - separately first. Use the same cable as you intend to use later ...

I bought 4 long cables with 3 different pin configurations ... Before you use openpnp make the motors work with plain gcode commands first.

Kind Regards
 Thorsten

duncan_...@colnewater.com

unread,
Feb 24, 2021, 5:59:23 AM2/24/21
to ope...@googlegroups.com

Rashad,

 

Try these threads

 

https://groups.google.com/g/openpnp/c/6JyhXTFI8UE/m/Wo4-hyBUBAAJ

 

https://groups.google.com/g/openpnp/c/U2slOkiqmTw/m/Fw317bU_DQAJ

 

 

Did you read the documentation at :

 

https://github.com/openpnp/openpnp/wiki/Transformed-Axes  (esp. ReferenceCamCounterClockwiseAxis)

 

 

In addition, you are going to want to make sure you are using a SmoothieBoard with special firmware from _Mark, see here :

 

https://makr.zone/smoothieware-new-firmware-for-pnp/500/

 

If you still have concerns, tell us what (specifically) you have difficulty with.

image001.png

Rashad Arif

unread,
Feb 24, 2021, 10:09:07 AM2/24/21
to ope...@googlegroups.com
Thanks for all the help guys.
@ Thorsten,

My configuration is :
1 - "ReferenceCamClockwiseAxis" and "ReferenceCamCounterClockwiseAxis" mapped to Nozzles N1 and N2 as shown in my attachment.
2 - I checked the motor with another axis but also strange feedback from them even via  Gcode commands.

@ duncan ,
about fireware.bin I used  OpenPnP 2.0 versions of the newest 5-axis  and  pre 2020-12-12 OpenPnP 2.0 versions 5-axis, the problem still the same. I want just run the Z axis to move N1 or N2 down ! Is that correct if N1 and N2 are not connected ?
About the Home z-axis or endstop > the two lines are clear to me to setting up my machine after fix z axis,

image.png

Rashad

ma...@makr.zone

unread,
Feb 24, 2021, 10:32:19 AM2/24/21
to ope...@googlegroups.com

Hi Rashad

Z axis setup seems correct. Screenshots are very small, I think you are missing Safe Z Enabled switches. What exactly is not working?

You should however use proper A B C axes for the rotation axes and set them up as such in the Smoothieware config.txt i.e. do not configure them as extruders, this is not a 3D printer ;-).

Do not use E and do not use a pre-move-command (T).

https://smoothieware.org/6axis

If you use
https://github.com/openpnp/openpnp/wiki/Issues-and-Solutions
it should tell you so.

_Mark

Rashad Arif

unread,
Feb 24, 2021, 11:07:27 AM2/24/21
to ope...@googlegroups.com
Thanks Mark,

Before I used (A B ) but i got the problem below:

image.png

 
Where my Default >> MOVE_TO_COMMAND [{Acceleration:M204 S%.2f} G1 {X:X%.4f} {Y:Y%.4f} {Z:Z%.4f} {A:A%.4f} {B:B%.4f} {FeedRate:F%.2f} ; move to target ]
and
 Default >> SET_GLOBAL_OFFSETS_COMMAND [ G92 {X:X%.4f} {Y:Y%.4f} {Z:Z%.4f} {A:A%.4f} {B:B%.4f} ; reset coordinates in the controller]
My configuration for N1 and N2 was:


image.png

I am confused for:

1 - I don't have an idea how to configure config.txt file for A and B.
2- which firmware is correct that i can flash for Smoothieboard .


Rashad

ma...@makr.zone

unread,
Feb 24, 2021, 11:28:52 AM2/24/21
to ope...@googlegroups.com

> 1 - I don't have an idea how to configure config.txt file for A and B.

Like I said, read this:

https://smoothieware.org/6axis

This might help too:

https://github.com/openpnp/openpnp/issues/1120#issuecomment-774674476

Using the Issues & Solutions system, OpenPnP can help a lot to diagnose the problems and configure OpenPnP for you, but it is no "magic bullet" that can solve every problem. As each machine is usually different, you still need to acquire the knowledge to configure the controller correctly and then do it yourself.

> 2- which firmware is correct that i can flash for Smoothieboard .

As others have indicated, use the newest linked here:

https://github.com/openpnp/openpnp/wiki/Motion-Controller-Firmwares

_Mark

duncan_...@colnewater.com

unread,
Feb 24, 2021, 12:02:30 PM2/24/21
to ope...@googlegroups.com

1 - I don't have an idea how to configure config.txt file for A and B.

 

Here’s a copy of my (working) config.txt

 

Health Warning :

 

  1. DO NOT just copy this blindly, use it as a guide.  Your physical machine may be quite different to mine, even through I have the same head.
  2. I’ve got into trouble before with the Smoothie guys for ‘prettying up’ my config.  All I can tell you is it works for me.

 

Duncan  

 

 

 

From: ope...@googlegroups.com <ope...@googlegroups.com> On Behalf Of Rashad Arif
Sent: 24 February 2021 16:07
To: ope...@googlegroups.com
Subject: Re: [OpenPnP] Z axis set up, How ?

 

Thanks Mark,

 

Before I used (A B ) but i got the problem below:

 

 

 
Where my Default >> MOVE_TO_COMMAND [{Acceleration:M204 S%.2f} G1 {X:X%.4f} {Y:Y%.4f} {Z:Z%.4f} {A:A%.4f} {B:B%.4f} {FeedRate:F%.2f} ; move to target ]
and
 Default >> SET_GLOBAL_OFFSETS_COMMAND [ G92 {X:X%.4f} {Y:Y%.4f} {Z:Z%.4f} {A:A%.4f} {B:B%.4f} ; reset coordinates in the controller]
My configuration for N1 and N2 was:

 

 

 

I am confused for:


1 - I don't have an idea how to configure config.txt file for A and B.
2- which firmware is correct that i can flash for Smoothieboard .

 

Rashad

On Wed, Feb 24, 2021 at 4:32 PM ma...@makr.zone <ma...@makr.zone> wrote:

Hi Rashad

Z axis setup seems correct. Screenshots are very small, I think you are missing Safe Z Enabled switches. What exactly is not working?

You should however use proper A B C axes for the rotation axes and set them up as such in the Smoothieware config.txt i.e. do not configure them as extruders, this is not a 3D printer ;-).

Do not use E and do not use a pre-move-command (T).

https://smoothieware.org/6axis

If you use
https://github.com/openpnp/openpnp/wiki/Issues-and-Solutions
it should tell you so.

_Mark

 

Am 24.02.2021 um 16:08 schrieb Rashad Arif:

Thanks for all the help guys.
@ Thorsten,


My configuration is :
1 - "ReferenceCamClockwiseAxis" and "ReferenceCamCounterClockwiseAxis" mapped to Nozzles N1 and N2 as shown in my attachment.
2 - I checked the motor with another axis but also strange feedback from them even via  Gcode commands.

@ duncan ,
about fireware.bin I used  OpenPnP 2.0 versions of the newest 5-axis  and  pre 2020-12-12 OpenPnP 2.0 versions 5-axis, the problem still the same. I want just run the Z axis to move N1 or N2 down ! Is that correct if N1 and N2 are not connected ?
About the Home z-axis or endstop > the two lines are clear to me to setting up my machine after fix z axis,

 

 

Rashad

image001.png
image002.png
image003.png
image004.png
config.txt.txt

Thorsten Wilmer

unread,
Feb 24, 2021, 2:38:23 PM2/24/21
to ope...@googlegroups.com
Hi Seid

I would like to highlight first get the motor working on another axis - where you know another Motor works, e.g. X and then reconstruct the _same_ wiring to your Z motor. Please take into account that wire which you built or bought can have a faulty pin order which leads to the motor not rotating or broken wire.

The when your z motor works with e.g. G0X10

Only then you  should consider all the other right advice in configuring openpnp itself.


Also it helps to check the log and send the commands one by one, understand them and check if the expected is done by the machine. Then if the machine is doing the wrong thing figure out that root cause -search the fault in wires, or controller configuration... If the command given by openpnp doesn't make sense, then fix the openpnp configuration. 


@all/off topic marlin related

A little off topic I'd like to share one experience I had. There is a M204 command before the G1 command in the same line, which in my case was added through the issue and solution proces.

After this was added my machine didn't move. The root cause is that Marlin (at least my hacked together 8Axis fork) doesn't execute the G command if it's in the same line because the G is consumed by the parser.
If I Insert a \n (actually as return) in the move command gcode, then it works as expected

This is why I said try the commands one by one and try even to issue these commands item by item - this may help to understand the problem.

Kind Regards
 Thorsten


ma...@makr.zone

unread,
Feb 24, 2021, 2:52:37 PM2/24/21
to ope...@googlegroups.com

>A little off topic I'd like to share one experience I had. There is a M204 command before the G1 command in the same line, which in my case was added through the issue and solution proces.

I know you only use this as an example. But have you tried the newest OpenPnP version? Does it propose the newline for Marlin now? It should.

_Mark

Rashad Arif

unread,
Feb 24, 2021, 7:45:50 PM2/24/21
to ope...@googlegroups.com
Hello Guys,

I applied all what you mentioned in your emails. The result is shown in the attached video of Z-axis behavior, and the same when I use an external drive. I attached my config.txt , machine.xml and G code files. The problem still the same 😬 and there is No issues detected as showing 
image.png

G code.txt
machine.xml
config.txt
Z axis.mp4

bert shivaan

unread,
Feb 24, 2021, 8:54:14 PM2/24/21
to OpenPnP
if that movement is the result of a single move command, my guess is your coils are out of phase. Try reversing  the 2 wires on one coil and see if it fixes it.

Rashad Arif

unread,
Feb 26, 2021, 7:56:04 AM2/26/21
to ope...@googlegroups.com
Thanks a lot for the help, indeed the problem was solved by correcting the motor connection!

Reply all
Reply to author
Forward
0 new messages