Solution fo "hm2 error finishing read" with no good PC

More
12 Dec 2024 18:22 - 12 Dec 2024 18:36 #316534 by greg23_78
 

I did a continuity test on the 7i97t at the fasteners, it's not grounded.

below are videos of my errors. On one of them, the turret doesn't even launch before the error message.

the other is during rotation.


Attachments:
Last edit: 12 Dec 2024 18:36 by greg23_78.

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

More
12 Dec 2024 18:45 #316535 by PCW
 I would make sure that the 7I97T mounting hole near the RJ45 connector is grounded to chassis ground

When you get an error, what does:

halcmd show param *.tmax

report?
 

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

More
12 Dec 2024 19:05 #316537 by greg23_78
cnc@cnc:~$ halcmd show param *.tmax
Parameters:
Owner   Type  Dir         Value  Name
    72  s32   RW            924  abs.0.tmax
    45  s32   RW           1124  and2_both_sw.tmax
    45  s32   RW            900  and2_driver_x_fault.tmax
    45  s32   RW           1068  and2_driver_z_fault.tmax
    45  s32   RW            708  and2_invert_fault.tmax
    45  s32   RW            848  and2_jogconvoyor-fwd.tmax
    45  s32   RW           1020  and2_jogconvoyor-rev.tmax
    45  s32   RW            984  and2_mot_rev_off.tmax
    45  s32   RW           1060  and2_tailstock_manu_moins.tmax
    45  s32   RW            856  and2_tailstock_manu_plus.tmax
    45  s32   RW           1112  and2_turret_lock.tmax
    42  s32   RW           2112  carousel.0.tmax
    60  s32   RW           1284  driver_x_fault.tmax
    60  s32   RW           1008  driver_z_fault.tmax
    63  s32   RW           2104  encoder.capture-position.tmax
    63  s32   RW           2224  encoder.update-counters.tmax
    36  s32   RW              0  hm2_7i97.0.read-request.tmax
    36  s32   RW        2604944  hm2_7i97.0.read.tmax
    36  s32   RW          46236  hm2_7i97.0.write.tmax
    60  s32   RW           1000  invert_fault.tmax
    29  s32   RW           3164  motion-command-handler.tmax
    29  s32   RW          30508  motion-controller.tmax
    69  s32   RW            992  near.0.tmax
    51  s32   RW           1196  not_both_sw.tmax
    60  s32   RW            804  oil_level.tmax
    60  s32   RW              0  oilpressure.tmax
    54  s32   RW           1072  oneshot_motor_rev.tmax
    48  s32   RW            944  or2_jogconvoyor-fwd.tmax
    48  s32   RW            752  or2_jogconvoyor-rev.tmax
    48  s32   RW            820  or2_tailstock_manu_auto_moins.tmax
    48  s32   RW            980  or2_tailstock_manu_auto_plus.tmax
    39  s32   RW           1324  pid.s.do-pid-calcs.tmax
    39  s32   RW           2272  pid.x.do-pid-calcs.tmax
    39  s32   RW           1120  pid.z.do-pid-calcs.tmax
    60  s32   RW           1224  pneumatic_pressure.tmax
    66  s32   RW            936  scale.0.tmax
    30  s32   RW        2633312  servo-thread.tmax
    60  s32   RW           1108  tension_convoyor.tmax
    57  s32   RW            904  timedelay.0.tmax

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

More
12 Dec 2024 19:25 #316538 by PCW
1. if your PC has a Intel MAC, do you have IRQ coalescing disabled?

2. Do you have the Ethernet IRQ pinned?

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

More
12 Dec 2024 19:37 #316539 by greg23_78
lspci | grep -i ether
cnc@cnc:~$ lspci | grep -i ether
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

#source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eno1
  iface eno1 inet static
    address 10.10.10.11
    netmask 255.255.255.0

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

More
12 Dec 2024 19:45 #316540 by PCW
auto eno1
    iface eno1 inet static
    address 10.10.10.11
    netmask 255.255.255.0
    hardware-irq-coalesce-rx-usecs 0  <<<< try adding this
 

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

More
12 Dec 2024 19:54 #316541 by greg23_78
I added the line

I restarted the PC

I still have the same fault

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

More
12 Dec 2024 19:57 #316544 by greg23_78
I set my configuration for the tool change because this is where the fault comes at 100% if there is something wrong.
Attachments:

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

More
12 Dec 2024 20:27 #316546 by PCW
Do all inductive loads switched by the 7I97T have flyback diodes?

Did you verify that IRQ coalescing is disabled?
verify with:

ethtool -c eno1

A a temporary test you can try pinning IRQs with

 

File Attachment:

File Name: pinirq_2024-12-12.txt
File Size:1 KB


download,

chmod +x pinirq.txt

sudo ./pinirq.txt en01

and then run LinuxCNC
 
Attachments:

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

More
13 Dec 2024 11:03 #316568 by greg23_78
I think I know where the problem is.
for a start, i hadn't fitted a free-wheeling diode.
i've just put diodes on all my control contactors.



i've tried again and i have the impression that it's got worse because when i launch linuxcnc and deactivate the e-stop (F1), the message appears more regularly.

I try to control my chip conveyor, the message appears.
i try to drive my tailstock, the message doesn't appear ...

I realize that the commands that cause error messages are those driven by power contactors.

However, all my power contactors are controlled by command contactors.

sinking output:


drive with power contactor
e-stop / fwd turret / rev turret / convoyor fwd / convoyor rev

pilot with control contactor
tailstock output / tailstock input / enable drive / spindle fwd / spindle rev

I've never had a problem with controls driven by control contactors alone.

the video shows when i manually activate (with the control contactor) my turret. only the card is activated, the computer is not powered so linuxcnc doesn't work.
on the video i activate the contactor three times and 2/3 error and 1/3 no error



how can my power contactors disrupt the 7i97T card?
Attachments:

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

Time to create page: 0.141 seconds
Powered by Kunena Forum