Page 1 of 1

Direction pin

PostPosted: Thu Sep 08, 2022 5:19 pm
by danut1234
Hi, why does the direction pin does not stay active on all duration of a movement?
When the direction changes and the axis needs to go back, the direction pin blinks one time very fast and stay off for the rest of the duration.

What am i doing wrong?

And by the way, why is the firmware updated when i start mach3, and when i switch to my aplication it updates again, and after that if i start mach3 it updates again... it uses a separate firmware for mach3 and another firmware for UCCNC/my aplication?

Re: Direction pin

PostPosted: Thu Sep 08, 2022 7:21 pm
by ger21
Is this in UCCNC, or in your own application?

Yes, there is different firmware for Mach3 and UCCNC. There's not enough room for both, so it must be changed when you change software.

Re: Direction pin

PostPosted: Fri Sep 09, 2022 4:17 am
by danut1234
My own application.

Re: Direction pin

PostPosted: Fri Sep 09, 2022 7:03 am
by danut1234
When used with mach3 the dir pin works as expected,

Re: Direction pin

PostPosted: Fri Sep 09, 2022 7:51 am
by danut1234
The most interesting is that if i change the dir and step pin to O3 and O4 it works ok
If i try to use UC100.SetOutput(33554432); (which is bit 26(counting from 1) set to 1) the LED does not lit up. But if i try the same with any other pin, it works.
Have i made something wrong in my code? or is a firmware bug?

Re: Direction pin

PostPosted: Fri Sep 09, 2022 8:23 am
by danut1234
I have created a new project and i imported the wrapper and put in the Debug folder the necessary DLL files.
i have added only 4 lines of code:
int number = 0;
UC100.ListDevices(ref number);
UC100.Open(number);
UC100.SetOutput(70371998957568);

It should lit up O1 O2 O3 O4 but it lights only O2 O3 O4

This is a Firmware bug or an undocumented feature...
The board is AXBB-E
FWVersion: 1005
HWVersion: 1
DLLVersion: 2182

Re: Direction pin

PostPosted: Fri Sep 09, 2022 11:15 am
by dezsoe
It should lit up O1 O2 O3 O4 but it lights only O2 O3 O4

This is the first time you mention that you have the problem with O1. O1 is a charge pump output on the AXBB, so if you simply turn it on then the output will not turn on. It's not a software setting, but the output hardware is made this way.

Re: Direction pin

PostPosted: Fri Sep 09, 2022 12:33 pm
by danut1234
Thank you for explanation.