Page 1 of 1

load G code A axis is automatically reset to zero

PostPosted: Tue Oct 18, 2016 12:40 pm
by DmitryS
Good afternoon. I have such a problem. Connected home sensors. And now when after tripping sensors if the load G code A axis is automatically reset to zero. For example axis A is rotated 180 degrees, load the G code and A axis is zeroed though physically she is in position 180. If before starting the machine does not send what it can be? I use UC400ETH ethernet motion controller

Re: load G code A axis is automatically reset to zero

PostPosted: Tue Oct 18, 2016 4:45 pm
by cncdrive
Please post your profile file here in the forum.
It is the .pro file in the UCCNC/Profiles folder.

Re: load G code A axis is automatically reset to zero

PostPosted: Tue Oct 18, 2016 5:40 pm
by DmitryS
attached file

Re: load G code A axis is automatically reset to zero

PostPosted: Tue Oct 18, 2016 5:44 pm
by DmitryS
Until such time as the House has decided to connect sensors such problems did not arise. I was very pleased with the system that has proved to be better than MACH3 with Smoothstepper

Re: load G code A axis is automatically reset to zero

PostPosted: Wed Oct 19, 2016 7:17 am
by cncdrive
Hi Dmitry,

Thank you for the profile file.
I could reproduce the issue here, so there is something really happenening after you home the axis and then when you load the g-code.
The g-code load passing only one function call to the motion controller is a dummy null size move with the 0 motion ID which rewinds the g-code file, so this command together with the previous homeing causes the issue to the A-axis.
We will look into this deeper now and will correct this issue asap.

Re: load G code A axis is automatically reset to zero

PostPosted: Wed Oct 19, 2016 7:25 am
by DmitryS
When fix the problem, please let me know. I plan to release a mini milling machines and prefer to use your system.

Re: load G code A axis is automatically reset to zero

PostPosted: Wed Oct 19, 2016 8:29 am
by cncdrive
We found the cause for the problem.
I was incorrect with my first idea about the problem, because this is not a bug, but you have the 3D printer plugin enabled in the Plugins configuration and that Zeros the A-axis on file load.
The 3D printer plugin zeros the A-axis on purpose, because the A-axis should be the filament feed axis,
so when the axes are already homed then the plugin starts working and then when you load a file the plugin zeros the A-axis.
So, this is not a bug, but this is how it works.
If your machine is not a 3D printer then disable the 3D printer plugin.
Or if it is a 3D printer or if you need the 3D printer plugin to run for some reason then use the A-axis for filament feed and then if it zeros on fileload is OK, it should be like that,
and if you need a plus axis for other motions then use B or C.

Re: load G code A axis is automatically reset to zero

PostPosted: Wed Oct 19, 2016 9:37 am
by DmitryS
I turned off the plug-in and everything was functional. Thank you

Re: load G code A axis is automatically reset to zero

PostPosted: Wed Oct 19, 2016 10:38 am
by cncdrive
DmitryS wrote:I turned off the plug-in and everything was functional. Thank you


Good to hear that it resolved the issue. :)