ebox.comp for gearbox 2speed

More
15 Oct 2023 15:02 - 15 Oct 2023 15:04 #283079 by SOLD
I have an OKK VM4. It has an 8000rpm spindle motor and 2500ppr encoder  2 speed gear box.

Low speed 1:4 /High speed 1:0.75, gear changing mechanism with air cylinder, takes about 5 seconds to change gear while stationary.

I built a 2 speed Hal with Pncconf. I want the output signal to be sent to the gear selector pin A when the M3S is less than 2000 and check the cylinder position sensor within the ebox.comp file.

I'm a newbie to Halcompile, trying to read what I thought was similar to this post.  forum.linuxcnc.org/10-advanced-configura...dle-gearbox?start=20
I have tried to use andypugh's e-box on 2.8.4 but it didn't work as shown in the picture. What caused this? How should I fix it? Or suggest the right thing because I don't have any compiler skills yet.

Another problem: When using G33.1, the number of revolutions of the encoder installed on the spindle motor is not equal to the speed of the tap.
Attachments:
Last edit: 15 Oct 2023 15:04 by SOLD.

Please Log in or Create an account to join the conversation.

More
15 Oct 2023 17:09 #283081 by andypugh
Can you attach the .comp file? There is something wrong with the syntax on line 2.
The following user(s) said Thank You: SOLD

Please Log in or Create an account to join the conversation.

More
16 Oct 2023 04:09 - 16 Oct 2023 04:13 #283107 by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed

 Can you attach the .comp file? There is something wrong with the syntax on line 2.

I copied from you
Attachments:
Last edit: 16 Oct 2023 04:13 by SOLD.

Please Log in or Create an account to join the conversation.

More
16 Oct 2023 13:47 #283124 by chris@cnc
There was going something wrong during copy.
Typo in Line 2 
licence "GPL";
should be
license "GPL";
The following user(s) said Thank You: SOLD

Please Log in or Create an account to join the conversation.

More
16 Oct 2023 14:48 #283126 by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed

There was going something wrong during copy.
Typo in Line 2 
licence "GPL";

should be

[code]license "GPL";
[/code]

I'll check it. Thank

Please Log in or Create an account to join the conversation.

More
17 Oct 2023 15:47 #283186 by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed
There is a problem at ABSF. What should I do?
Attachments:

Please Log in or Create an account to join the conversation.

More
17 Oct 2023 21:53 #283195 by andypugh

There was going something wrong during copy.
Typo in Line 2 
licence "GPL";

should be

[code]license "GPL";
[/code]

Ah, yes. I reckon I probably just typed that out (it was 8 years ago) and used the British spelling (because I am) 
 

Please Log in or Create an account to join the conversation.

More
17 Oct 2023 22:00 #283196 by andypugh

There is a problem at ABSF. What should I do?

It needs to be fabs, and that needs an include statement. 

(Sorry, this looks like something that I wrote in my lunch break, without access to a Linux machine to check it with). 

Try this:

 
Attachments:
The following user(s) said Thank You: tommylight, SOLD

Please Log in or Create an account to join the conversation.

More
18 Oct 2023 05:47 #283208 by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed

There is a problem at ABSF. What should I do?
It needs to be fabs, and that needs an include statement. 

(Sorry, this looks like something that I wrote in my lunch break, without access to a Linux machine to check it with). 

Try this:


 

I compiled it and it worked.
Thank you for your support.
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Oct 2023 08:29 #283218 by andypugh
Does the component actually do what you need it to do, though?
The following user(s) said Thank You: SOLD

Please Log in or Create an account to join the conversation.

Time to create page: 0.207 seconds
Powered by Kunena Forum