Direction pin

If you have a question about the software please ask it here.

Direction pin

Postby danut1234 » Thu Sep 08, 2022 5:19 pm

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?
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am

Re: Direction pin

Postby ger21 » Thu Sep 08, 2022 7:21 pm

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.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Direction pin

Postby danut1234 » Fri Sep 09, 2022 4:17 am

My own application.
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am

Re: Direction pin

Postby danut1234 » Fri Sep 09, 2022 7:03 am

When used with mach3 the dir pin works as expected,
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am

Re: Direction pin

Postby danut1234 » Fri Sep 09, 2022 7:51 am

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?
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am

Re: Direction pin

Postby danut1234 » Fri Sep 09, 2022 8:23 am

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
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am

Re: Direction pin

Postby dezsoe » Fri Sep 09, 2022 11:15 am

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.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Direction pin

Postby danut1234 » Fri Sep 09, 2022 12:33 pm

Thank you for explanation.
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am


Return to Ask a question from support here

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 53 guests