- Posts: 122
- Thank you received: 0
ebox.comp for gearbox 2speed
3 years 2 weeks ago #283079
by SOLD
ebox.comp for gearbox 2speed was created 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.
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.
Please Log in to join the conversation.
3 years 2 weeks ago #283081
by andypugh
Replied by andypugh on topic ebox.comp for gearbox 2speed
Can you attach the .comp file? There is something wrong with the syntax on line 2.
Please Log in to join the conversation.
3 years 2 weeks ago #283107
by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed
I copied from youCan you attach the .comp file? There is something wrong with the syntax on line 2.
Please Log in to join the conversation.
3 years 2 weeks ago #283124
by chris@cnc
Replied by chris@cnc on topic ebox.comp for gearbox 2speed
There was going something wrong during copy.
Typo in Line 2
should be
Typo in Line 2
Code:
licence "GPL";
Code:
license "GPL";
Please Log in to join the conversation.
3 years 2 weeks ago #283126
by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed
I'll check it. ThankThere was going something wrong during copy.
Typo in Line 2
[/code]Code:licence "GPL"; should be [code]license "GPL";
Please Log in to join the conversation.
3 years 2 weeks ago #283186
by SOLD
Replied by SOLD on topic ebox.comp for gearbox 2speed
There is a problem at ABSF. What should I do?
Please Log in to join the conversation.
3 years 1 week ago #283195
by andypugh
Replied by andypugh on topic ebox.comp for gearbox 2speed
Ah, yes. I reckon I probably just typed that out (it was 8 years ago) and used the British spelling (because I am)There was going something wrong during copy.
Typo in Line 2
[/code]Code:licence "GPL"; should be [code]license "GPL";
Please Log in to join the conversation.
3 years 1 week ago #283196
by andypugh
(Sorry, this looks like something that I wrote in my lunch break, without access to a Linux machine to check it with).
Try this:
Replied by andypugh on topic ebox.comp for gearbox 2speed
It needs to be fabs, and that needs an include statement.There is a problem at ABSF. What should I do?
(Sorry, this looks like something that I wrote in my lunch break, without access to a Linux machine to check it with).
Try this:
Please Log in to join the conversation.
3 years 1 week ago #283208
by SOLD
Thank you for your support.
Replied by SOLD on topic ebox.comp for gearbox 2speed
I compiled it and it worked.
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:
Thank you for your support.
Please Log in to join the conversation.
Time to create page: 0.118 seconds
