gearchange

More
5 years 9 months ago #196556 by anfänger
Replied by anfänger on topic gearchange
I tried think I installed the gearchange from page 1,
I added this too my hal file:

loadrt gearchange count=2 personality=12,2
addf gearchange.0 servo-thread
addf gearchange.1 servo-thread

but I think there are some pins missing like ratio and the min and max for each gear:
Code:
32 float OUT 0 gearchange.0.accel-limit 32 bit IN FALSE gearchange.0.dir-in 32 bit OUT FALSE gearchange.0.dir-out 32 bit IN FALSE gearchange.0.gear-0-sel 32 bit IN FALSE gearchange.0.gear-1-sel 32 bit IN FALSE gearchange.0.gear-10-sel 32 bit IN FALSE gearchange.0.gear-11-sel 32 bit IN FALSE gearchange.0.gear-12-sel 32 bit IN FALSE gearchange.0.gear-2-sel 32 bit IN FALSE gearchange.0.gear-3-sel 32 bit IN FALSE gearchange.0.gear-4-sel 32 bit IN FALSE gearchange.0.gear-5-sel 32 bit IN FALSE gearchange.0.gear-6-sel 32 bit IN FALSE gearchange.0.gear-7-sel 32 bit IN FALSE gearchange.0.gear-8-sel 32 bit IN FALSE gearchange.0.gear-9-sel 32 u32 IN 0x00000000 gearchange.0.gear-number 32 bit OUT FALSE gearchange.0.max-lim 32 bit OUT FALSE gearchange.0.min-lim 32 bit IN FALSE gearchange.0.sel 32 float OUT 0 gearchange.0.speed-filtered 32 float IN 0 gearchange.0.speed-in 32 float OUT 0 gearchange.0.speed-out 32 s32 OUT 0 gearchange.0.time 32 float OUT 0 gearchange.1.accel-limit 32 bit IN FALSE gearchange.1.dir-in 32 bit OUT FALSE gearchange.1.dir-out 32 bit IN FALSE gearchange.1.gear-0-sel 32 bit IN FALSE gearchange.1.gear-1-sel 32 bit IN FALSE gearchange.1.gear-2-sel 32 u32 IN 0x00000000 gearchange.1.gear-number 32 bit OUT FALSE gearchange.1.max-lim 32 bit OUT FALSE gearchange.1.min-lim 32 bit IN FALSE gearchange.1.sel 32 float OUT 0 gearchange.1.speed-filtered 32 float IN 0 gearchange.1.speed-in 32 float OUT 0 gearchange.1.speed-out 32 s32 OUT 0 gearchange.1.time

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

More
5 years 9 months ago #196574 by db1981
Replied by db1981 on topic gearchange
The Pins you missing, are not PINs, that are PARAMETERS,

take a look in halshow, at the Parameter Section.

Usually you will set them with an INI Entry.
Example:

INI:
[BLOCK] (z.B. TRANSMISSION)
ENTRY = 120.0

HAL:
setp gearchange.0.parameterxxx [BLOCK] ENTRY
The following user(s) said Thank You: anfänger

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

More
5 years 9 months ago #196605 by anfänger
Replied by anfänger on topic gearchange
Damn, still a lot to learn.

Thanks!

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

More
5 years 9 months ago #196683 by andypugh
Replied by andypugh on topic gearchange

db1981 wrote: but at home i got a shock after a deeper lock


Compared to another forum I spend my time on, that gearbox looks great :-)

It will clean up, I think.

Here is an example of a gearbox that is now driving a lorry around Dudley:
hmvf.co.uk/topic/30968-1914-dennis-lorry...mment&comment=383985
(Though, to be fair, other than one gear being very badly worn, the real problem there is the horribly corroded gearbox case, with one mounting leg completely gone.

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

More
3 months 6 days ago - 3 months 6 days ago #348077 by COFHAL
Replied by COFHAL on topic gearchange
I have a lathe with a 9-speed gearbox that is manually selected. The motor is always running at its maximum speed of 1360 RPM, and the speed is manually changed using the gears. I'm using your gearchange component, which supports up to 32 speeds. I've already implemented the logic to select each speed. In each range, I'll control the speed with a VFD between the lowest value of the previous speed and the maximum, according to the original lathe's speed chart. For example, the first speed is 36 RPM, the second is 90 RPM, and the third is 155 RPM. Then, in the first speed, the spindle would rotate between 0 and 36 RPM, and the motor would rotate between 0 and 1360 RPM. In the second speed, between 36 RPM and 90 RPM, the motor would rotate in that gear between the speed that the gear provides, resulting in 36 RPM and 90 RPM at the spindle. This pattern is repeated for the other speeds. My question regarding this component is how to adjust the scale on each device; I don't know if it's always done relative to the first one or relative to the previous one.
Last edit: 3 months 6 days ago by COFHAL.

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

More
2 months 3 weeks ago - 2 months 3 weeks ago #348632 by COFHAL
Replied by COFHAL on topic gearchange
  I'm automating a parallel lathe with a 9-speed gearbox selected manually using two levers, each with 3 positions: lever 1 has positions A, B, and C, and lever 2 has positions D, E, and F. The possible combinations are as follows:   Direction changes are achieved by activating two electromagnetic clutches.This gives me the following truth table: I'm using the gearchange component for up to 32 speeds created by Andy Pugh, which can be used in this case. The first problem I encountered was creating the logic to detect these combinations, as I needed to detect the positions of the 6 switches I'm going to install to control the lever positions. Of the 6 bits, two will always be true. The component I found and was able to use was LUT5, but the problem is that it's only valid for 5 bits, and there are 3 combinations where bit 5 is one. Therefore, for these 3 combinations, in addition to LUT5, I had to use an additional AND2 gate to detect them.I read on the forum that for some automatic gear shifters, like the Maho MH400E, they created a component with an array that detects each gear by the switch positions.I also used the generic mux component to identify which gear was selected using a number between 1 and 9. Since it's 9 bits, it gave me a combination of 512, of which I only used 9 so that the mux output was a number between 1 and 9.I don't know if there's another way to detect the switch combination for the two levers.I've attached my HAL file to detect each lever position so I can send the correct speed to the VFD.
Attachments:
Last edit: 2 months 3 weeks ago by COFHAL.

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

Time to create page: 0.172 seconds
Powered by Kunena Forum