Luxmill CNC retrofit project
13 Mar 2020 17:37 #160061
by PCW
Replied by PCW on topic Luxmill CNC retrofit project
Sorry I was thinking 7I88
Do you have the plug in correctly?
(the 6 pin 7I76e plug will work in the 7I89 if you skip the top pin = one pin above and below the 6 pin plug empty)
Also verify the the 7I89 has 5V power
Do you have the plug in correctly?
(the 6 pin 7I76e plug will work in the 7I89 if you skip the top pin = one pin above and below the 6 pin plug empty)
Also verify the the 7I89 has 5V power
Please Log in or Create an account to join the conversation.
14 Mar 2020 09:01 #160146
by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Yes I think I have the plug in correctly. I can measure 5V between 7i89 TB3 Pin 17/23 and Pin 18/24.
The 7i89 also is connected to 5V at P1.
The 7i89 generally works if i connect an encoder to one of the encoder inputs.
The 7i76e jumpers W7 and W12 are in up position --> Pins 22, 23, 24 and 25 are 5V (required in 7i89 manual).
The 7i66-24 works connected directly to 7i76e via RS-422/485 SSerial.
The 7i66-24 doesn't work if i use the cable and pin configuration mentioned in 7i89 manual.
The 7i66-24 also doesn't work if I use the 6 pin 7I76e plug and cable and skip the top pin (= one pin above and below the 6 pin plug empty) although the cable worked between 7i76e - 7i70 and 7i76e - 7i89.
I added a picture of the bitfile readout (generated from you). Is there everything fine with the RS-422/485 SSerial configuration?
Do you have further ideas?
best regards
Oehli
The 7i89 also is connected to 5V at P1.
The 7i89 generally works if i connect an encoder to one of the encoder inputs.
The 7i76e jumpers W7 and W12 are in up position --> Pins 22, 23, 24 and 25 are 5V (required in 7i89 manual).
The 7i66-24 works connected directly to 7i76e via RS-422/485 SSerial.
The 7i66-24 doesn't work if i use the cable and pin configuration mentioned in 7i89 manual.
The 7i66-24 also doesn't work if I use the 6 pin 7I76e plug and cable and skip the top pin (= one pin above and below the 6 pin plug empty) although the cable worked between 7i76e - 7i70 and 7i76e - 7i89.
I added a picture of the bitfile readout (generated from you). Is there everything fine with the RS-422/485 SSerial configuration?
Do you have further ideas?
best regards
Oehli
Please Log in or Create an account to join the conversation.
14 Mar 2020 09:27 #160149
by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Uhhhhh I got a solution:
I opended the HAL Configuration and changed:
sserial_port_0=00XXXX to sserial_port_0=000XXX and it worked!
In the bitfile readout (I posted above) RXData2 / TXData2 is shown. So just for me to anderstand is this the third port (--> 0,1, 2) or how do I know which sserial port is used?
I opended the HAL Configuration and changed:
sserial_port_0=00XXXX to sserial_port_0=000XXX and it worked!
In the bitfile readout (I posted above) RXData2 / TXData2 is shown. So just for me to anderstand is this the third port (--> 0,1, 2) or how do I know which sserial port is used?
Please Log in or Create an account to join the conversation.
14 Mar 2020 13:50 #160170
by PCW
Replied by PCW on topic Luxmill CNC retrofit project
Yes, sserial_port_0=00XXXX only enables the first 2 sserial channels (0 and 1) on port 0
(and sets them both to mode 0)
This is described in the hostmot2 manual page
man hostmot2
(and sets them both to mode 0)
This is described in the hostmot2 manual page
man hostmot2
Please Log in or Create an account to join the conversation.
25 May 2020 08:49 #168850
by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
The last few days I tried to realize a spindle synchronization and orientation for my mill, after replacing the damaged spindle encoder. I tried to adapt the HAL and INI content from Talla83 from this video:
Link
.
Basically I have a different card combination. I use the 7i76e card TB4 spindle connector (0-10VDC) + additional CW/CCW output for spindle direction. I connected my 2000ppr encoder to the high speed encoder input (10MHz) in differential (RS-422) mode with A/A-, B/B-, Z/Z-.
According to this the encoder scale in INI File should be 8000 (quadrature ecoder) right?
I also use the LinuxCNC 2.9 instad of the 2.7 from Talla83's video. I tried to adapt the code for my card and software combination. But It doesn't work . I always get the failure "spindle.1.orient-ange does not exist". Probably the "motion" doesn't work probably in my HAL file vonfiguration - I guess I forgot something....
I already read the LinuxCNC motion "manuel" but couldn't find the problem.
I attached the relevant part of ini and hal file to this post.
Would be great if you can help me =)
best regards
Oehli
Basically I have a different card combination. I use the 7i76e card TB4 spindle connector (0-10VDC) + additional CW/CCW output for spindle direction. I connected my 2000ppr encoder to the high speed encoder input (10MHz) in differential (RS-422) mode with A/A-, B/B-, Z/Z-.
According to this the encoder scale in INI File should be 8000 (quadrature ecoder) right?
I also use the LinuxCNC 2.9 instad of the 2.7 from Talla83's video. I tried to adapt the code for my card and software combination. But It doesn't work . I always get the failure "spindle.1.orient-ange does not exist". Probably the "motion" doesn't work probably in my HAL file vonfiguration - I guess I forgot something....
I already read the LinuxCNC motion "manuel" but couldn't find the problem.
I attached the relevant part of ini and hal file to this post.
Would be great if you can help me =)
best regards
Oehli
Please Log in or Create an account to join the conversation.
25 May 2020 16:45 - 25 May 2020 17:14 #168881
by PCW
Replied by PCW on topic Luxmill CNC retrofit project
There are many corrupted pin names in your hal file, for example:
It looks like the hal file was edited with a word processor instead of a text editor
or some kind of character set bungle
EDIT:
Globally replacing "−" with "." _seems_ to fix things
net orient-angle spindle.1.orient−angle => orient.0.angle
It looks like the hal file was edited with a word processor instead of a text editor
or some kind of character set bungle
EDIT:
Globally replacing "−" with "." _seems_ to fix things
Last edit: 25 May 2020 17:14 by PCW.
Please Log in or Create an account to join the conversation.
25 May 2020 19:56 - 25 May 2020 20:15 #168895
by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Hey PCW,
thank you for your response. I guess something went before I uploaded the files. I opened the HAL file from origin with text editor and the corrupted pin names were gone. The basic problem still exists. I uploaded the files again.
Best regards
Oehli
Edit: Funny, if you open the files via text editor the failure is gone. Opened with windwos explore not.
Edit2: Luxmill_2020-05-25-2_V2.hal --> corrected.
thank you for your response. I guess something went before I uploaded the files. I opened the HAL file from origin with text editor and the corrupted pin names were gone. The basic problem still exists. I uploaded the files again.
Best regards
Oehli
Edit: Funny, if you open the files via text editor the failure is gone. Opened with windwos explore not.
Edit2: Luxmill_2020-05-25-2_V2.hal --> corrected.
Last edit: 25 May 2020 20:15 by Oehli.
Please Log in or Create an account to join the conversation.
25 May 2020 20:03 - 25 May 2020 20:04 #168897
by PCW
Replied by PCW on topic Luxmill CNC retrofit project
#******talla modification start*********
# orient connected to motion
net orient-angle spindle.1.orient−angle => orient.0.angle
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
net orient-mode spindle.1.orient−mode => spindle-orient.mode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
net orient-enable spindle.1.orient => => and2.0.in1
# encoder position send to pid / orient and motion
net spindle-pos => pid.s.feedback => spindle-orient.position
net spindle-pos <= spindle.1.revs <= hm2_7i76e.0.encoder.08.position
# encodervelocity U/sek send to near und motion
net spindle-fb-rps spindle.1.speed−in <= hm2_7i76e.0.encoder.08.velocity => spindle-at-speed.in2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# position specification from orient send to pid
setp offset.0.offset 1
net spindle.otient-cmd spindle-orient.command => offset.0.in
net spindle-orient-cmd1 offset.1.out => spindle-pid.command
# spindle RPM specification U/min from motion send tio limit2
net spindle-speed-rpm spindle.1.speed−out => spindle-ramp.in
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# spindle RPM specification U/sek from motion send to near
net spindle-speed-rps spindle.1.speed−out−rps => spindle-at-speed.in1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# If specified RPM = real RPM send bit from near to motion
net spindle-at-speed spindle-at-speed.out => spindle.1.at−speed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# If specified position = real position send bit from near to motion
net spindle-pos-err spindle-at-pos.in2 <= spindle-pid.error
net spindle-at-pos spindle-at-pos.out =>
net spindle-on0 spindle.1.on => spindle-active-delay.in
net spindel-on1 spindle-active-delay.out => or2.0.in0 => not.0.in
net spindel-on2 and2.0.in0 <= not.0.out
#activate orient and pid
net orient-active and2.0.out => or2.0.in1 => spindle-signal-switch.sel
net orient-active => spindle-pid.enable => spindle-orient.enable
net spindle-enable or2.0.out => hm2_7i76e.0.7i76.0.0.spinena
# motion sends signal to encoder to set "0" if Z-signal is detected again
net spindle-sync spindle.1.index−enable => hm2_7i76e.0.encoder.08.index-enable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Which text editor? I'm using gedit which shows the error
# orient connected to motion
net orient-angle spindle.1.orient−angle => orient.0.angle
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
net orient-mode spindle.1.orient−mode => spindle-orient.mode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
net orient-enable spindle.1.orient => => and2.0.in1
# encoder position send to pid / orient and motion
net spindle-pos => pid.s.feedback => spindle-orient.position
net spindle-pos <= spindle.1.revs <= hm2_7i76e.0.encoder.08.position
# encodervelocity U/sek send to near und motion
net spindle-fb-rps spindle.1.speed−in <= hm2_7i76e.0.encoder.08.velocity => spindle-at-speed.in2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# position specification from orient send to pid
setp offset.0.offset 1
net spindle.otient-cmd spindle-orient.command => offset.0.in
net spindle-orient-cmd1 offset.1.out => spindle-pid.command
# spindle RPM specification U/min from motion send tio limit2
net spindle-speed-rpm spindle.1.speed−out => spindle-ramp.in
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# spindle RPM specification U/sek from motion send to near
net spindle-speed-rps spindle.1.speed−out−rps => spindle-at-speed.in1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# If specified RPM = real RPM send bit from near to motion
net spindle-at-speed spindle-at-speed.out => spindle.1.at−speed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# If specified position = real position send bit from near to motion
net spindle-pos-err spindle-at-pos.in2 <= spindle-pid.error
net spindle-at-pos spindle-at-pos.out =>
net spindle-on0 spindle.1.on => spindle-active-delay.in
net spindel-on1 spindle-active-delay.out => or2.0.in0 => not.0.in
net spindel-on2 and2.0.in0 <= not.0.out
#activate orient and pid
net orient-active and2.0.out => or2.0.in1 => spindle-signal-switch.sel
net orient-active => spindle-pid.enable => spindle-orient.enable
net spindle-enable or2.0.out => hm2_7i76e.0.7i76.0.0.spinena
# motion sends signal to encoder to set "0" if Z-signal is detected again
net spindle-sync spindle.1.index−enable => hm2_7i76e.0.encoder.08.index-enable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Which text editor? I'm using gedit which shows the error
Last edit: 25 May 2020 20:04 by PCW.
The following user(s) said Thank You: Oehli
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
25 May 2020 20:04 #168898
by tommylight
Replied by tommylight on topic Luxmill CNC retrofit project
From your hal file:
net orient-angle spindle.1.orient−angle => orient.0.angle
net orient-mode spindle.1.orient−mode => spindle-orient.mode
net spindle-fb-rps spindle.1.speed−in <= hm2_7i76e.0.encoder.08.velocity => spindle-at-speed.in2
net spindle-speed-rpm spindle.1.speed−out => spindle-ramp.in
net spindle-speed-rps spindle.1.speed−out−rps => spindle-at-speed.in1
net spindle-at-speed spindle-at-speed.out => spindle.1.at−speed
Those were just at a glance
net orient-angle spindle.1.orient−angle => orient.0.angle
net orient-mode spindle.1.orient−mode => spindle-orient.mode
net spindle-fb-rps spindle.1.speed−in <= hm2_7i76e.0.encoder.08.velocity => spindle-at-speed.in2
net spindle-speed-rpm spindle.1.speed−out => spindle-ramp.in
net spindle-speed-rps spindle.1.speed−out−rps => spindle-at-speed.in1
net spindle-at-speed spindle-at-speed.out => spindle.1.at−speed
Those were just at a glance
The following user(s) said Thank You: Oehli
Please Log in or Create an account to join the conversation.
25 May 2020 20:38 #168903
by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Thank you again. I fixed this mistake in the Hal file, but I'am sure I would have recognized this problem on mylinux machine. I'll check tomorrow.
According to your opinion the "motion" configuratio in my Hal file is correct or is there something missing?
Best regards
Oehli
According to your opinion the "motion" configuratio in my Hal file is correct or is there something missing?
Best regards
Oehli
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.100 seconds