hello friends, this is my first post, but i'm registered and follow the forum for a long time, i have a problem that has taken my sleep.
I use linuxcnc on a Mazak CNC lathe, with an 8-position hydraulic turret, however, I don't know why, the turret's encoder has 16-positions.
I can work with the machine, using the carousel component, but I can only use the odd tools, if I call an even numbered tool, I have an error and the turret stops between two positions.
I need to find a way to lie to the component like this:
0000 => 0000
0001 => 0001
0010 => 0000
0011 => 0010
0100 => 0000
0101 => 0011
0111 => 0000
1000 => 0100
1001 => 0000
1010 => 0101
1011 => 0000
1100 => 0111
1101 => 0000
1111 => 1000
it looks so easy, but i can't find the solution, i tried using mux16 => conv-s32-u32=>demux, but i got an error when trying to convert s32 to u32, and the demux doesn't accept s32 inputs, and mux16 doesn't has output u32.
if anyone has an idea, i would be very grateful
forgive the bad english.
greetings from Brazil